From 26273fb85a60734f12193fb817a54c104c357bb7 Mon Sep 17 00:00:00 2001 From: WG-MakerOfThings <63617338+WG-MakerOfThings@users.noreply.github.com> Date: Mon, 4 Dec 2023 19:50:35 +0000 Subject: [PATCH] Update katoolin.py Seems to run fine without python traceback errors --- katoolin.py | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/katoolin.py b/katoolin.py index 71ef3c6..1ac3ea2 100644 --- a/katoolin.py +++ b/katoolin.py @@ -1,11 +1,11 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os import sys, traceback if os.getuid() != 0: - print "Sorry. This script requires sudo privledges" + print("Sorry. This script requires sudo privledges") sys.exit() def main(): try: @@ -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 keyserver.ubuntu.com --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 (" ")