Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacyΒ© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
GoBfuscator β€” Obfuscates Go source code via AES-256 string encryption with runtime decryption, identifier renaming, and comment removal to hinder reverse engineering while preserving runtime behavior. | Kitploit
Tools/GitHubGitHub/luftwaffe66/gobfuscator
Defensive ToolsStatic AnalysisEncryption/Decryption ToolsCode AnalysisReverse EngineeringScripting & AutomationCryptographyDevSecOps
GitHubluftwaffe66/gobfuscator

GoBfuscator

Obfuscates Go source code via AES-256 string encryption with runtime decryption, identifier renaming, and comment removal to hinder reverse engineering while preserving runtime behavior.

1321311 year agoNot yet reviewed
Share
View Repository

πŸ›‘οΈ GoBfuscator - Advanced Go Code Obfuscation Tool

Go Version License GitHub Stars GitHub Forks

GoBfuscator - obfuscate go scripts

πŸ” Overview

GoBfuscator is a professional-grade obfuscation tool specifically designed for Go (Golang) source code. It provides multiple layers of protection to make reverse engineering difficult while maintaining 100% runtime functionality.

Key Features:

  • ✨ AES-256 encrypted strings with runtime decryption
  • πŸ”€ Comprehensive identifier renaming (functions, variables, types)
  • 🧹 Code cleanup and comment removal
  • πŸ›‘οΈ Protection against common reverse engineering techniques
  • ⚑ Zero runtime performance overhead after initial decryption

πŸš€ Quick Start

Installation

git clone https://github.com/luftwaffe66/GoBfuscator.git
cd GoBfuscator
pip install -r requirements.txt

Basic Usage

python3 obfuscator.py yourfile.go

This will generate yourfile_obfuscated.go with all protections applied.

πŸ› οΈ Technical Implementation

Multi-Layer Obfuscation

  1. Identifier Renaming:

    • All non-reserved identifiers are replaced with random 6-character names
    • Preserves Go reserved words and standard library imports
    • Handles method receivers and package-level declarations
  2. String Encryption:

    • Uses AES-256-CBC with random IV for each string
    • Base64 encoded for embedding in source
    • Runtime decryption with automatic PKCS7 padding removal
  3. Code Cleanup:

    • Removal of all comments
    • Compression of whitespace
    • Normalization of formatting

Security Features

  • πŸ”‘ Unique encryption key generated per run
  • πŸ›‘οΈ Protection against simple string extraction tools
  • πŸ”„ Randomized naming prevents pattern recognition
  • ⚠️ Preserves important escape sequences (\n, \t, etc.)

πŸ“Š Benchmark Results

OperationOriginalObfuscatedOverhead
Startup Time12ms15ms+25%
Memory Usage8.2MB8.5MB+3.6%
Runtime Performance1.0x1.0x0%

Tests performed on Go 1.19, Intel i7-1185G7, 16GB RAM

🧩 Integration

CI/CD Pipeline

steps:
  - name: Obfuscate Go Code
    run: |
      git clone https://github.com/luftwaffe66/GoBfuscator.git
      cd GoBfuscator
      python3 obfuscator.py $GITHUB_WORKSPACE/main.go
      mv main_obfuscated.go $GITHUB_WORKSPACE/main.go

Advanced Options

# Preserve specific identifiers
python3 obfuscator.py --preserve "Config,DBConn" main.go

# Custom encryption key (base64)
python3 obfuscator.py --key "dGhpcyBpcyBhIHNlY3JldCBrZXkh" main.go

πŸ“š Documentation

How It Works

  1. Parsing Phase:

    • Extracts all renameable identifiers
    • Identifies strings for encryption
    • Preserves code structure
  2. Transformation Phase:

    • Generates random names for identifiers
    • Encrypts strings with AES-256
    • Builds decryption infrastructure
  3. Output Phase:

    • Generates clean, functional Go code
    • Adds required decryption functions
    • Maintains original functionality

Limitations

  • ❌ Doesn't handle reflection-based code analysis
  • ❌ Can't obfuscate exported package names
  • ❌ May break some debugger functionality

🀝 Contributing

We welcome contributions! Please follow these steps:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“œ License

Distributed under the MIT License. See LICENSE for more information.

πŸ“¬ Contact

Project Maintainer - @luftwaffe66

🌟 Acknowledgments

  • Inspired by various open-source obfuscation tools
  • Uses PyCryptodome for AES implementation
  • Thanks to all contributors and users

πŸ” Protect Your Go Code Today! Star this repo to support the project.

Download Tool

Most Popular

View all β†’

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    786
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    506
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    429
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    345
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurityβ€”where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    262
  • 6

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    256

Explore all tools

Browse our collection of tools

View all tools β†’