cryptolok / MorphAES

IDPS & SandBox & AntiVirus STEALTH KILLER. MorphAES is the world's first polymorphic shellcode engine, with metamorphic properties and capability to bypass sandboxes, which makes it undetectable for an IDPS, it's cross-platform as well and library-independent.
MIT License
314 stars 103 forks source link

Fixed a race condition #4

Closed hlequien closed 6 years ago

hlequien commented 6 years ago

The use of a file a buffer and then shell() probably caused a race condition, shrinking the output by 1 to 16 bytes in 0.7% of cases (tested multiple times with 10000 times the same shellcode). The resulting ciphertext in the shellcode was 16 bytes shorter.

cryptolok commented 6 years ago

I used a file as buffer because, it can't be done with variables and I was too lazy to use processes :) Thanks anyway.