Skip to content

Commit d15ea18

Browse files
authored
on request of h00die
Convert this to string interpolation (using double quotes like line 121)
1 parent 339edac commit d15ea18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/smtp/harakiri.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def exploit
118118
srv_host = datastore['SRVHOST']
119119
end
120120

121-
service_url = 'http://' + srv_host + ':' + datastore['SRVPORT'].to_s + resource_uri
121+
service_url = "http://#{srv_host}:#{datastore['SRVPORT'].to_s}#{resource_uri}"
122122
service_url_payload = srv_host + resource_uri
123123
print_status("#{rhost}:#{rport} - Starting up our web service on #{service_url} ...")
124124
start_service({'Uri' => {

0 commit comments

Comments
 (0)