Skip to content

Commit 873994a

Browse files
committed
Skip the explicit return
Thanks to kernelsmith for the feedback
1 parent 3566b97 commit 873994a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/exploits/linux/local/chkrootkit.rb

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,11 @@ def initialize(info={})
5353

5454
def check
5555
res = cmd_exec('/usr/sbin/chkrootkit -V')
56-
return Exploit::CheckCode::Appears if res && res =~ /chkrootkit version 0\.[^5]/
57-
return Exploit::CheckCode::Safe
56+
if res && res =~ /chkrootkit version 0\.[^5]/
57+
Exploit::CheckCode::Appears
58+
else
59+
Exploit::CheckCode::Safe
60+
end
5861
end
5962

6063
def exploit

0 commit comments

Comments
 (0)