I am developing my first Metasploit module on Metasploit v5.0.1. I would like to launch my own module in one command with args and not using meterpreter. At this time, I launch my module with these commands:
./msf
use evasion/windows/MyModule
set payload windows/meterpreter/reverse_https
set lhost 127.0.0.1
run
I would like to run it like
./msf --module evasion/windows/MyModule --payload windows/meterpreter/reverse_https --lhost 127.0.0.1
It will be more practical to test it like that during my development. Is it possible?
msfconsole -q -x ‘use evasion/windows/MyModule;set payload windows/meterpreter/reverse_https;set lhost 127.0.0.1;run’
service postgresql start
first. Then run the command. That should get the database working.