class Rex::Exploitation::OpcodeDb::OsVersion
This class contains information about a platform (operating system) version.
Attributes
arch[R]
The architecture that the operating system version runs on, such as IA32.
desc[R]
The operating system version description, such as Windows XP 5.2.0.0 (IA32).
maj_patch_level[R]
The major patch level of the operating system version, such as a service pack.
maj_ver[R]
The major version of the operating system version.
min_patch_level[R]
The minor patch level of the operating system version.
min_ver[R]
The minor version of the operating system version.
modules[R]
The number of modules that exist in this operating system version.
Public Class Methods
hash_key(hash)
click to toggle source
# File lib/rex/exploitation/opcodedb.rb, line 301 def hash_key(hash) hash['id'] + (hash['modules'] || '') end
new(hash)
click to toggle source
Calls superclass method
Rex::Exploitation::OpcodeDb::DbEntry::new
# File lib/rex/exploitation/opcodedb.rb, line 306 def initialize(hash) super @modules = (hash['modules']) ? hash['modules'].to_i : 0 @desc = hash['desc'] @arch = hash['arch'] @maj_ver = hash['maj_ver'].to_i @min_ver = hash['min_ver'].to_i @maj_patch_level = hash['maj_patch_level'].to_i @min_patch_level = hash['min_patch_level'].to_i end