From 71238b88d710f8bfb3dfd7c6acd7edfd01542e32 Mon Sep 17 00:00:00 2001 From: LogicalAlmond Date: Tue, 9 Feb 2021 12:12:19 -0500 Subject: [PATCH 1/2] Works on Python 3.8.x --- crips.py | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/crips.py b/crips.py index de4b1a2..b8e299c 100644 --- a/crips.py +++ b/crips.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python2.7 +#!/usr/bin/env python # # # @@ -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 = raw_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(""" _ ____ ______ _________ @@ -65,7 +65,7 @@ def select(): 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,11 +93,11 @@ 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 : ') + d3 = input('Enter IP Address - IP Range Or Domain : ') os.system("clear") print(""" _____ ____ _____ _____ @@ -110,7 +110,7 @@ def select(): print("") quit() elif choice == 5: - d3 = raw_input('Enter IP Or Domain : ') + d3 = input('Enter IP Or Domain : ') os.system("clear") print(""" _____ _____ _____ @@ -126,7 +126,7 @@ def select(): print("") quit() elif choice == 6: - d3 = raw_input('Enter IP Or Domain : ') + d3 = input('Enter IP Or Domain : ') os.system("clear") print(""" __ __ @@ -140,7 +140,7 @@ def select(): print("") quit() elif choice == 7: - d3 = raw_input('Enter IP Or Domain : ') + d3 = input('Enter IP Or Domain : ') os.system("clear") print(""" ( ( ( @@ -163,5 +163,5 @@ def select(): print("\033[0m") quit() except(KeyboardInterrupt): - print "" + print("") select() From 1f6e5afba049469565946439541e059edf463440 Mon Sep 17 00:00:00 2001 From: LogicalAlmond Date: Tue, 9 Feb 2021 12:24:22 -0500 Subject: [PATCH 2/2] Updated for python 3.8.x --- crips.py | 112 +++++++++++++++++++++++++++---------------------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/crips.py b/crips.py index b8e299c..fa56cae 100644 --- a/crips.py +++ b/crips.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # # @@ -33,7 +33,7 @@ print(logo) print(menu) def quit(): - con = raw_input('Continue [Y/n] -> ') + con = input('Continue [Y/n] -> ') if con[0].upper() == 'N': exit() else: @@ -59,11 +59,11 @@ 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 = input('Enter IP Or Domain : ') os.system("clear") @@ -97,34 +97,34 @@ def select(): os.system("clear") exit() elif choice == 4: - 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() + 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 = 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 = input('Enter IP Or Domain : ') os.system("clear") @@ -140,28 +140,28 @@ def select(): print("") quit() elif choice == 7: - 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() + 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("") select()