Skip to content

Instantly share code, notes, and snippets.

@thewhiteh4t
thewhiteh4t / gh_svg_prompt.txt
Last active May 30, 2026 08:27
Gemini prompt for creating a GitHub README animated banner SVG
Act as a master frontend designer, UI/UX developer, and elite SVG engineer. Your task is to accurately reproduce a high-tech, tactical industrial HUD/hardware faceplate asset based on a specific layout engine configuration.
You must strictly adhere to the exact structure, font properties, and path coordinates provided below to ensure a pixel-perfect recreation. Do not interpret, simplify, or reinvent the layout.
---
### 1. MASTER STRUCTURAL SPECIFICATIONS
* **Dimensions & Canvas:** Responsive SVG layout using viewBox="0 0 680 300".
* **Background Matrix:** A solid linear background gradient (#05070a to #020305) overlaid with a precision <pattern> grid of micro-dots (width/height="14", circle cx/cy="3", r="0.5", fill="#00ff66", opacity="0.05").
* **Chassis Hull (Exact Path):** The outer frame must use this exact polygon cut configuration:
@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