Skip to content

Instantly share code, notes, and snippets.

View ikrahul's full-sized avatar
🏠
Working from home

Rahul Ban ikrahul

🏠
Working from home
View GitHub Profile
@ikrahul
ikrahul / Claude-desktop-deepseek-proxy.py
Last active September 4, 2026 07:42
Use deepseek models with Claude Desktop Deepseek Claude Proxy
#!/usr/bin/env python3
"""
Author: ikrahul https://github.com/ikrahul
DeepSeek Anthropic Proxy
This proxy forwards Anthropic‑style requests (from Claude Desktop) directly to
DeepSeek's Anthropic‑compatible endpoint, while spoofing the model name.
Uses the full endpoint: https://api.deepseek.com/anthropic/v1/messages
"""

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@ikrahul
ikrahul / regex.md
Created March 5, 2025 21:46 — forked from OlivierKobialka/regex.md
Private and Public Key Regex
git clone https://github.com/albertobsd/keyhunt.git && cd keyhunt && make && ./keyhunt -m bsgs -f tests/130.txt -b 130 -R -k 512 -t 8 -s 10 -S -R