Skip to content

Instantly share code, notes, and snippets.

@jeremypruitt
Last active August 3, 2019 23:04
Show Gist options
  • Select an option

  • Save jeremypruitt/5ee4180efbdf88aa92f0268f446fb104 to your computer and use it in GitHub Desktop.

Select an option

Save jeremypruitt/5ee4180efbdf88aa92f0268f446fb104 to your computer and use it in GitHub Desktop.

Revisions

  1. jeremypruitt revised this gist Aug 3, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions HackTheBox-Fortune.md
    Original file line number Diff line number Diff line change
    @@ -41,8 +41,8 @@

    1) **Check found ports against the Vulners db/nse script**
    ```bash
    $ nmap help.htb \
    -p ${lacasadepapel_tcp_ports} \
    $ nmap fortune.htb \
    -p ${fortune_tcp_ports} \
    --script=vulners \
    -Pn \
    -A \
  2. jeremypruitt created this gist Aug 3, 2019.
    62 changes: 62 additions & 0 deletions HackTheBox-Fortune.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,62 @@
    ## Techniques

    ## Tools
    * nmap

    ## Setup

    1) **Add `fortune.htb` to the hosts file so we can refer to the host by name**
    ```bash
    $ echo "10.10.10.127 fortune.htb" >> /etc/hosts
    ```

    ## Port Scan

    1) **Scan for ports and services**
    ```bash
    # Use nmap to find available TCP ports quickly
    $ fortune_tcp_ports=$( \
    nmap fortune.htb \
    -p- \
    --min-rate=1000 \
    --max-retries=2 \
    -T4 \
    -Pn \
    -oA nmap-tcp-allports \
    | grep ^[0-9] \
    | cut -d '/' -f 1 \
    | tr '\n' ',' \
    | sed s/,$// \
    )

    # Scan found ports for services
    $ nmap fortune.htb \
    -p ${fortune_tcp_ports} \
    -sV \
    -sC \
    -T4 \
    -Pn \
    -oA nmap-tcp-foundports
    ```

    1) **Check found ports against the Vulners db/nse script**
    ```bash
    $ nmap help.htb \
    -p ${lacasadepapel_tcp_ports} \
    --script=vulners \
    -Pn \
    -A \
    -T4 \
    -oA nmap-tcp-foundports-vulners
    ```

    ### Web Enumeration: fortune.htb:80

    1) **________**

    Let's start by looking for interesting URL paths:

    ```bash
    $
    ```