Monthly Archives: January 2016

Various code snippets in C++ (Mostly WINAPI)

Hey,

I thought I would share some code snippets used in various projects of mine. The code I will be sharing can be compiled with Visual Studio 2015 or later (probably).

The first one is a piece of code to get any of the KNOWNFOLDERID‘s in Windows.

If you are using shellcode from meterpreter and you are going to bundle this into another executable, you can execute the shellcode by using this code.

The last snippet is code that can be used to convert a string in hex to the char values.

Good luck!