Last active
July 29, 2018 19:05
-
-
Save lsdr/3818383 to your computer and use it in GitHub Desktop.
unix sec-related cheatsheet
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# references | |
# https://www.thegeekstuff.com/2012/08/lsof-command-examples/ | |
# list open network files | |
sudo lsof -PiTCP -sTCP:LISTEN | |
# list files opened by a process | |
lsof -c ssh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap -sT -sU -v -oX -P0 <ip> | |
nmap -v -sS -O <ip> | |
nmap --spoof-mac Cisco --data-length 9 -f -D 172.168.200.200,RND:5,ME -v -n -O -sS -sV --log-errors -append-output -p T:1-1024,1433,2222,2249,3306,5022,7778,8000,8080,9000,9090,9999 -Pn <hostname> | |
# scans for port in IP range, gives hostname if run with root | |
nmap -sP -PS22 192.168.0.1/24 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@roadhouse malandréx da internê