-
-
Save tUn4/f146ffe947cb0f99f76ca38f36e78356 to your computer and use it in GitHub Desktop.
OSCP nmap scripts
This file contains hidden or 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
| if [ "$#" -ne 3 ]; then | |
| echo "Usage: nmap-tcp-full.sh <TCP-QUICK-RESULTS.XML> <TARGET> <OUTPUT-FILENAME>" | |
| exit 1 | |
| fi | |
| nmap -nvv -Pn -sSV -T1 -p$(cat $1 | grep portid | grep protocol=\"tcp\" | cut -d'"' -f4 | paste -sd "," -) --version-intensity 9 -A -oA $3 $2 |
This file contains hidden or 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
| if [ $# -ne 2 ]; then | |
| echo "Usage: nmap-tcp-quick.sh <TARGET> <OUTPUT-FILENAME>" | |
| exit 1 | |
| fi | |
| nmap -Pn -sS --stats-every 3m --max-retries 1 --max-scan-delay 20 --defeat-rst-ratelimit -T4 -p1-65535 -oA $2 $1 |
This file contains hidden or 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
| if [ $# -ne 2 ]; then | |
| echo "Usage: nmap-udp-quick.sh <TARGET> <OUTPUT-FILENAME>" | |
| exit 1 | |
| fi | |
| nmap -Pn --top-ports 1000 -sU --stats-every 3m --max-retries 1 -T3 -oA $2 $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment