Hackthebox - Socket
Initial Enumeration
sql
1 | # Nmap 7.93 scan initiated Mon Mar 27 12:01:06 2023 as: nmap -sC -sV -oN nmap/socket socket.htb |
Web
decompiling it
python
1 | # Source Generated with Decompyle++ |
I created a simple wrapper to make it a http requests
js
1 | const express = require('express'); |
trying some payload we get blind injection on version ws.
using the script i was able to get
cracking the hash we get the password to be denjanjade122566
Privillege Escalation
css
1 | sshpass -p denjanjade122566 ssh tkeller@10.10.11.206 |
So i created a very simple spec file with
py
1 | # -*- mode: python -*- |
running build we get a reverse shell as root