Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update katoolin.py #357

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions katoolin.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 ('''
Expand All @@ -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")
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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":
Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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 (" ")
Expand Down