yes 'multi_console_command.rb'multi_console_command.rb
(by darkoperator)
uses uses the meterpreter APi cmd_exec()cmd_exec()
to execute a list of commands ..
theThe metasploit apiAPI that allowallows us to use the shell interpreter is:
session.shell_command()
session.shell_command()
1º optionOption 1:
build your own 'multi_console_command.rb'multi_console_command.rb
module with session.shell_command() apisession.shell_command()
API
2º optionOption 2: build one resource file with those post-exploitation commands
here you have my metasploit api cheat sheet list: https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit-API/my-API-Cheat-sheet.md
here you have my metasploit resource files cheat sheet:
My metasploit API cheat sheet list: https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit-API/my-API-Cheat-sheet.md
https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit_resource_files.mdMy metasploit resource files cheat sheet: https://github.com/r00t-3xp10it/hacking-material-books/blob/master/metasploit-RC%5BERB%5D/metasploit_resource_files.md