Hack Forums
[C] Split file into 2 parts (to escape entropy detection) - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] Split file into 2 parts (to escape entropy detection) (/showthread.php?tid=5834669)



Split file into 2 parts (to escape entropy detection) - hansbald - May 9, 2018

Hello,
I made this small little programm that takes a file and splits it into two files. (Of course there is an recombination function too).

I use this to split a payload in two files, encrypt them, add them to my stub as resources and then do the reserve on runtime. It helped me with detections alot :) Maybe it can help you guys too  🤝
It splits the original byte array into "odd and even".

Source code:
Spoiler (Click to View)

Example with a text file:
Spoiler (Click to View)

On Pastebin: (Formatting screwed up dont know why) CLICK ME


RE: Split file into 2 parts (to escape entropy detection) - HFDone - May 9, 2018

you mixing c & c++
https://stackoverflow.com/a/26378137