Skip to content

Commit

Permalink
Minor fix for xdebug_unauth_exec
Browse files Browse the repository at this point in the history
Avoid triggering error where res.headers may not exist.
  • Loading branch information
aushack committed Jun 26, 2019
1 parent 59d75a1 commit 8d6f36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/exploits/unix/http/xdebug_unauth_exec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def check
'XDEBUG_SESSION_START' => rand_text_alphanumeric(10)
}
})
vprint_status "Request sent\n#{res.headers}"
vprint_status "Request sent\n#{res}"
if res && res.headers.to_s =~ /XDEBUG/i
vprint_good("Looks like remote server has xdebug enabled\n")
return CheckCode::Detected
Expand Down

0 comments on commit 8d6f36e

Please sign in to comment.