NUL0x4C/HellShell — reverse-engineered prompt
Reverse engineered prompt
Build me a small C command line tool called HellShell for a malware analysis lab. It should take a raw payload or byte buffer and turn it into one of three readable array formats, MAC addresses, IPv4 addresses, or IPv6 addresses.
When someone runs it without options, show a simple help screen that explains the three modes and how to use them. When they choose a mode, generate a C++ file that contains the encoded array plus a matching decoder function that turns it back into the original bytes. Please also include small example projects for each format so I can see how to call the decoder and verify the bytes match.
Keep it easy to build on Windows with the included solution style, and make the output clean enough that someone can copy it into another C++ project. Don’t add anything that runs or injects the payload, this is just for encoding and decoding demonstrations.
Want more depth? Deep Reverse