Ping

Nmap Scans
mapit 10.10.10.79
Nmap Default Scan

Nmap Script and Service Scan

Nmap All Port Scan

On Port 80

On Port 443

Gobuster Scan
gobuster dir -u http://10.10.10.79/ -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -t 50 -x php,html,txt,bak,aspx -s 200,204,301,302,307,403 -k --status-codes "" -o gobuster.txt

hype.key

notes.txt

ffuf Scan
ffuf -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u http://10.10.10.79/FUZZ -t 100 -o ffuf.txt
Now it make sense, will check encode and decode dir
Feroxbuster Scan
feroxbuster --url http://10.10.10.79 -k -o feroxbuster.txt

Testing the encoder with the input ‘test’

It is base64 encoded

Will check the decoder page
Works fine
Now will covert that hexadecimal value we found from hype.key to ASCII

Decoded Value
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,AEB88C140F69BF2074788DE24AE48D46
DbPrO78kegNuk1DAqlAN5jbjXv0PPsog3jdbMFS8iE9p3UOL0lF0xf7PzmrkDa8R
5y/b46+9nEpCMfTPhNuJRcW2U2gJcOFH+9RJDBC5UJMUS1/gjB/7/My00Mwx+aI6
0EI0SbOYUAV1W4EV7m96QsZjrwJvnjVafm6VsKaTPBHpugcASvMqz76W6abRZeXi
Ebw66hjFmAu4AzqcM/kigNRFPYuNiXrXs1w/deLCqCJ+Ea1T8zlas6fcmhM8A+8P
OXBKNe6l17hKaT6wFnp5eXOaUIHvHnvO6ScHVWRrZ70fcpcpimL1w13Tgdd2AiGd
pHLJpYUII5PuO6x+LS8n1r/GWMqSOEimNRD1j/59/4u3ROrTCKeo9DsTRqs2k1SH
QdWwFwaXbYyT1uxAMSl5Hq9OD5HJ8G0R6JI5RvCNUQjwx0FITjjMjnLIpxjvfq+E
p0gD0UcylKm6rCZqacwnSddHW8W3LxJmCxdxW5lt5dPjAkBYRUnl91ESCiD4Z+uC
Ol6jLFD2kaOLfuyee0fYCb7GTqOe7EmMB3fGIwS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KEY-----
We can assume hype is the username as of now and try to get a ssh session with id_rsa
ssh hype@10.10.10.79 -i id_rsa
It is asking passphrase, but I couldn’t crack it using john

We have to find passphrase now.
Will run a nmap vulnerability scanner
nmap 10.10.10.79 --script vuln -oN vnmap.txt
It found some vulnerabilities, but we got a popular one Heartbleed.
Will try that on port 443

Will decode the base43 encoded value
This should be the passphrase, will try
ssh session as hype
ssh hype@10.10.10.79 -i id_rsa
Still had a issue
So I google it and the Solution is in the Link https://stackoverflow.com/questions/73795935/sign-and-send-pubkey-no-mutual-signature-supported

So I have added the lines in my config file, and it worked

User.txt

Will jump to Privilege Escalation…!
Checked .bash_histroy file

Will check the running process
ps aux
Ok then will run that.
/usr/bin/tmux -S /.devs/dev_sess
has issue, will solve it
export TERM=screen-256color

Now will run the command
/usr/bin/tmux -S /.devs/dev_sess
We got a tmux session as root
Got root.txt

Done with Valentine…:)


