Advertisement
Guest User

dSD

a guest
Mar 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.19 KB | None | 0 0
  1. import sys
  2. import os
  3. import requests
  4. def main():
  5.     try:
  6.         os.system("clear")
  7.     except:
  8.         os.system("cls")
  9.     print("""
  10. \033[33m___  ___   _______   ___________      _______  _______   ______\033[33m
  11. \033[33m|   \/   | |       \ |           |    /       ||   ____| /      |\033[33m
  12. \033[33m|  \ /  | |  .--.  |`---|  |----`   |   (----`|  |__   |  ,----'\033[33m
  13. \033[33m|  |\/|  | |  |  |  |    |  |         \  \   |   __|  |  | \033[33m    
  14. \033[33m|  |  |  | |  '--'  |    |  |     .----)   |   |  |____ |  `----.\033[33m
  15. \033[33m|__|  |__| |_______/     |__|     |_______/    |_______| \______|\033[33m
  16.                                                                
  17.    
  18.    
  19.    \033[37mCoded By\033[37m \033[31mCo0dxZ\n\033[0;0m
  20.    \033[31mMindset Security - \033[0; 0m \033[37mhttps://mindsetsecurity.wordpress.com/\033[37m
  21.          """)
  22. main()
  23.  
  24. if len(sys.argv) < 3:
  25.     print("""\033[31mUse:\033[31m python mdtsec.py ip_site  module_name""")
  26.     sys.exit(0)
  27.  
  28. ip = sys.argv[1]
  29. module = sys.argv[2]
  30.  
  31. def whois():
  32.     web = "httsp://api.hackertarget.com/whois/?q=%s"%(ip)
  33.     get = requests.get(web)
  34.     print(get)
  35. if(module=='whois'):
  36.     whois()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement