Week 1: Setup
Introduction, Notekeeping, and Introductory Linux
Setup
apt update && apt upgrade
# update checks the repos for new versions and indexes
# upgrade downloads all the newest versions
# selected GRUB partition sda instead of sda1
# need to install postgresql 12 and uninstall 11
apt autoremove
# download into /opt/ directory
# /opt is for "the installation of add-on application software packages"
# installed impacket into opt from git
# in directory, pip install .
# use systemctl to turn on services by default (on boot)
systemctl enable ssh
systemctl enable postgresql # useful for metasploit
# just for this session use “service”
service enable apache2
service enable ssh
root@kali:~# ping -c 1 10.0.2.2 | grep "64" | cut -d " " -f 4 | tr -d ":"
10.0.2.2
root@kali:~# cat iplist.txt
10.0.2.3
10.0.2.4
10.0.2.2
10.0.2.15
root@kali:~# for ip in $(cat iplist.txt); do nmap -p 80 -T4 $ip & done
[1] 5115
[2] 5116
[3] 5117
[4] 5118Useful Locations
Last updated