Skip to content

Commit d4dbea5

Browse files
committed
Check 200
1 parent cd734ac commit d4dbea5

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

modules/exploits/unix/webapp/basilic_diff_exec.rb

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,11 @@ def check
7373
}
7474
})
7575

76-
if res and res.body =~ /#{sig}/
77-
if res.code == 302
78-
# Some undesirable network setup not very friendly for vuln checks.
79-
# See RM8114.
80-
return Exploit::CheckCode::Unknown
81-
else
82-
return Exploit::CheckCode::Vulnerable
83-
end
84-
else
85-
return Exploit::CheckCode::Safe
76+
if res and res.code == 200 and res.body =~ /#{sig}/
77+
return Exploit::CheckCode::Vulnerable
8678
end
79+
80+
return Exploit::CheckCode::Safe
8781
end
8882

8983

0 commit comments

Comments
 (0)