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
Tools/GitHubGitHub/kdbugk/game-of-kingshot-re
Android SecurityPacket Sniffing & AnalysisDynamic Analysis (Sandboxing)Network ForensicsReverse EngineeringMobile SecurityBinary AnalysisLearning & Education
Share
GitHub
kdbugk/game-of-kingshot-re

game-of-kingshot-re

Educational reverse engineering study of a Unity/IL2CPP Android game. Documents gateway protocol decoding, native anti-tampering SDK analysis, SSL pinning bypass, and Frida-based dynamic analysis techniques.

View Repository
315931 day agoReviewed by Kitploit

game-of-kingshot-re — Reverse Engineering: Kingshot (Android)

Educational project. The goal is to understand how a modern Unity/IL2CPP Android game communicates, how its native protection SDKs work, and how to apply static + dynamic analysis techniques to a real-world APK.


What This Is

This repository documents an ongoing reverse engineering study of com.run.tower.defense (Kingshot, by Century Games), a Unity game with IL2CPP runtime, multiple native protection SDKs, and a custom binary gateway protocol.

No cheating, no exploitation, no modification of live game data. The focus is purely on understanding internal architecture.


What We Found

AreaStatusKey Finding
Gateway protocol (port 30101)DecodedCustom binary, uint16_BE framing, varint body, no TLS
OpcodesMapped0x55 handshake, 0x5d game actions, 0x1d state sync, 0x15 heartbeat, 0x59 client ACK
Coordinate encodingDecodedASCII85-like 4-char → uint32 (x=kingdom, y=position)
Analytics APICapturedlogagent-wf.centurygame.com — JSON events, not pinned
SSL pinningPartially bypassedJava layer bypassed (OkHttp + TrustManager); native BestHTTP layer identified
Anti-tampering (libnesec)IdentifiedKills process ~58s after Frida attach; kill function and detection level mapped
libxt_a64.soIdentifiedPLT hooking SDK loaded in isolated linker namespace — invisible to Frida/maps
libNetHTProtect.soAnalyzedNetwork integrity SDK; MD5 fingerprinting; protobuf-style serialization
IL2CPP dumpPartialAssembly list recovered; BestHTTP certval RVA mapped

Repository Structure

game-of-kingshot-re/
├── README.md                   ← this file
├── FLOW.md                     ← complete discovered data flow
├── SETUP.md                    ← environment setup guide
├── TOOLS_AND_COMMANDS.md       ← all commands and tools reference
├── CLAUDE.md                   ← context for AI-assisted sessions
├── captures/
│   ├── battle.pcap             ← gateway traffic sample (session 1)
│   └── battle2.pcap            ← gateway traffic sample (session 2, richer)
└── scripts/
    ├── frida/
    │   ├── certval_hook.js     ← observe BestHTTP certificate validation
    │   ├── button_hook.js      ← hook Unity UI button events
    │   ├── ssl_unpin.js        ← SSL unpinning (Java + IL2CPP layers)
    │   └── nesec_bypass.js     ← neutralize libnesec anti-tampering
    ├── analysis/
    │   ├── analyze_gateway.py  ← parse and decode port 30101 pcap captures
    │   ├── analyze_mitm.py     ← read and filter mitmproxy .mitm files
    │   ├── decode_1d_v2.py     ← deep decode of 0x1d state-sync frames
    │   └── deep_analysis.py    ← coordinates, JSON fragments, opcode 0x59
    └── proxy/
        ├── mitm_setup.py       ← install mitmproxy CA on device
        ├── run_ssl_unpin.py    ← mitmdump + Frida SSL unpin combined runner
        └── run_button_hook.py  ← mitmdump + Frida button hook combined runner

Quick Start

# 1. Start frida-server on device
adb shell "su -c '/data/local/tmp/fs17 -l 0.0.0.0:37555 &'"
adb forward tcp:37555 tcp:37555

# 2. Capture gateway traffic
adb shell "su -c 'tcpdump -i any -w /sdcard/session.pcap port 30101'"
# ... play the game ...
adb pull /sdcard/session.pcap captures/

# 3. Analyze it
python scripts/analysis/analyze_gateway.py captures/session.pcap

Interested in Contributing?

See FLOW.md for the full protocol map and open questions.
See SETUP.md to get your environment running.

If you have Ghidra analysis, il2cppdumper output, or additional pcap captures — PRs and issues are welcome.

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.

    960
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    554
  • 3

    redforge

    cybersecurity91/redforge

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

    349
  • 4

    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.

    343
  • 5

    ARTEX

    baarai/artex

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

    323
  • 6

    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.

    295

Explore all tools

Browse our collection of tools

View all tools →