cherryTree
Keep note (original in kali)
- locate / updatedb
- passwd
- man
Users
- chmod
- adduser
- /etc/passwd file (users)
- /etc/shadow file
- su (switch user)
- sudo
- sudoers file
Networking
- ifconfig
- iwconfig (wireless)
- ping (ICMP)
- arp -a (maps IP address to MAC address)
- netstat -ano (tool that display all connections and listening ports)
- route (displays routing table)
Services
- Service: start/stop services (service apache2 start)
- Systemctl: Enable/disable services
Install
- Installing updates with apt-get
- Installing tools with apt-get
apt-get update && apt-get upgrade
Bash scripting
- grep
- cut
- tr (translate)
- script writing
- for loops
ping 192.168.1.12 -c 1 > ip.txt
cat ip.txt | grep "64 bytes" | cut -d " " -f 4 | tr -d":"
Ipsweep.sh
#!/bin/bash
for ip in 'seq 1 254'; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
The ampersand do threading (not one at a time)
$1 is user intput
To call:
./ipsweep.sh 192.168.1
for ip in $(cat iplist.txt); do nmap -sS -p 80 -T4 $ip & done
Hackthebox.eu
Vulnhub.com
Elearnsecurity.com
Oscp – offensive-security.com
Giac.org
10 things after kali linux install
1. Install GIT
pt install git
2. Configure bash aliases
Edit the hidden bash_aliases file
~/.bash_aliases
Add an alias
alias mikado='besside-ng wlan0'
3. New low privileged user
adduser mikado
usermod -aG sudo mikado
4. Install terminal multiplexer
apt install tilix
5. Install favorite tools
tools.kali.org/kali-metapackages
sudo apt update && sudo apt install kali-linux-rfid
6. Install latest version of Tor