Skip to content

Instantly share code, notes, and snippets.

View 0wwafa's full-sized avatar

Robert Sinclair 0wwafa

  • Italy / UK / Egypt
View GitHub Profile
@0wwafa
0wwafa / print_grok.md
Created February 26, 2025 02:24
PRINT / EXPORT Grok to PDF

To print a GROK chat, paste this code in javascript console:

(function() {
    var a = document.querySelector("body > div > div").children[0].children[1].children[0];
    if (a) {
        const b = window.open("", "_blank", `width=${.85 * window.screen.width},height=${.85 * window.screen.height},left=${.075 * window.screen.width},top=${.045 * window.screen.height}`)
          , e = Array.from(document.styleSheets).map(c => {
            try {
                return Array.from(c.cssRules).map(d => d.cssText).join("\n")
            } catch (d) {

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.

@0wwafa
0wwafa / spec.json
Created September 21, 2024 10:55 — forked from stewartmcgown/spec.json
Google Web SMS Private API
This file has been truncated, but you can view the full file.
{
"version_module": true,
"title": "Instant Messaging Private API",
"ownerName": "Google",
"basePath": "",
"version": "v1",
"resources": {
"group": {
"methods": {
@0wwafa
0wwafa / selftar.sh
Last active September 16, 2024 17:52 — forked from alexradzin/selftar.sh
Script that creates self extracting executable script from tar.gz file.
#!/bin/sh
if [ $# -eq 0 ]; then
echo "This script creates self extractable executable"
echo Usage: $0 TAR.GZ [COMMAND]
exit;
fi
if [ $# -gt 0 ]; then
TAR_FILE=$1
@0wwafa
0wwafa / thinking.md
Created July 30, 2024 18:51
Human vs LLM thinking (by gpt4o)

Here are the key differences between human thinking and the thinking of a large language model (LLM) like me:

1. Nature of Thought

  • Humans: Think through a combination of conscious and subconscious processes, including emotions, intuition, and personal experiences.

  • LLMs: Generate responses based on patterns and structures learned from large datasets, without true consciousness, emotions, or personal experiences.

2. Learning Mechanisms

@0wwafa
0wwafa / PRINT_CLAUDE.md
Last active April 8, 2025 18:23
Print / Export Claude Chat

Go to https://claude.ai/chat/new (or any other chat you had in the past).

Then run this code:

function printClaude() {   // (C) 2024 by ZeroWw. If you use this code, just give me some credit.

    const centralPart = document.getElementsByClassName('mb-1 mt-1')[1].parentElement.parentElement.parentElement.parentElement;

    if (centralPart) {
        // Create a new window for printing
@0wwafa
0wwafa / aya.ipynb
Last active May 28, 2024 12:18
aya.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.