sudo -l - list user's privileges or check a specific command
sudo-lsudo-ll
➡️ Network
ip / ifconfig- show/manipulate routing, network devices, interfaces and tunnels
ipaip-br-caifconfig
iwconfig - show wireless network interface configuration and status
iwconfig
ip n - display the neighbor/ARP table
ipn
arp -a - display ARP cache, IP-to-MAC address mapping
arp-a
ip r - display the IP routing table (destination networks, gateway IP, net interfaces)
ipr
route - display/manipulate the IP routing table
route
ping - send ICMPECHO_REQUEST to network hosts, checking network connectivity
ping8.8.8.8# Stop with CTRL+C
netstat / ss - print network connections (e.g. for open ports)
netstat-tulpnss-tnl
➡️ Services
service - manipulate services
# Start Apache Web server servicesudoserviceapache2start# Stop Apache Web server servicesudoserviceapache2stop
python
# Start a simple HTTP server using Python, in current directorypython3-mhttp.server80
systemctl
# Enable a service at system bootsudosystemctlenablesshsudosystemctlenablessh--now# Disable a service at system bootsudosystemctldisablessh
➡️ Tools
apt update - update the packages list and upgrade installed packages using the APT package manager
# Update O.S.sudoaptupdate&&sudoaptupgrade-y
apt install - install packages
sudoaptinstallcron-daemon-common# Install some useful toolssudoaptinstall-yapt-transport-httpsbtopcurldufezaflameshothtopkali-wallpapers-allneofetchnet-toolspipxspeedtest-clitelegram-desktopterminatortortreevlcwget
git - work with Git repository and version control
# Clone a Github repository in the "/opt" dircd/optsudorm-rfpimpmykali/sudogitclonehttps://github.com/Dewalt-arch/pimpmykalisudo/opt/pimpmykali/pimpmykali.sh# For a new kali vm, run menu option N# hit N for NO root loginreboot
#!/bin/bashif [ "$1"=="" ]thenecho"ERROR: Insert an IP address!"echo"Syntax is: ./ipsweep.sh 192.168.1"else# For every IP in the subnet Ping and print the IP# & = multiple loop instances at oncefor ip in`seq1254`; doping-c1 $1.$ip |grep"64 bytes"|cut-d" "-f4|tr-d":"&donefi