tools-metasploit
Metasploit without the hang
When it applies
You have a confirmed in-scope weakness (tradecraft-scope-roe first) that maps to a Metasploit
module, or you need a exploit/multi/handler listener for a reverse shell (payloads-reverse-shells).
Metasploit is the right tool when a reliable public module exists; for novel bugs write a PoC
instead (exploit-poc-development). Driving MSF from scripts or an agent is where most people get
burned — this skill is the correct invocation discipline.
Why it works
msfconsole is an interactive REPL: launched bare it waits for stdin forever, and each new console
is a separate process that cannot see another console's sessions. Non-interactive use therefore
means either (a) cramming the whole job into one -x string that ends in exit, or (b) keeping
state in a long-lived msfrpcd daemon that short-lived clients connect to.