Skip to content

Instantly share code, notes, and snippets.

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.

@s3rgeym
s3rgeym / Tor_Service_Bridges.md
Last active April 30, 2025 06:25
Как получить и использовать мосты для сервиса tor в Linux

Тут речь идет не про Tor Browser, а про пакет tor, предоставляющий одноименный сервис, который в свою очередь позволяет подключаться к сети Tor, используя в качестве прокси SOCKS localhost:9050.

В России с 2022 начали блокировать Tor. Где-то с лета невозможно подключиться к Tor без использования мостов (bridges).

Устанавливаем зависимости:

Arch Linux/Manjaro:

$ yay -S obfs4proxy
@ishad0w
ishad0w / microsoft_edge_uninstaller_21h1_ltsc.bat
Last active May 17, 2025 15:56
Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition]
@echo off
@title Microsoft Edge Uninstaller [Windows 10 LTSC 2021/21H1 Edition]
ver
echo+
goto check_admin_permissions
:check_admin_permissions
echo Script must Run as Administrator! Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (