Skip to content

Commit af12460

Browse files
committed
wrap tomcat dpkg command and rex version
1 parent ae5f0e8 commit af12460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/local/tomcat_ubuntu_log_init_priv_esc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def catalina
8484

8585
def check
8686
package = cmd_exec('dpkg -l tomcat[6-8] | grep \'^i\'')
87-
if package.nil? || package.empty?
87+
if package.nil? || package.empty? || package.include?('not found') # catch dpkg command not found
8888
return CheckCode::Safe('Unable to execute command to determine installed pacakges')
8989
end
9090

0 commit comments

Comments
 (0)