We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5f0e8 commit af12460Copy full SHA for af12460
modules/exploits/linux/local/tomcat_ubuntu_log_init_priv_esc.rb
@@ -84,7 +84,7 @@ def catalina
84
85
def check
86
package = cmd_exec('dpkg -l tomcat[6-8] | grep \'^i\'')
87
- if package.nil? || package.empty?
+ if package.nil? || package.empty? || package.include?('not found') # catch dpkg command not found
88
return CheckCode::Safe('Unable to execute command to determine installed pacakges')
89
end
90
0 commit comments