ionsec/insito ? reverse-engineered prompt
Reverse engineered prompt
Build me a single file C command line tool called INSITO that can recover files encrypted by the Rhysida ESXi Linux locker.
It should scan a datastore recursively for files ending in .rhysida, use file timestamps to narrow the search, try to recover the per file key material from the encrypted file trailer, and restore decrypted copies into a rhysida_recovered folder without touching the originals. Add a safe scan mode that only previews what would happen, plus a full recovery mode that writes a text and JSON report with the recovered clock and per file results. Also include the license acceptance flow, --help, --version, --window, --clock, --lookback, --threads, and --key options as described in the README.
Keep it buildable with plain make, using the vendored crypto libraries already in the repo. Please make it work cleanly on Linux and ESXi style filesystems, and add or update tests so the main flows are covered. If you need to check current details from docs or library behavior, do that.
Are you gonna build this?
make sure you review the code using coderabbit