Sha256: 09f888ab2d029707a26b95b279b5cda6ad6cef64d154d8213372b7c173d0f720
Contents?: true
Size: 1.01 KB
Versions: 2
Compression:
Stored size: 1.01 KB
Contents
#!/usr/bin/env ruby # -*- coding: binary -*- module Rex module Post module Meterpreter module Extensions module Priv ### # # This class wraps a SAM hash entry. # ### class SamUser # # Initializes the class from a hash string like this: # # Administrator:500:aad3b435b51404eeaadfb435b51404ee:31d6cfe0d16de931b73c59d7e0c089c0::: # def initialize(hash_str) self.user_name, self.user_id, self.lanman, self.ntlm = hash_str.split(/:/) self.hash_string = hash_str end # # Returns the hash string that was supplied to the constructor. # def to_s hash_string end # # The raw hash string that was passed to the class constructor. # attr_reader :hash_string # # The username from the SAM database entry. # attr_reader :user_name # # The user's unique identifier from the SAM database. # attr_reader :user_id # # The LM hash. # attr_reader :lanman # # The NTLM hash. # attr_reader :ntlm protected attr_writer :hash_string, :user_name, :user_id, :lanman, :ntlm # :nodoc: end end; end; end; end; end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
librex-0.0.68 | lib/rex/post/meterpreter/extensions/priv/passwd.rb |
librex-0.0.66 | lib/rex/post/meterpreter/extensions/priv/passwd.rb |