Land #11053, Add Openwall detection to Linux system lib

4.x
Brent Cook 2018-12-03 12:46:36 -06:00 committed by Metasploit
parent 67cddffc51
commit dc7954c829
No known key found for this signature in database
GPG Key ID: CDFB5FA52007B954
1 changed files with 6 additions and 0 deletions

View File

@ -87,6 +87,12 @@ module System
system_data[:distro] = "gentoo"
system_data[:version] = version
# Openwall
elsif etc_files.include?("owl-release")
version = read_file("/etc/owl-release").gsub(/\n|\\n|\\l/,'')
system_data[:distro] = 'openwall'
system_data[:version] = version
# Generic
elsif etc_files.include?("issue")
version = read_file("/etc/issue").gsub(/\n|\\n|\\l/,'')