Advertisement
c0dezie

[PYTHON] Reverse ip lookup

Jul 7th, 2019
1,516
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.24 KB | None | 0 0
  1. #!/usr/bin/env python2.7
  2. #
  3. #
  4. #
  5.  
  6. import os
  7. import sys
  8. d3=os.system("curl http://ipinfo.io/ip")
  9. os.system("clear && clear && clear")
  10. logo = '''\033[0m
  11.        ___      _          _      
  12.       / _ \   | |        (_)    
  13.   ___| | | | __| | ___ _____  ___
  14.  / __| | | |/ _` |/ _ \_  / |/ _ \
  15. |
  16.  \___|\___/ \__,_|\___/___|_|\___| \033[0m  \033[91m    \033[1m
  17.       [+] Recoded by c0dezie [+]
  18.     [+]  fb.me/firzizrif [+]                              
  19.     '''
  20. menu = '''\033[0m
  21.    {1}--Reverse IP Lookup
  22.    {0}--INSTALL & UPDATE
  23.    {99}-Exit                                                                                                                  
  24. '''
  25. print logo
  26. print menu
  27. def quit():
  28.             con = raw_input('Continue [Y/n] -> ')
  29.             if con[0].upper() == 'N':
  30.                 exit()
  31.             else:
  32.                 os.system("clear")
  33.                 print logo
  34.                 print menu
  35.                 select()
  36.            
  37. def  select():
  38.   try:
  39.     choice = input("Crips~# ")
  40.     if choice == 1:
  41.       d3 = raw_input('Enter IP Or Domain : ')
  42.       os.system("clear")
  43.     elif choice == 0:
  44.       os.system("clear")
  45.       print("This tool is only available for Linux and similar systems  ")
  46.       os.system("git clone https://github.com/Manisso/Crips.git")
  47.       os.system("cd Crips && sudo bash ./update.sh")
  48.       os.system("crips")
  49.     elif choice == 1:
  50.       d3 = raw_input('Enter IP Or Domain : ')
  51.       os.system("clear")
  52.       print("""
  53. (   (      (                            
  54. )\ ))\ )   )\ )            )            
  55. (()/(()/(  (()/(         ( /(   (        
  56. /(_)/(_))  /(_)) (   (  )\()) ))\ `  )  
  57. (_))(_))   (_))   )\ )\((_)\ /((_)/(/(  
  58. |_ _| _ \ | |   ((_)((_| |(_(_))(((_)_\
  59. | ||  _/  | |__/ _ / _ | / /| || | '_ \)
  60. |___|_|    |____\___\___|_\_\ \_,_| .__/  
  61.                                  |_|    
  62.       """)
  63.       os.system("wget http://api.hackertarget.com/reverseiplookup/?q=" + d3 )
  64.       os.system("clear")
  65.       os.system("curl http://api.hackertarget.com/reverseiplookup/?q=" + d3 )
  66.       print("")
  67.       print("\033[91m\033[1mFile Saved On : ")
  68.       os.system("pwd")
  69.       print("File : index.html?q=" +d3)
  70.       print("\033[0m")
  71.       quit()
  72.   except(KeyboardInterrupt):
  73.     print ""
  74. select()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement