Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
'''
iSniff-1266.py
SSL man-in-the-middle tool / proof-of-concept exploit for CVE-2014-1266
ServerKeyExchange signature validation flaw patched in iOS 7.0.6 and Mac OS X 10.9.2
Successfully tested against iOS 7.0.4 devices
#!/usr/bin/env python
"""
Decrypting proxy for Snapchat
Based on mitmproxy + pysnap
https://github.com/mitmproxy/mitmproxy
https://github.com/martinp/pysnap
"""
@hubert3
hubert3 / samsung_hash_crack.py
Last active November 22, 2022 09:12
Python implementation of passcode hashing algorithm used on the Samsung Galaxy S4 GT-I9505 4.2.2
#!/usr/bin/python
'''
Python implementation of passcode hashing algorithm used on the Samsung Galaxy S4 GT-I9505 4.2.2
Correct PIN for hash and salt below is 1234.
Get 40-character hash value in ascii hex format from file /data/system/password.key on the phone
Get salt in signed numeric format by doing sqlite3 query SELECT value FROM locksettings WHERE name = 'lockscreen.password_salt' on /data/system/locksettings.db
@hubert3
hubert3 / init.lua
Last active May 22, 2023 03:50
Hammerspoon script to defeat idle timeout on macOS Citrix Viewer
-- Hammerspoon script to defeat Citrix idle timeout, tested with Citrix Viewer 23.01.0.16 (2301) on
-- macOS 13.3 connected to a Win 10 Enterprise 21H2 Citrix Desktop
--
-- This script will send two right ⌘ (Command) key presses every 30 seconds, launching and cancelling
-- the Windows start menu to keep the session alive while Citrix Viewer is NOT the frontmost application.
-- No keypresses will be sent while Citrix Viewer is the frontmost application
--
-- $ brew install --cask hammerspoon
-- Click 'Open Config' in the hammer menu, paste & save this script, 'Reload Config'
#!/usr/bin/python
import requests, re
btc_rate = 139.0
dollar_total = 0.0
btc_total = 0.0
page = requests.get('http://istouchidhackedyet.com/').text
dollar_pledges = re.findall(r'-.+\$(\d+)', page)