- Machine
- SneakyMailer
- OS
- Linux
- Difficulty
- Medium
- Steps
- 5
- Added
- 23 Mar 2023
SMTP phishing and a mailbox leak FTP creds for a webshell; a malicious internal PyPI package gives a user, and sudo pip3 gives root.
How it went
- 0nmap
An nmap scan redirects to sneakycorp.htb.
- 1SMTP phish
A dev subdomain lists staff emails; an SMTP phishing spray captures Paul's credentials.
- 2Paul's mailbox
Paul's mailbox holds a sent email leaking the developer FTP credentials.
- 3FTP webshell
FTP write access as developer drops a PHP webshell in the webroot for www-data, and the password sus to developer.
- 4PyPI package
A cracked password for the internal PyPI server allows a malicious package upload that returns a shell and the user flag.
- 5sudo pip3
That account can sudo pip3, whose install hook runs as root.