Skip to content

Instantly share code, notes, and snippets.

@jeremypruitt
Created June 5, 2019 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremypruitt/8f1226751e34718f94700423f8e0a204 to your computer and use it in GitHub Desktop.
Save jeremypruitt/8f1226751e34718f94700423f8e0a204 to your computer and use it in GitHub Desktop.
Hack The Box - Irked

Techniques

Tools

  • nmap

Port Scan

  1. Scan for ports and services
    # Use nmap to find available TCP ports quickly
    $ ports=$( \
        nmap 10.10.10.117 \
             -p- \
             --min-rate=1000 \
             -T4 \
        | grep ^[0-9] \
        | cut -d '/' -f 1 \
        | tr '\n' ',' \
        | sed s/,$// \
      )
    
    # Scan found ports for services
    $ nmap 10.10.10.117 \
           -p ${ports} \
           -sV \
           -sC \
           -T4 \
           -oA nmap-tcp-foundports

Enumerate ___


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment