Pivoting in Linux
Enumerate Network in Remote Machine
# Linux 64-bit
wget https://github.com/andrew-d/static-binaries/raw/master/binaries/linux/x86_64/nmap# ARP cache
arp -a
# Network hosts, ip addresses
cat /etc/hosts
cat /etc/resolv.conf
nmcli dev show
# Network ranges
nmap 10.0.0.1-255
nmap 172.17.0.1-255
for i in {1..255}; do (ping -c 1 10.0.0.${i} | grep "bytes from" &); done
# Port scan
nmap 10.0.0.2
nmap 172.17.0.2
for i in {1..65535}; do (echo > /dev/tcp/172.17.0.2/$i) >/dev/null 2>&1 && echo $i is open; doneAccess to Not Directly Accessible Host
Basic Flow with Metasploit, Meterpreter
Last updated