diff --git a/crips.py b/crips.py index de4b1a2..fa56cae 100644 --- a/crips.py +++ b/crips.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python3 # # # @@ -30,23 +30,23 @@ {0}--INSTALL & UPDATE {99}-Exit ''' -print logo -print menu +print(logo) +print(menu) def quit(): - con = raw_input('Continue [Y/n] -> ') - if con[0].upper() == 'N': - exit() - else: - os.system("clear") - print logo - print menu - select() + con = input('Continue [Y/n] -> ') + if con[0].upper() == 'N': + exit() + else: + os.system("clear") + print(logo) + print(menu) + select() def select(): try: choice = input("Crips~# ") if choice == 1: - d3 = raw_input('Enter IP Or Domain : ') + d3 = input('Enter IP Or Domain : ') os.system("clear") print(""" _ ____ ______ _________ @@ -59,13 +59,13 @@ def select(): print("") quit() elif choice == 0: - os.system("clear") - print("This tool is only available for Linux and similar systems ") - os.system("git clone https://github.com/Manisso/Crips.git") - os.system("cd Crips && sudo bash ./update.sh") - os.system("crips") + os.system("clear") + print("This tool is only available for Linux and similar systems ") + os.system("git clone https://github.com/Manisso/Crips.git") + os.system("cd Crips && sudo bash ./update.sh") + os.system("crips") elif choice == 2: - d3 = raw_input('Enter IP Or Domain : ') + d3 = input('Enter IP Or Domain : ') os.system("clear") print(""" ____ ____ __ ___ ____ ____ _____ __ __ ____ ____ @@ -77,7 +77,7 @@ def select(): print("") quit() elif choice == 3: - d3 = raw_input('Enter Domain : ') + d3 = input('Enter Domain : ') os.system("clear") print(""" ______ _ _ _____ _ _ @@ -93,40 +93,40 @@ def select(): print("") quit() elif choice == 0: - print "Bye Bye" + print("Bye Bye") os.system("clear") exit() elif choice == 4: - d3 = raw_input('Enter IP Address - IP Range Or Domain : ') - os.system("clear") - print(""" - _____ ____ _____ _____ -| __ |___ _ _ ___ ___ ___ ___ | \| | | __| -| -| -_| | | -_| _|_ -| -_| | | | | | |__ | -|__|__|___|\_/|___|_| |___|___| |____/|_|___|_____| - - """) - os.system("curl https://api.hackertarget.com/reversedns/?q=" + d3 ) - print("") - quit() + d3 = input('Enter IP Address - IP Range Or Domain : ') + os.system("clear") + print(""" + _____ ____ _____ _____ + | __ |___ _ _ ___ ___ ___ ___ | \| | | __| + | -| -_| | | -_| _|_ -| -_| | | | | | |__ | + |__|__|___|\_/|___|_| |___|___| |____/|_|___|_____| + + """) + os.system("curl https://api.hackertarget.com/reversedns/?q=" + d3 ) + print("") + quit() elif choice == 5: - d3 = raw_input('Enter IP Or Domain : ') - os.system("clear") - print(""" - _____ _____ _____ - / ____| |_ _| __ \ - | | __ ___ ___ | | | |__) | - | | |_ |/ _ \/ _ \ | | | ___/ - | |__| | __| (_) _| |_| | - \_____|\___|\___|_____|_| - - """) - os.system("curl http://api.hackertarget.com/geoip/?q=" + d3 ) - print("") - print("") - quit() + d3 = input('Enter IP Or Domain : ') + os.system("clear") + print(""" + _____ _____ _____ + / ____| |_ _| __ \ + | | __ ___ ___ | | | |__) | + | | |_ |/ _ \/ _ \ | | | ___/ + | |__| | __| (_) _| |_| | + \_____|\___|\___|_____|_| + + """) + os.system("curl http://api.hackertarget.com/geoip/?q=" + d3 ) + print("") + print("") + quit() elif choice == 6: - d3 = raw_input('Enter IP Or Domain : ') + d3 = input('Enter IP Or Domain : ') os.system("clear") print(""" __ __ @@ -140,28 +140,28 @@ def select(): print("") quit() elif choice == 7: - d3 = raw_input('Enter IP Or Domain : ') - os.system("clear") - print(""" - ( ( ( - )\ ))\ ) )\ ) ) -(()/(()/( (()/( ( /( ( - /(_)/(_)) /(_)) ( ( )\()) ))\ ` ) -(_))(_)) (_)) )\ )\((_)\ /((_)/(/( -|_ _| _ \ | | ((_)((_| |(_(_))(((_)_\ - | || _/ | |__/ _ / _ | / /| || | '_ \) -|___|_| |____\___\___|_\_\ \_,_| .__/ - |_| - """) - os.system("wget http://api.hackertarget.com/reverseiplookup/?q=" + d3 ) - os.system("clear") - os.system("curl http://api.hackertarget.com/reverseiplookup/?q=" + d3 ) - print("") - print("\033[91m\033[1mFile Saved On : ") - os.system("pwd") - print("File : index.html?q=" +d3) - print("\033[0m") - quit() + d3 = input('Enter IP Or Domain : ') + os.system("clear") + print(""" + ( ( ( + )\ ))\ ) )\ ) ) + (()/(()/( (()/( ( /( ( + /(_)/(_)) /(_)) ( ( )\()) ))\ ` ) + (_))(_)) (_)) )\ )\((_)\ /((_)/(/( + |_ _| _ \ | | ((_)((_| |(_(_))(((_)_\ + | || _/ | |__/ _ / _ | / /| || | '_ \) + |___|_| |____\___\___|_\_\ \_,_| .__/ + |_| + """) + os.system("wget http://api.hackertarget.com/reverseiplookup/?q=" + d3 ) + os.system("clear") + os.system("curl http://api.hackertarget.com/reverseiplookup/?q=" + d3 ) + print("") + print("\033[91m\033[1mFile Saved On : ") + os.system("pwd") + print("File : index.html?q=" +d3) + print("\033[0m") + quit() except(KeyboardInterrupt): - print "" + print("") select()