Fix dependencies; fix xterm issue

This commit is contained in:
deltax 2016-08-06 19:10:15 +02:00 committed by GitHub
parent fe758286cd
commit 5896895397
3 changed files with 10 additions and 2 deletions

View File

@ -132,6 +132,11 @@ conditional_clear
mostrarheader mostrarheader
echo "Updating system..." echo "Updating system..."
#cleaning up
sudo apt-get autoremove -y
sudo apt-get autoclean -y
sudo apt-get clean -y
sudo apt-get update sudo apt-get update
sudo apt-get install xterm --yes sudo apt-get install xterm --yes
clear clear
@ -193,7 +198,7 @@ echo -ne "Curl............"
echo -ne "Dhcpd..........." echo -ne "Dhcpd..........."
if ! hash dhcpd 2>/dev/null; then if ! hash dhcpd 2>/dev/null; then
echo -e "\e[1;31mInstalling ..."$transparent"" echo -e "\e[1;31mInstalling ..."$transparent""
xterm $HOLD -title "Installing Dhcpd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000"-e apt-get --yes install isc-dhcp-server xterm $HOLD -title "Installing Hostapd" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get --yes install isc-dhcp-server
else else
echo -e "\e[1;32mOK!"$transparent echo -e "\e[1;32mOK!"$transparent
fi fi

2
add.py
View File

@ -5,4 +5,6 @@ import sys, traceback
cmd1 = os.system("apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6") 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\ndeb http://repo.kali.org/kali kali-bleeding-edge main' >> /etc/apt/sources.list") cmd2 = os.system("echo '# Kali linux repositories | Added by Katoolin\ndeb http://http.kali.org/kali kali-rolling main contrib non-free\ndeb http://repo.kali.org/kali kali-bleeding-edge main' >> /etc/apt/sources.list")
cmd3 = os.system("echo 'deb http://ftp.de.debian.org/debian/ jessie main contrib' >> /etc/apt/sources.list ")
cmd4 = os.system("curl https://debgen.simplylinux.ch/txt/jessie/gpg_e00a2b3f751ae92de06f69c527d8fde28f56d923.txt | sudo tee /etc/apt/gpg_keys.txt")
cmd3 = os.system("apt-get update -m") cmd3 = os.system("apt-get update -m")

View File

@ -7,6 +7,7 @@ infile = "/etc/apt/sources.list"
outfile = "/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","deb http://repo.kali.org/kali kali-bleeding-edge main\n"] delete_list = ["# Kali linux repositories | Added by Katoolin\n", "deb http://http.kali.org/kali kali-rolling main contrib non-free\n","deb http://repo.kali.org/kali kali-bleeding-edge main\n"]
delete_list = ["deb http://ftp.de.debian.org/debian/ jessie main contrib"]
fin = open(infile) fin = open(infile)
os.remove("/etc/apt/sources.list") os.remove("/etc/apt/sources.list")
fout = open(outfile, "w+") fout = open(outfile, "w+")
@ -17,4 +18,4 @@ for line in fin:
fin.close() fin.close()
fout.close() fout.close()
print "\033[1;31mDONE! !\033[1;m" print "\033[1;31mDONE! \033[1;m"