Class/Module Index [+]

Quicksearch

Rex::Platforms::Windows

Public Instance Methods

registry_hive_lookup(hive) click to toggle source
# File lib/rex/platforms/windows.rb, line 28
def registry_hive_lookup(hive)
        case hive
        when 'HKCR'
                HKEY_LOCAL_MACHINE
        when 'HKCU'
                HKEY_CURRENT_USER
        when 'HKLM'
                HKEY_LOCAL_MACHINE
        when 'HKU'
                HKEY_USERS
        when 'HKPD'
                HKEY_PERFORMANCE_DATA
        when 'HKCC'
                HKEY_CURRENT_CONFIG
        when 'HKDD'
                HKEY_DYN_DATA
        else
                HKEY_LOCAL_MACHINE
        end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.