From 8e52045892909989054fd3080f356634057c782a Mon Sep 17 00:00:00 2001 From: Tomas Vanagas Date: Sat, 22 Jul 2017 16:43:56 +0100 Subject: [PATCH] Python scripts for repository Deleted python scripts and made repository adding in bash, because it wasn't working (tested in Ubuntu live 17.04) --- install/install.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/install/install.sh b/install/install.sh index 11b56b9..3c58de1 100755 --- a/install/install.sh +++ b/install/install.sh @@ -168,6 +168,15 @@ fi echo "Updating system..." +# adding repository and keys +if [ "$(cat /etc/apt/sources.list | grep 'deb http://http.kali.org/kali kali-rolling main contrib non-free')" = "" ]; then + gpg --keyserver hkp://keys.gnupg.net --recv-key 7D8D0BF6 + apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6 + echo "deb http://http.kali.org/kali kali-rolling main contrib non-free # by fluxion" >> /etc/apt/sources.list +else + echo "[*] Kali repository already exist, skipping." +fi + #cleaning up sudo apt-get install -f -y sudo apt-get autoremove -y @@ -178,8 +187,6 @@ sudo apt-get install xterm --yes clear mostrarheader xterm $HOLD -title "Updating System" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e apt-get install software-properties-common --yes -xterm $HOLD -title "Updating System" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e python remove.py -xterm $HOLD -title "Updating System" $TOPLEFTBIG -bg "#FFFFFF" -fg "#000000" -e python add.py ############################## @@ -379,7 +386,8 @@ fi sleep 0.025 ############################# -xterm $HOLD -title "Remove repositories" -e python remove.py +# removing repository +echo "$(cat /etc/apt/sources.list | grep -v 'deb http://http.kali.org/kali kali-rolling main contrib non-free # by fluxion')" > /etc/apt/sources.list rm -rf revolver git clone https://github.com/molovo/revolver revolver