This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// http://www.rohitab.com/discuss/topic/39611-malware-related-compile-time-hacks-with-c11/ | |
#include <stdio.h> | |
#include <stdint.h> | |
//-------------------------------------------------------------// | |
// "Malware related compile-time hacks with C++11" by LeFF // | |
// You can use this code however you like, I just don't really // | |
// give a shit, but if you feel some respect for me, please // | |
// don't cut off this comment when copy-pasting... ;-) // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Runtime.InteropServices; | |
namespace DllInjector | |
{ | |
public static class DllInjector | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern "C" | |
{ | |
int _fltused; | |
#ifdef _M_IX86 // following functions are needed only for 32-bit architecture | |
__declspec(naked) void _ftol2() | |
{ | |
__asm | |
{ |
NewerOlder