Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.68 KB

File metadata and controls

50 lines (32 loc) · 1.68 KB

lordran.polymorphic.shellcode

"Buy Me A Coffee"

This mini project was inspired by the following meme tweeted by @jamieantisocial:

And, I found it really interesting so here is a mini PoC of some of the things mentioned in the meme.

Objectives

I had 3 main objectives with this program - Produce a shellcode which :

  • Does normal execution stuff
  • Overwrites previously executed stub to prevent forensic analysis
  • Reuse the memory segment for executing new shellcode

Usage:

Compile everything with:

$ make

Running the EXE:

$ ./overwrite.exe

Running the shellcode:

$ python runshellcode.py shellcode.bin

Output

First, you should get a MessageBox popup with the text: Bonfire, which signifies that the first part of the shellcode has run successfully, and then a Hello World messagebox as a result of the execution of the second shellcode blob

Notes:

K. Bye.