class Rex::Post::Meterpreter::Extensions::Priv::SamUser
This class wraps a SAM hash entry.
Attributes
hash_string[R]
The raw hash string that was passed to the class constructor.
lanman[R]
The LM hash.
ntlm[R]
The NTLM hash.
user_id[R]
The user’s unique identifier from the SAM database.
user_name[R]
The username from the SAM database entry.
Public Class Methods
new(hash_str)
click to toggle source
Initializes the class from a hash string like this:
- Administrator:500:aad3b435b51404eeaadfb435b51404ee:31d6cfe0d16de931b73c59d7e0c089c0:
# File lib/rex/post/meterpreter/extensions/priv/passwd.rb, line 20 def initialize(hash_str) self.user_name, self.user_id, self.lanman, self.ntlm = hash_str.split(/:/) self.hash_string = hash_str end
Public Instance Methods
to_s()
click to toggle source
Returns the hash string that was supplied to the constructor.
# File lib/rex/post/meterpreter/extensions/priv/passwd.rb, line 29 def to_s hash_string end