Skip to content

Instantly share code, notes, and snippets.

@prosecurity
Forked from coffeegist/nmap-tcp-full.sh
Created January 7, 2019 21:08
Show Gist options
  • Select an option

  • Save prosecurity/c354bc1bc10b47e3ecfd61c289a3bacc to your computer and use it in GitHub Desktop.

Select an option

Save prosecurity/c354bc1bc10b47e3ecfd61c289a3bacc to your computer and use it in GitHub Desktop.

Revisions

  1. Adam Brown revised this gist Sep 26, 2017. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions nmap-udp-quick.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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
  2. Adam Brown revised this gist Sep 26, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion nmap-tcp-quick.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    if [ $# -ne 2 ]; then
    echo "Usage: nmap-tcp-quick.sh <OUTPUT-FILENAME> <TARGET>"
    echo "Usage: nmap-tcp-quick.sh <TARGET> <OUTPUT-FILENAME>"
    exit 1
    fi

  3. Adam Brown created this gist Sep 26, 2017.
    6 changes: 6 additions & 0 deletions nmap-tcp-full.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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
    6 changes: 6 additions & 0 deletions nmap-tcp-quick.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    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