It looks like we need to add `delivery.htb` to `/etc/hosts`
We can also see that `Helpdesk` would lead us to a sub domain `help.delivery.htb` so we should add this to `/etc/hosts`
<imgsrc="https://imgur.com/mCUpmVk.png"/>
## PORT 8065 (HTTP)
On adding the domain in /etc/hosts
### help.delievery.htb
<imgsrc="https://imgur.com/iTvtqAk.png"/>
On selecting `Open a new ticket`
<imgsrc="https://imgur.com/c9kJKxQ.png"/>
<imgsrc="https://imgur.com/cW2yG76.png"/>
<imgsrc="https://imgur.com/9iyKF9S.png"/>
After creating a ticket we will get a token number and a mail which we will use to register on `Mattermost` which is on `delivery.htb`
On logging in with the registered email
<imgsrc="https://imgur.com/xHcF2Xl.png"/>
### delievery.htb
Visit this domain and register with the `token_number@delivery.htb` which will then send you the email verification link
<imgsrc="https://imgur.com/9batnYw.png"/>
<imgsrc="https://imgur.com/8BVe05D.png"/>
<imgsrc="https://imgur.com/sHvZQcj.png"/>
We will get these credentials `maildeliverer:Youve_G0t_Mail!`
Also this message
```
Also please create a program to help us stop re-using the same passwords everywhere.... Especially those that are a variant of "PleaseSubscribe!"
PleaseSubscribe! may not be in RockYou but if any hacker manages to get our hashes, they can use hashcat rules to easily crack all variations of common words or phrases.
```
Login here with the credentials
<imgsrc="https://imgur.com/x12MwEK.png"/>
<imgsrc="https://imgur.com/Ey24ZgQ.png"/>
But there was not nothing on `ostickets` so I tried these credentials by logging in with ssh
<imgsrc="https://imgur.com/VZPRUvb.png"/>
Going into `/opt` directory I found a folder named `mattermost`.
<imgsrc="https://imgur.com/CwnWK5p.png"/>
Again we see an interesting folder named `config`
<imgsrc="https://imgur.com/xIDt2OI.png"/>
<imgsrc="https://imgur.com/lZYmO10.png"/>
And we can see credentials for the mysql database
<imgsrc="https://imgur.com/XcxUGpg.png"/>
Mysql is running on port 3306 which is the defualt one so let's try logging in with the credentials we found
<imgsrc="https://imgur.com/KQz76Xl.png"/>
<imgsrc="https://imgur.com/iGP1GUu.png"/>
<imgsrc="https://imgur.com/pKb75u5.png"/>
At the end we see a table named `Users`
<imgsrc="https://imgur.com/6QFgFW2.png"/>
<imgsrc="https://imgur.com/arpmz8y.png"/>
We will get the information for `root` user including the password hash
<imgsrc="https://imgur.com/ZUy2suD.png"/>
Visiting `Name That Hash` website we can see that this is `bcrypt` hash
<imgsrc="https://imgur.com/TcmEI51.png"/>
Save the hash in a text file
<imgsrc="https://imgur.com/ZatfO74.png"/>
Now remeber the message that we saw from Mattermost chat that we need to use hashcat rules for the variation of `PleaseSubscribe!`