-
-
Save gregsec/3edd844fc5a6071c5ea77a2cf4d0e08a 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 <OUTPUT-FILENAME> <TARGET>" | |
| 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment