Executing script on Meterpreter in Msfconsole

The goal of my task is to run a Ruby script that executes the key-logger exe file and starts running on the remote machine. I manage to connect successfully by the apache2 server (i.e. my other VM enters the link in the browser and the counter starts working) with PAYLOAD php/meterpreter/reverse_tcp

. So when the meter starts working, Im trying to run the script:run ruby.rb

https://i.stack.imgur.com/pVEDI.jpg


ruby.rb (with content)

exec("/root/Desktop/time/time/bin/Debug/time.exe")

      


However, an error occurs and I don't understand why ? When I try to execute the time.exe file in WINDOWS it works fine . Keylogger is written in C #, in case anyone is interested to see the code: https://ufile.io/y9n3z

Can anyone give me some advice or workaround?

+3
ruby unix exploit payload


source to share


No one has answered this question yet

Check out similar questions:

3513
Check if a directory exists in a shell script
2858
How can I print JSON in a shell script?
1709
How can I profile C ++ code running on Linux?
493
How do I run a shell script on a Unix console or Mac?
4
Ruby: Run a script from a bash script?
0
The best way to run the whole script is through ruby ​​-e
0
.desktop - launch RBENV shell - launch application with ruby ​​version
0
Running Ruby Script from Rails controller kills rails server
0
Ruby script interrupts Cyrillic characters in ConEmu
-1
Execution C Executable with arguments CC Executable from shell script



All Articles
Loading...
X
Show
Funny
Dev
Pics