jtsylve/LiME ? reverse-engineered prompt
Reverse engineered prompt
Build me a Linux kernel module that can capture volatile memory from a running Linux machine, including Android devices, and save it either to a local file or send it over the network. I want it to be loaded with insmod and configured with simple module arguments like where to write, which output format to use, and whether to turn on optional hashing or compression.
It should support the main dump formats described in the README, raw, padded, and lime, and the network mode should work with a receiver like netcat. Add support for optional digest sidecar files, optional zlib compression, a localhost only option, direct I O if available, and a timeout for slow memory regions. Keep the memory capture as low impact as possible and make the module suitable for forensic use.
Also include clear usage examples and any build or setup notes needed so someone can compile the module for their current kernel and use it right away. If you need to check current kernel docs or build details online, do that.
Are you gonna build this?
make sure you review the code using coderabbit