Land #11053, Add Openwall detection to Linux system lib

GSoC/Meterpreter_Web_Console
Brent Cook 2018-12-03 12:46:36 -06:00
commit 6574ceaab8
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96
1 changed files with 6 additions and 0 deletions

View File

@ -97,6 +97,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/,'')