From d593796142bdea2ea0c7d6fa1081c81fe3ed2e64 Mon Sep 17 00:00:00 2001 From: Pedro-Souza Date: Tue, 11 Oct 2016 18:33:13 -0300 Subject: [PATCH] updade pep8 files --- add.py | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/add.py b/add.py index dfa38b5..452c157 100644 --- a/add.py +++ b/add.py @@ -1,10 +1,16 @@ #!/usr/bin/python -import os -import sys, traceback +from os import system -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") -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") +commands = [ + "apt-key adv --keyserver pgp.mit.edu --recv-keys ED444FF07D8D0BF6", + "echo '# Kali linux repositories | Added by Katoolin", + "deb http://http.kali.org/kali kali-rolling main contrib non-free", + "deb http://repo.kali.org/kali kali-bleeding-edge main' >> /etc/apt/sources.list", + "echo 'deb http://ftp.de.debian.org/debian/ jessie main contrib' >> /etc/apt/sources.list", + "curl https://debgen.simplylinux.ch/txt/jessie/gpg_e00a2b3f751ae92de06f69c527d8fde28f56d923.txt | sudo tee /etc/apt/gpg_keys.txt", + "apt-get update -m" +] + +for i in commands: + system(i)