You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I pass a CMD via "session.meterpreter_run_single" to a specific session in python, for the first one, the result is OK. but when I change the CMD and pass to metasploit via RPC, I will get result of previous CMD; So I should run again the above API command to get correct result. :(
Please help me where is the problem and how i can fix this issue??
For reproduce this issue: plz for first time run the sysinfo CMD; for second time run this CMD. for third time, change the name of first CMD to getwd CMD and run the script;;; you will get result of previous CMD instead of new CMD(here: getwd) :(
Hi Metasploit development team,
OS:
Kali Linux
Metasploit Framework Version:
4.13.14-dev (installed via apt-get ...)
ruby-msgpack version:
1.0.0-1
python-msgpack version:
0.4.8-1
I'm using below Lib for interacting with Metasploit:
https://github.com/SpiderLabs/msfrpc/tree/master/python-msfrpc
When I pass a CMD via "session.meterpreter_run_single" to a specific session in python, for the first one, the result is OK. but when I change the CMD and pass to metasploit via RPC, I will get result of previous CMD; So I should run again the above API command to get correct result. :(
Please help me where is the problem and how i can fix this issue??
For reproduce this issue: plz for first time run the sysinfo CMD; for second time run this CMD. for third time, change the name of first CMD to getwd CMD and run the script;;; you will get result of previous CMD instead of new CMD(here: getwd) :(
My python-2.x script:
http://www.4shared.com/file/iOH6LpT9ba/alireza3.html
first time:
![first](https://cloud.githubusercontent.com/assets/4577076/22370179/1f286c4e-e45e-11e6-91cc-fd239c0e5a55.png)
second time:
![first](https://cloud.githubusercontent.com/assets/4577076/22370179/1f286c4e-e45e-11e6-91cc-fd239c0e5a55.png)
third time (I passed the getwd CMD, but i received the result of previous CMD) :
![third](https://cloud.githubusercontent.com/assets/4577076/22370235/6809c8cc-e45e-11e6-9e20-29bd1ab1fbbf.png)
forth time:
![forth](https://cloud.githubusercontent.com/assets/4577076/22370258/8fb04ef0-e45e-11e6-86ca-fa1ece6c56bd.png)
Thanks in advance
The text was updated successfully, but these errors were encountered: