How b3tt3rlynx/thefatrat_v2 works
The README describes TheFatRat_v2 as a Linux-oriented payload and backdoor creation tool: users choose an operating-system category and payload format, generate a payload, and may set up a local or remote listener. It also documents file pumping, network-address discovery, and removable-media autorun generation. The tree additionally contains a substantial libbpf implementation, but the supplied evidence does not connect it to TheFatRat workflow. Several product capabilities are documented without their implementing source being shown, so those nodes use the existing tools directory; links between them reflect README descriptions, not inspected calls.
Main entry points: tools Payload generation · libbpf.c BPF object loading · btf.c BTF processing · btf_dump.c BTF to C
Components 17
Payload creation
- OS category
tools - Payload generation
tools - Payload formats
tools
Delivery and listeners
- Listener setup
tools - Autorun files
tools
Supporting utilities
- File pumper
tools/pump.py - Address discovery
tools
Embedded libbpf
- BPF object loading
bin/log/load/libbpf.c - BTF processing
bin/log/load/btf.c - BTF to C
bin/log/load/btf_dump.c - BPF linker
bin/log/load/linker.c - Loader generation
bin/log/load/gen_loader.c - Netlink operations
bin/log/load/netlink.c - Hash map helper
bin/log/load/hashmap.c
Other components
- User
- MSFvenom
- Metasploit
Connections 17
- User → OS category: chooses
- OS category → Payload generation: selects
- Payload generation → MSFvenom: automates
- Payload generation → Metasploit: automates
- Payload generation → Payload formats: generates
- User → Listener setup: requests
- User → Autorun files: generates
- User → File pumper: uses
- User → Address discovery: requests
- BPF object loading → BTF processing: uses
bin/log/load/libbpf.c - BPF object loading → Loader generation: uses
bin/log/load/libbpf.c - BTF processing → Hash map helper: uses
bin/log/load/btf.c - BTF to C → BTF processing: converts
bin/log/load/btf_dump.c - BTF to C → Hash map helper: uses
bin/log/load/btf_dump.c - BPF linker → BTF processing: uses
bin/log/load/linker.c - BPF linker → BPF object loading: uses
bin/log/load/linker.c - Netlink operations → BPF object loading: uses
bin/log/load/netlink.c