Sha256: ad15f99daa01d432cf634c97fa8d8d4d79eac68deba80db80c74a536013e2bd1

Contents?: true

Size: 752 Bytes

Versions: 15

Compression:

Stored size: 752 Bytes

Contents

# -*- coding: binary -*-
require 'rex/post/meterpreter'

module Rex
module Post
module Meterpreter
module Ui

###
#
# The password database portion of the privilege escalation extension.
#
###
class Console::CommandDispatcher::Priv::Passwd

  Klass = Console::CommandDispatcher::Priv::Passwd

  include Console::CommandDispatcher

  #
  # List of supported commands.
  #
  def commands
    {
      "hashdump" => "Dumps the contents of the SAM database"
    }
  end

  #
  # Name for this dispatcher.
  #
  def name
    "Priv: Password database"
  end

  #
  # Displays the contents of the SAM database
  #
  def cmd_hashdump(*args)
    client.priv.sam_hashes.each { |user|
      print_line("#{user}")
    }

    return true
  end

end

end
end
end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.12 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.11 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.10 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.9 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.8 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.7 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.5 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.4 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
dstruct-0.0.1 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.3 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.999 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
rex-2.0.2 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.71 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb
librex-0.0.70 lib/rex/post/meterpreter/ui/console/command_dispatcher/priv/passwd.rb