PC & IT SUPPORT MADE EASY FORUM
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Kali Linux 2 2017.1 Post Install Script

Go down

Kali Linux 2 2017.1 Post Install Script Empty Kali Linux 2 2017.1 Post Install Script

Post by jamied_uk 4th May 2017, 13:05

Vid



Code:
#!/bin/bash
# chmod +x *.sh
apt-get clean
cp /etc/apt/sources.list /etc/apt/sources.list_backup
apt-get clean && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
apt install -y build-essential vlc yum git gedit hexedit ghex notify-osd libnotify-bin ytalk iperf


Last edited by jamied_uk on 6th May 2017, 18:12; edited 6 times in total
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Kali Linux 2 2017.1 Post Install Script Empty Re: Kali Linux 2 2017.1 Post Install Script

Post by jamied_uk 4th May 2017, 13:26

Security Version Of This Script (Experimental)


Code:
#!/bin/bash
# chmod +x *.sh
cp /etc/apt/sources.list /etc/apt/sources.list_backup
apt update && apt upgrade -y
#apt install -y build-essential vlc yum git gedit
apt-get clean

# deb cdrom:Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02/ sana contrib main non-free

#deb cdrom:Debian GNU/Linux 2.0 _Sana_ - Official Snapshot amd64 LIVE/INSTALL Binary 20150811-08:02/ sana contrib main non-free

#deb http://security.kali.org/kali-security/ sana/updates main contrib non-free
#deb-src http://security.kali.org/kali-security/ sana/updates main contrib non-free

# Regular repositories
echo "deb http://http.kali.org/kali sana main non-free contrib" > /etc/apt/sources.list
#deb http://http.kali.org/kali sana main non-free contrib
echo "deb http://security.kali.org/kali-security sana/updates main contrib non-free" >> /etc/apt/sources.list
#deb http://security.kali.org/kali-security sana/updates main contrib non-free
# Source repositories
echo "deb-src http://http.kali.org/kali sana main non-free contrib" >> /etc/apt/sources.list
#deb-src http://http.kali.org/kali sana main non-free contrib
echo "deb-src http://security.kali.org/kali-security sana/updates main contrib non-free" >> /etc/apt/sources.list
#deb-src http://security.kali.org/kali-security sana/updates main contrib non-free
apt update && apt upgrade -y
apt install -y build-essential vlc yum git gedit
apt-get clean


Last edited by jamied_uk on 4th May 2017, 13:33; edited 1 time in total
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Kali Linux 2 2017.1 Post Install Script Empty Re: Kali Linux 2 2017.1 Post Install Script

Post by jamied_uk 4th May 2017, 13:31

Restore Sources


Code:
#!/bin/bash
# chmod +x *.sh
cp /etc/apt/sources.list_backup /etc/apt/sources.list
apt update && apt upgrade -y
#apt install -y build-essential vlc yum git gedit
apt-get clean
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Kali Linux 2 2017.1 Post Install Script Empty Re: Kali Linux 2 2017.1 Post Install Script

Post by jamied_uk 4th May 2017, 13:44

Testing Security & Adding A Non Root User


Code:
#!/bin/bash
var="USER INPUT"
grep Root /etc/ssh/sshd_config
 PermitRootLogin without-password
print "Enter A New Username For Non Root User With Same Power!"
useradd -m $var
usermod -a -G sudo $var
jamied_uk
jamied_uk
Admin

Posts : 3053
Join date : 2010-05-09
Age : 41
Location : UK

https://jnet.sytes.net

Back to top Go down

Kali Linux 2 2017.1 Post Install Script Empty Re: Kali Linux 2 2017.1 Post Install Script

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum