t6t is a program for analyzing any .gsc script written for T6 (Call of Duty: Black Ops II). It allows for fast, easy analysis of functions, variables, flags, dvars etc.
- Download the latest binary
- (optional) move it into /usr/bin/
# Clone the repo
git clone https://maxvanasten/t6t
cd t6t
# Build the t6t binary
go build -o ./t6t-bin ./cmd/main.go
# Optional but recommended: move t6t binary into /usr/bin/ so its accessible from anywhere
sudo mv ./t6t-bin /usr/bin/t6tt6t depends on gscp to parse raw .gsc files into abstract syntax trees. The easiest way to use t6t is by piping the output of gscp into t6t.
# Reads ast from STDIN using gscp
gscp -p input_file.gsc | t6t -f
# Reads ast from input file
t6t -f ast.json
# I personally like to use this command to view the output in a pretty way using jq and bat
gscp -p input_file.gsc | t6t -f | jq | bat -l jsonFunction signatures and function calls
You can find a demo analysis output in ./demo/analysis.json