Skip to content

Instantly share code, notes, and snippets.

@syedkhalid
syedkhalid / pydbg_firefox.py
Created September 2, 2016 12:52 — forked from RobinDavid/pydbg_firefox.py
Pydbg: sample to hook a firefox function to retrieve credentials (Gray Hat Python book)
'''
Example taken from Gray Hat Python (book)
This script present a way to hook a DLL library in Firefox. For this example the script hook nspr4.dll which encrypt datas for SSL connection.
So we will be able to get the text before it is encrypted. Moreover we catch a pattern "password" to get all login/password before they are ciphered.
'''
from pydbg import *
from pydbg.defines import *
import utils