From ef35844b4b987c0ca983338c3403285a02a859a9 Mon Sep 17 00:00:00 2001 From: JackSparrow0723 <106837407+JackSparrow0723@users.noreply.github.com> Date: Fri, 3 Jun 2022 12:58:13 -0600 Subject: [PATCH 1/2] Update - To use with python3 + --- katoolin.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/katoolin.py b/katoolin.py index 102c17a..2ab10f3 100644 --- a/katoolin.py +++ b/katoolin.py @@ -38,7 +38,7 @@ def inicio1(): ''') - opcion0 = raw_input("\033[1;36mkat > \033[1;m") + opcion0 = input("\033[1;36mkat > \033[1;m") while opcion0 == "1": print (''' @@ -48,7 +48,7 @@ def inicio1(): 4) View the contents of sources.list file ''') - repo = raw_input("\033[1;32mWhat do you want to do ?> \033[1;m") + repo = input("\033[1;32mWhat do you want to do ?> \033[1;m") if repo == "1": cmd1 = os.system("apt-key adv --keyserver pool.sks-keyservers.net --recv-keys ED444FF07D8D0BF6") cmd2 = os.system("echo '# Kali linux repositories | Added by Katoolin\ndeb http://http.kali.org/kali kali-rolling main contrib non-free' >> /etc/apt/sources.list") @@ -93,13 +93,13 @@ def inicio1(): For more information , please visit : http://www.florian-diesch.de/software/classicmenu-indicator/ ''') - repo = raw_input("\033[1;32mDo you want to install classicmenu indicator ? [y/n]> \033[1;m") + repo = input("\033[1;32mDo you want to install classicmenu indicator ? [y/n]> \033[1;m") if repo == "y": cmd1 = os.system("add-apt-repository ppa:diesch/testing && apt-get update") cmd = os.system("sudo apt-get install classicmenu-indicator") elif opcion0 == "4" : - repo = raw_input("\033[1;32mDo you want to install Kali menu ? [y/n]> \033[1;m") + repo = input("\033[1;32mDo you want to install Kali menu ? [y/n]> \033[1;m") if repo == "y": cmd1 = os.system("apt-get install kali-menu") elif opcion0 == "5": @@ -132,7 +132,7 @@ def inicio(): ''') print ("\033[1;32mSelect a category or press (0) to install all Kali linux tools .\n\033[1;m") - opcion1 = raw_input("\033[1;36mkat > \033[1;m") + opcion1 = input("\033[1;36mkat > \033[1;m") if opcion1 == "back": inicio1() elif opcion1 == "gohome": @@ -177,7 +177,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install acccheck") @@ -332,7 +332,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install bbqsql") @@ -438,7 +438,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install aircrack-ng") @@ -543,7 +543,7 @@ def inicio(): print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install apache-users") @@ -661,7 +661,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install burpsuite") @@ -764,7 +764,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install cryptcat") @@ -825,7 +825,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install casefile") @@ -881,7 +881,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install armitage") @@ -949,7 +949,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install binwalk") @@ -1029,7 +1029,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install dhcpig") @@ -1095,7 +1095,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install acccheck") @@ -1198,7 +1198,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install apktool") @@ -1246,7 +1246,7 @@ def inicio(): ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("apt-get install android-sdk") @@ -1278,7 +1278,7 @@ def inicio(): 2) Squid3 ''') print ("\033[1;32mInsert the number of the tool to install it .\n\033[1;m") - opcion2 = raw_input("\033[1;36mkat > \033[1;m") + opcion2 = input("\033[1;36mkat > \033[1;m") if opcion2 == "1": cmd = os.system("git clone https://github.com/LionSec/wifresti.git && cp wifresti/wifresti.py /usr/bin/wifresti && chmod +x /usr/bin/wifresti && wifresti") print (" ") From b7a4d25d957cb48c630a6321829ab41008009239 Mon Sep 17 00:00:00 2001 From: JackSparrow0723 <106837407+JackSparrow0723@users.noreply.github.com> Date: Fri, 3 Jun 2022 13:01:44 -0600 Subject: [PATCH 2/2] update - print --- katoolin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/katoolin.py b/katoolin.py index 2ab10f3..7ba3bf9 100644 --- a/katoolin.py +++ b/katoolin.py @@ -5,7 +5,7 @@ if os.getuid() != 0: - print "Sorry. This script requires sudo privledges" + print ("Sorry. This script requires sudo privledges") sys.exit() def main(): try: