I see only one error, you are too new to C++ to make hacks properly yet.
But, I'll help u more, too much more in fact.. lol
Ok. So, this code will get you Banned, but before u even get banned Crossfire will crash cause of Xtrap.
You are loading CShell the old, detected way.
You need to encrypt the string "CShell.dll" in this line of your code:
Code:
DWORD CShell = ( DWORD ) GetModuleHandleA("CShell.dll");
to do this, Click: Project -> Add New Item -> select Header File (.h)
Name it Encrypt.
go to encrypt, paste this in ( C + P ready lol )
Code:
#ifndef _XOR_H // credits to Stalin for XOR encryption.
#define _XOR_H
template <int XORSTART, int BUFLEN, int XREFKILLER>
class XorStr
{
private:
XorStr();
public:
char s[ BUFLEN ];
XorStr( const char * xs );
~XorStr()
{
for ( int i = 0; i < BUFLEN; i++ ) s[ i ]=0;
}
};
template <int XORSTART, int BUFLEN, int XREFKILLER>
XorStr<XORSTART,BUFLEN,XREFKILLER>::XorStr( const char * xs )
{
int xvalue = XORSTART;
int i = 0;
for ( ; i < ( BUFLEN - 1 ); i++ )
{
s[ i ] = xs[ i - XREFKILLER ] ^ xvalue;
xvalue += 1;
xvalue %= 256;
}
s[ BUFLEN - 1 ] = 0;
}
#endif
#define CShellEncrypted /*CShell.dll*/XorStr<0x77,11,0x0026791B>("\x34\x2B\x11\x1F\x17\x10\x53\x1A\x13\xEC"+0x0026791B).s
NOW, Go back to your Main.cpp or DLLmain.cpp or whatever, and add this:
Now, you have to change your old Loading CShell method, change it to this:
Code:
DWORD CShell = ( DWORD ) GetModuleHandleA(CShellEncrypted);
And Vuala! IT WORKS!
(your loading CShell works, not sure about the rest :P)
Remember to THANKS if I helped!
Credits: @LucN ,but I donno if he made that encryption method, I'm not sure.