Skip to content

Instantly share code, notes, and snippets.

@criztovyl
Created February 7, 2017 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save criztovyl/8e7baa0aa3efdeef6992198246474600 to your computer and use it in GitHub Desktop.
Save criztovyl/8e7baa0aa3efdeef6992198246474600 to your computer and use it in GitHub Desktop.
firefox_decrypt gdb log
$ gdb --args python3 ~/.local/opt/firefox_decrypt/firefox_decrypt.py -vvv
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/python3 /home/christoph/.local/opt/firefox_decrypt/firefox_decrypt.py -vvv
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
2017-02-08 00:41:13,967 - DEBUG - Parsed commandline arguments: Namespace(choice=None, export_pass=False, list=False, no_interactive=False, profile='~/.mozilla/firefox', verbose=3)
2017-02-08 00:41:13,968 - DEBUG - Skipping password store test, not exporting
2017-02-08 00:41:13,968 - DEBUG - Loading NSS library from libnss3.so
2017-02-08 00:41:14,210 - DEBUG - Reading profiles from /home/christoph/.mozilla/firefox/profiles.ini
2017-02-08 00:41:14,214 - DEBUG - Read profiles ['General', 'Profile0', 'Profile1', 'Profile2', 'Profile3', 'Profile4']
Select the Firefox profile you wish to decrypt
1 -> 91u1xh15.[Profile 1]
2 -> vu3dnx5b.[Profile 2]
3 -> 1d8vcooi.[Profile 3]
4 -> emof2pes.[Profile 4]
5 -> 8a52xmxd.Fresh
Choice: 5
2017-02-08 00:41:25,358 - DEBUG - Profile selection matched 8a52xmxd.Fresh
Master Password for profile /home/christoph/.mozilla/firefox/8a52xmxd.Fresh:
2017-02-08 00:41:28,028 - DEBUG - Initializing NSS with profile path '/home/christoph/.mozilla/firefox/8a52xmxd.Fresh'
2017-02-08 00:41:28,114 - DEBUG - Initializing NSS returned 0
2017-02-08 00:41:28,115 - DEBUG - Retrieving internal key slot
2017-02-08 00:41:28,116 - DEBUG - Internal key slot 1440914288
2017-02-08 00:41:28,116 - DEBUG - Authenticating with password 'password'
Program received signal SIGSEGV, Segmentation fault.
PK11_CheckUserPassword (slot=0x55e29b70, pw=0x7ffff60897a0 "password") at pk11auth.c:137
137 pk11auth.c: Datei oder Verzeichnis nicht gefunden.
(gdb) explore slot
'slot' is a pointer to a value of type 'PK11SlotInfo'
Continue exploring it as a pointer to a single value [y/n]: y
'slot' a pointer pointing to an invalid memory location.
(gdb)
@criztovyl
Copy link
Author

hex 0x55e29b70 is dec 1440914288.
Also: pk11auth.c:137

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment