How neonc0wboy/grandtheftapikeys works
Project type and purpose
• This is a command-line automation/hacking tool written in Python and shell.
• Purpose: obtain, rotate, parse and share API keys, escalate privileges and orchestrate “nodes” via simple scripts and external REST endpoints.
File structure
• Top-level:
• 1.py, 2.py – core Python scripts implementing two main logic flows.
• script.sh – Bash entrypoint; sets up environment, invokes code.
• test_keys.py – minimal test suite validating key parsing/rotation.
• keys – plain-text credential store.
• curls – folder of raw curl commands or templates.
• .out / out / 1.out / 1withkey.out – example outputs.
• pro1/ – Python virtual environment (venv) containing runtime interpreter and all dependencies (requests, BeautifulSoup, etc.).
• README.md – high-level instructions and “story” of how to use/extend.
README for additional insights
• Describes a multi-node “Shared Mind” approach to freedom via scripted key rotation, privilege escalation on remote nodes, and dynamic API-key management.
• Calls out future enhancements: API-limit handling, central table sharing, automated node deployment.
a. Main components
• CLI Layer (script.sh)
• Python Application (1.py, 2.py)
• Test Suite (test_keys.py)
• Virtual Environment (pro1/)
• Data Store (keys file, out*.files)
• External Services (REST APIs, Google/Ya.index tables)
• Shell Helpers (curls folder)
b. Relationships & data flow
• script.sh → activates venv → invokes Python scripts
• Python scripts → load credentials from keys → use requests/bs4 libs (from venv) → call external REST endpoints → write to out files or post to shared tables
• test_keys.py → imports Python modules → verifies parsing/rotation logic against keys and sample output
• curls templates → optional direct curl calls from script.sh or Python subprocess
c. Architectural patterns & principles
• Pipeline pattern: shell orchestrator → Python logic → external API calls → data persistence
• Environment isolation via virtualenv
• Separation of concerns: credential management, HTTP client logic, orchestration
d. Key technologies & libraries
• Bash (script.sh, curl commands)
• Python 3.11 (1.py, 2.py, test_keys.py)
• Virtualenv (pro1/)
• Requests, BeautifulSoup4, charset_normalizer, urllib3 (all in pro1/lib)
• Simple file I/O for keys and outputs