Skip to content

Commit a7156cf

Browse files
committed
Fix zabbix_script_exec datastore
1 parent 9c1487c commit a7156cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/multi/http/zabbix_script_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def exploit
7979
req = c.request_cgi({
8080
'method' => 'POST',
8181
'uri' => '/zabbix/',
82-
'data' => 'request=&name=' << datastore['USERNAME'] << '&password=' << datastore['PASSWORD'] << '&enter=Sign+in'
82+
'data' => "request=&name=#{datastore['USERNAME']}&password=#{datastore['PASSWORD']}&enter=Sign+in"
8383
})
8484

8585
login = c.send_recv(req.to_s.sub("Host:", "Host: " << datastore["RHOST"]))

0 commit comments

Comments
 (0)