m0nkeyDCode Posted August 24, 2015 Share Posted August 24, 2015 Hello! I've just installed the new release of Kali ( 2.0 version ) and after setting up the metasploit framework I've got some issues. When I try to execute this command: session.sys.process.execute( "cmd /c C:\\file.exe", nil, { 'Hidden' => true, 'Channelized' => true } ) I've got an error: Post failed: Rex::Post::Meterpreter::RequestError stdapi_sys_process_execute: Operation failed: Windows error: The system cannot find the file specified. After that I've tried to execute the same command directly on the machine and no it works perfectly. Any solutions? Thank you in advance! Quote Link to comment Share on other sites More sharing options...
cooper Posted August 24, 2015 Share Posted August 24, 2015 Did you try it with a single backslash? So "c:\file.exe"? Quote Link to comment Share on other sites More sharing options...
m0nkeyDCode Posted August 24, 2015 Author Share Posted August 24, 2015 Yes I've got the same error. Quote Link to comment Share on other sites More sharing options...
cooper Posted August 24, 2015 Share Posted August 24, 2015 Instead of running something via cmd, try to echo a string into a file. Does that work? Quote Link to comment Share on other sites More sharing options...
m0nkeyDCode Posted August 24, 2015 Author Share Posted August 24, 2015 No it doesn't work... Just for info after install kali 2.0 I've started postgresql service, do msfdb init and then run msfconsole. Is this wrong? If yes, what I've to do to install it properly? Another things I've noticed that I've got some issues using for example railgun. ( example: session.railgun.user32.LockWorkStation() or any other command ) P.S. After this post I can't post anything for today because of limit post per day Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.