How screetsec/thefatrat works
TheFatRat is a Linux-oriented security tool whose documented workflow is to configure payloads, generate platform-specific artifacts, and optionally prepare a listener. The shown files cover a PowerShell payload generator/listener, an Android APK injection utility, a file-size utility, and bundled Clang headers. README capabilities such as MSFvenom automation, other payload formats, and autorun generation are included as documented subsystems, but their implementations are not present in the sampled tree. Edges without direct source evidence are marked unverified.
Main entry points: apkembed.rb APK injector · power.py PowerShell generator · trusted_2_6.py Unicorn generator · pw_exec.py PowerShell executor
Components 19
Payload generation
- TheFatRat CLI
- PowerShell generator
tools/power.py - Unicorn generator
tools/trusted_2_6.py - PowerShell executor
tools/pw_exec.py - Listener session
tools/power.py - Payload artifacts
- Autorun artifacts
Android packaging
- Original APK
- APK injector
tools/apkembed.rb - Rebuilt APK
Utilities and headers
- File pumper
tools/pump.py - Expanded file
- CUDA runtime wrapper
tools/android-sdk/renderscript/clang-include/__clang_cuda_runtime_wrapper.h - CUDA builtins
tools/android-sdk/renderscript/clang-include/cuda_builtin_vars.h - Clang intrinsic headers
tools/android-sdk/renderscript/clang-include
External integrations
- MSFvenom / Metasploit
- apktool
Other components
- Operator
- File operator
Connections 18
- Operator → TheFatRat CLI: configures
- TheFatRat CLI → PowerShell generator: selects payload
- TheFatRat CLI → Unicorn generator: selects payload
- TheFatRat CLI → PowerShell executor: selects payload
- TheFatRat CLI → MSFvenom / Metasploit: automates
- PowerShell generator → Payload artifacts: generates
- Unicorn generator → Payload artifacts: generates
- PowerShell executor → Payload artifacts: generates
- TheFatRat CLI → Listener session: offers listener
- Operator → APK injector: provides APK
- Original APK → APK injector: receives
tools/apkembed.rb - APK injector → MSFvenom / Metasploit: uses payload
- APK injector → apktool: rebuilds with
tools/apkembed.rb - APK injector → Rebuilt APK: produces
tools/apkembed.rb - File operator → File pumper: sets target size
tools/pump.py - File pumper → Expanded file: appends data
tools/pump.py - TheFatRat CLI → Autorun artifacts: creates automatically
- CUDA runtime wrapper → CUDA builtins: includes
tools/android-sdk/renderscript/clang-include/__clang_cuda_runtime_wrapper.h