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

Create new file #86

Closed
wants to merge 1 commit into from
Closed

Create new file #86

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Aug 22, 2017

remove package

remove package
@qsoora
Copy link

qsoora commented Sep 29, 2017

remove.py

#!/usr/bin/python

import os
import sys, traceback

def main():
try:
print ('''
$$\ $$\ $$\ $$\ $$\
$$ | $$ | $$ | $$ |_|
$$ |$$ / $$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ $$ |$$\ $$$$$$$\
$$$$$ / _
$$\ _$$ | $$ __$$\ $$ __$$\ $$ |$$ |$$ __$$\
$$ $$< $$$$$$$ | \033[1;36mKali linux tools removeer\033[1;m |$$ |$$ |$$ | $$ |
\033[1;36m$$ |$$\ $$ __$$ | $$ |$$\ $$ | $$ |$$ | $$ |$$ |$$ |$$ | $$ |
$$ | $$\ $$$$$$$ | $$$$ |$$$$$$ |$$$$$$ |$$ |$$ |$$ | $$ |
_
| _
| _
| _/ _/ ___/ _|_|_| _| V1.1 \033[1;m
\033[1;32m+ -- -- +=[ Author: LionSec | Homepage: www.lionsec.net\033[1;m
\033[1;32m+ -- -- +=[ 331 Tools \033[1;m
\033[1;91m[W] Before updating your system , please remove all Kali-linux repositories to avoid any kind of problem .\033[1;m
''')
def inicio1():
while True:
print ('''

  1. Add Kali repositories & Update

  2. View Categories

  3. remove classicmenu indicator

  4. remove Kali menu

  5. Help
    ''')

     		opcion0 = raw_input("\033[1;36mkat > \033[1;m")
    
     		while opcion0 == "1":
     			print ('''
    
  6. Add kali linux repositories

  7. Update

  8. Remove all kali linux repositories

  9. View the contents of sources.list file
    ''')
    repo = raw_input("\033[1;32mWhat do you want to do ?> \033[1;m")
    if repo == "1":
    cmd1 = os.system("apt-key adv --keyserver pgp.mit.edu --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")
    elif repo == "2":
    cmd3 = os.system("apt-get update -m")
    elif repo == "3":
    infile = "/etc/apt/sources.list"
    outfile = "/etc/apt/sources.list"

     				delete_list = ["# Kali linux repositories | Added by Katoolin\n", "deb http://http.kali.org/kali kali-rolling main contrib non-free\n"]
     				fin = open(infile)
     				os.remove("/etc/apt/sources.list")
     				fout = open(outfile, "w+")
     				for line in fin:
     				    for word in delete_list:
     				        line = line.replace(word, "")
     				    fout.write(line)
     				fin.close()
     				fout.close()
     				print ("\033[1;31m\nAll kali linux repositories have been deleted !\n\033[1;m")
     			elif repo == "back":
     				inicio1()
     			elif repo == "gohome":
     				inicio1()
     			elif repo == "4":
     				file = open('/etc/apt/sources.list', 'r')
    
     				print (file.read())
    
     			else:
     				print ("\033[1;31mSorry, that was an invalid command!\033[1;m") 					
    
    
     		if opcion0 == "3":
     			print (''' 
    

ClassicMenu Indicator is a notification area applet (application indicator) for the top panel of Ubuntu's Unity desktop environment.
It provides a simple way to get a classic GNOME-style application menu for those who prefer this over the Unity dash menu.
Like the classic GNOME menu, it includes Wine games and applications if you have those removeed.
For more information , please visit : http://www.florian-diesch.de/software/classicmenu-indicator/
''')
repo = raw_input("\033[1;32mDo you want to remove 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 remove classicmenu-indicator")

			elif opcion0 == "4"	:
				repo = raw_input("\033[1;32mDo you want to remove Kali menu ? [y/n]> \033[1;m")
				if repo == "y":
					cmd1 = os.system("apt-get remove kali-menu")
			elif opcion0 == "5":
				print (''' 

****************** +Commands+ ******************
\033[1;32mback\033[1;m \033[1;33mGo back\033[1;m
\033[1;32mgohome\033[1;m \033[1;33mGo to the main menu\033[1;m
''')

			def inicio():
				while opcion0 == "2":
					print ('''

\033[1;36m**************************** All Categories *****************************\033[1;m

  1. Information Gathering 8) Exploitation Tools
  2. Vuln

@ghost ghost closed this Oct 10, 2019
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants