Host Discovery
IP
Local IP
ipv6
Find local hosts:
ip neigh
IPv6 hosts:
ip -6 neigh
How do I change the state of the device to UP or DOWN?
The syntax is as follows:
ip link set dev {DEVICE} {up|down}
Nmap
Useful parameters:
Parameter | Info |
-sS | Syn Scan |
-v | Verbose |
-A | OS, Scripts and service scan |
-p- | Full port Scan |
-sU | UDP Scan |
--script=smb-vuln-scan | Run smb script |
--script-args=unsafe=1 | run the script with arguments |
-iL | Scan from a target file |
--exclude | Exclude listed hosts |
--excludefile | Exclude file list |
-sL | No scan list targets only |
-sn | Disable port scanning, host discovery only |
-sV | Attempts to determine the service version |
-T0 to -T5 | Scan speed, 0 the slowest and best at evasion, 5 insane speed scan |
--max-retries | Maximum member of port scan retransmissions |
netdiscover
Discovers IP, MAC Address and MAC vendor on the subnet from ARP, helpful for confirming you're on the right VLAN at client site
netdiscover -r 192.168.1.0/24
Results:
ARP
OneLiners - Ping sweep
Windows
for /L %i in (1,1,255) do @ping -n 1 -w 200 172.21.10.%i > nul && echo 192.168.1.%i is up.
Linux
for i in {1..254} ;do (ping -c 1 172.21.10.$i | grep "bytes from" &) ;done
Last updated