Skip to content

Commit 96f9bf6

Browse files
Update modules/exploits/unix/webapp/byob_unauth_rce.rb
Co-authored-by: Spencer McIntyre <[email protected]>
1 parent 5408d0b commit 96f9bf6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

modules/exploits/unix/webapp/byob_unauth_rce.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,15 @@ def check
113113

114114
if res&.code == 500
115115
CheckCode::Vulnerable
116+
case res&.code
117+
when 500
118+
CheckCode::Vulnerable
119+
when 200
120+
CheckCode::Safe
121+
when nil
122+
CheckCode::Unknown("The target did not respond.")
116123
else
117-
(res&.code == 200 ? CheckCode::Safe : CheckCode::Unknown)
124+
CheckCode::Unknown("The target responded with HTTP status #{res.code}")
118125
end
119126
end
120127

0 commit comments

Comments
 (0)