r/learnhacking • • 16h ago

Built a Python CLI wrapper (mm) to speed up authorized pentesting on Metasploitable 2

https://github.com/omar24265/minimsf

I was spending too much time typing out long Metasploit commands and switching between Nmap, Whatweb, and msfconsole during lab exercises. So, I built a small Python wrapper called mm to streamline the workflow.

It does a few things:

  • mm s: Runs nmap -sS -sV -O in one command.
  • mm w: Chains Whatweb, Nikto, and Gobuster.
  • mm v**,** mm sm**, etc.**: Presets for common Metasploitable 2 vulnerabilities (vsftpd, Samba, etc.).
  • mm auto: Scans the target and automatically tries matching exploits.

It's built for authorized lab environments (Metasploitable/HTB) and requires a -y flag to confirm legal authorization before running any command.

The code is open-source (MIT license). I'd love to get feedback on the architecture or any features I should add.

Link to GitHub repo: [https://github.com/omar24265/minimsf]

Disclaimer: This tool is for educational and authorized testing purposes only.

2 Upvotes

0 comments sorted by