---
title: "ProvingGrounds - Stapler"
date: 2024-06-05
draft: false
---

off the bat we have some sort of weird LFI 

![](/img/Pasted image 20240529010744.png)

website is weirdly empty though
![](/img/Pasted image 20240529010806.png)

```bash
┌──(root㉿kali)-[~]
└─# nmap -Pn 192.168.240.148    
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-06-05 23:35 EDT
Nmap scan report for 192.168.240.148
Host is up (0.046s latency).
Not shown: 992 filtered tcp ports (no-response)
PORT     STATE  SERVICE
20/tcp   closed ftp-data
21/tcp   open   ftp
22/tcp   open   ssh
53/tcp   open   domain
80/tcp   open   http
139/tcp  open   netbios-ssn
666/tcp  open   doom
3306/tcp open   mysql

Nmap done: 1 IP address (1 host up) scanned in 4.26 seconds
```

![](/img/Pasted image 20240605223652.png)
smb gave us some stuff to look at too: 
![](/img/Pasted image 20240605224056.png)

okay for this one - 
if you try to hydra SSH with rockyou, it's probably not a great idea

always try -e nsr with hydra, its apparently common to just use the username as a password (hehe) or username reversed as a password

oh also if you bruteforce one thing and it doesn't really work out, try to brute force another thing. we `-e nsr` against ssh, doesn't give us anything, but it works against ftp. 
from ftp we can find a `passwd` file. 
from `passwd` file we get another list of users.
from that list of users we bruteforce ssh 
![](/img/Pasted image 20240605231154.png)

