This one is super useful! It is a one liner to run a metasploit module.
msfconsole -n -q -x “use gather/search_email_collector;set domain target.com;run;exit”
Obviously replace gather/search_email_collector with whatever module you want to run, then make sure to set whatever options are needed for the module. In the example above, just replace target.com with whatever domain you’re targeting.
Watch all the entries in this series:
- Reinstall Grub Bootloader on a Dual boot laptop Kali Tips #1
- Automatically Log Terminal Kali Tips #2
- Add Message to Terminal Kali Tips #3