Skip to content

Instantly share code, notes, and snippets.

View coolzoom's full-sized avatar
🥂
cheers my friends

coolzoom

🥂
cheers my friends
View GitHub Profile

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.

/**
* An Anti-Reverse Engineering Guide, Joshua Tully
* https://www.codeproject.com/Articles/30815/An-Anti-Reverse-Engineering-Guide
*/
bool FindDebugger1::HasDebugger()
{
__try { __asm INT 0x2D }
__except (EXCEPTION_EXECUTE_HANDLER){ return false; }
/**
* An Anti-Reverse Engineering Guide, Joshua Tully
* https://www.codeproject.com/Articles/30815/An-Anti-Reverse-Engineering-Guide
*/
bool FindDebugger1::HasDebugger()
{
__try { __asm INT 0x2D }
__except (EXCEPTION_EXECUTE_HANDLER){ return false; }
@IgorYunusov
IgorYunusov / LuaPOC.cs
Created June 6, 2018 11:46 — forked from Naravia/LuaPOC.cs
FrameScript__Execute example by Saridormi @ Ownedcore
using System;
using System.Diagnostics;
using System.Linq;
using System.Text;
using Binarysharp.MemoryManagement;
using Binarysharp.MemoryManagement.Memory;
namespace LuaExecPOC
{
class Program
@oznu
oznu / README.md
Last active July 18, 2024 05:32
QEMU + Ubuntu ARM aarch64

QEMU + Ubuntu ARM aarch64

These are the steps I used to get Ubuntu ARM aarch64 running with QEMU on OSX.

Get Ubuntu Image and QEMU EFI:

wget https://cloud-images.ubuntu.com/releases/16.04/release/ubuntu-16.04-server-cloudimg-arm64-uefi1.img
wget https://releases.linaro.org/components/kernel/uefi-linaro/latest/release/qemu64/QEMU_EFI.fd
@umayr
umayr / recover-deleted-branch.sh
Created April 1, 2016 11:41
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}