My Useful commands
Just my Cheatsheet for commands
Find host
nmap -sP 10.0.0.10/25
sudo netdiscover -r 10.0.0.0/24
Scan
nmap -v -T4 -p- -sC -sV -oN nmap.out 10.0.0.20
sudo nmap -sC -sV -O -p- -oN nmap.out 10.0.0.20
gobuster dir -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -r -u http://10.0.0.24/ -x html,php,txt,jpg -o dir-medium.txt --no-error
Exploting
wget https://raw.githubusercontent.com/carlospolop/privilege-escalation-awesome-scripts-suite/master/linPEAS/linpeas.sh
sh ./linpeas.sh|tee linp.log
getcap -r / 2>/dev/null
find / -perm -4000 -exec ls -al {} \; 2>/dev/null
find . -name <user> 2>/dev/null
find . -group <user> 2>/dev/null
Crontab to maintain access if needed.
sudo
https://www.shodan.io/ - search by ip, name, or domain
https://wigle.net/ - search by wifi ssid
https://grep.app/ - search across 500k git repos
https://app.binaryedge.io/ - search through internet data
https://www.onyphe.io/ - search by ip
https://www.greynoise.io/viz/- tons of useful data
https://censys.io/ - great for mapping out or researching online infrastructure
https://hunter.io/ - find company emails
https://www.zoomeye.org/ - image analysis
https://searchcode.com/ - search thru 75 billion lines of code from 40 million projects
https://publicwww.com/ - search by website source code
Comments
Post a Comment