I am trying to make a metasploit script to execute a shell command. The commands that I want to be execute in metasploit is the following
shell
cd /data/data/com.metasploit.stage/files
sh and.sh
exit
I'm not familiar with ruby. Can anybody tell me how I can make it to work
I try to use exec('shell')
for the first command but it doesn't work.
Aniruddh Parihar
3,1986 gold badges27 silver badges41 bronze badges
-
This might help you stackoverflow.com/q/166347/2681997. You can run any shell command in ruby using Backticks (or back-ticks).Ajay Barot– Ajay Barot2018年09月11日 12:19:43 +00:00Commented Sep 11, 2018 at 12:19
-
I will try. Thank youjnass– jnass2018年09月14日 16:03:48 +00:00Commented Sep 14, 2018 at 16:03
default