
sProcess.cpp - CoD4 DLL hack
By:
iWinterHD7s on
Aug 21st, 2012 | syntax:
C++ | size: 0.75 KB | hits: 38 | expires: Never
#include "StdAfx.h"
#include <string>
#include <sstream>
#include <atlstr.h>
#include "sProcess.h"
sProcess::sProcess(void)
{
Beep(2000,500);
TCHAR szFileFullPath[256];
::GetModuleFileName(NULL,static_cast<LPTSTR>(szFileFullPath),256);
CString szProcessName(szFileFullPath);
int nPos = szProcessName.ReverseFind('\\');
szProcessName = szProcessName.Right(szProcessName.GetLength() - nPos - 1);
std::stringstream ssTmp;
std::string Data;
std::string InjectMsg = "SyntheticDLL Injected!\nInside Process: ";
ssTmp << szProcessName;
ssTmp >> Data;
LPCSTR myString;
std::string msg = InjectMsg + Data;
myString = msg.c_str();
MessageBox(NULL, myString, "I'm Inside!", MB_ICONINFORMATION);
}
sProcess::~sProcess(void)
{
}