Skip to content

Instantly share code, notes, and snippets.

View thewhiteh4t's full-sized avatar
💭
Creating tools for you...follow me on twitter :p

thewhiteh4t thewhiteh4t

💭
Creating tools for you...follow me on twitter :p
View GitHub Profile
@thewhiteh4t
thewhiteh4t / decrypt_keepass.py
Created April 22, 2025 03:02
Simple python script to decrypt and read creds in terminal
#!/usr/bin/env python3
# https://github.com/libkeepass/pykeepass
# pip install pykeepass
from pykeepass import PyKeePass
kp = PyKeePass('Logins.kdbx', password='<ENTER PASSWORD>')
for entry in kp.entries:
@thewhiteh4t
thewhiteh4t / ps_time.py
Last active March 6, 2024 11:26
PortSwigger | Authentication | Username enumeration via response timing
#!/usr/bin/env python3
'''
Solution for : Username enumeration via response timing
https://portswigger.net/web-security/authentication/password-based/lab-username-enumeration-via-response-timing
'''
import time
import random
import requests
@thewhiteh4t
thewhiteh4t / blind_sql_brute.py
Last active May 11, 2021 17:46
Portswigger Academy Blind SQL injection with time delays and information retrieval solution
#!/usr/bin/env python3
import requests
url = 'https://ac8b1f4b1e6ce1ca80d12b3a001600d1.web-security-academy.net/'
max_len = 21
min_len = 1
timeout = 10
charset = 'abcdefghijklmnopqrstuvwxyz1234567890!@#$'
@thewhiteh4t
thewhiteh4t / small_e_pure.py
Created March 8, 2021 16:41
Pure python solution for RSA small exponent attack
#!/usr/bin/env python3
'''
GOAL : Pure python solution for RSA small exponent attack
since cipher is a very large integer python generally throws
overflow error, to solve that I have used decimal module which is
part of the standard python library
decimal module offers user defined precision which can be increased