Bom, já fiz e build essa source, porém na hora que aparece a tela do login da DC, algum coder pode ajuar?
VLW
Souce:
[php]#include <process.h>
#include <windows.h>
#include <shellapi.h>
#include <fstream>
#pragma comment(lib,"shell32.lib")
void __cdecl PushToConsole( const char* szCommand )
{
DWORD *Ltcliient = ( DWORD* )( 0x3778BFB0 );
void* CONoff = ( void* )*( DWORD* )( *Ltcliient + 0x377525F0);
__asm
{
push szCommand;
call CONoff;
add esp, 4;
}
}
bool IsGameReadyForHook()
{
if( GetModuleHandleA( "d3d9.dll" ) != NULL
&& GetModuleHandleA( "ClientFX.fxd" ) != NULL
&& GetModuleHandleA( "CShell.dll" ) != NULL )
return true;
return false;
}
void MemCopy(void* Dest, const void* Src, int Len)
{
DWORD OldProtect;
DWORD OldProtect2;
VirtualProtect(Dest, Len, PAGE_EXECUTE_READWRITE, &OldProtect);
memcpy(Dest, Src, Len);
VirtualProtect(Dest, Len, OldProtect, &OldProtect2);
FlushInstructionCache(GetCurrentProcess(), Dest, Len);
}
void main()
{
while (!IsGameReadyForHook()){
Sleep(20);
}
bool boxes = false;
bool fog = false;
bool speed = false;
bool spread = false;
bool tracers = false;
bool showfps = false;
bool drawgun = false;
bool sjump = false;
bool windows = false;
bool nosway = false;
bool wframe = false;
bool fb = false;
bool glow = false;
bool ps = false;
bool removers = false;
bool vjump = false;
//right here is stuff that will be on when it starts up
PushToConsole("ShowFps 1");
showfps = true;
while(true){
if(GetAsyncKeyState(VK_NUMPAD0)<0){
if(boxes){
PushToConsole("SkelModelStencil 0");
boxes = false;
} else {
PushToConsole("SkelModelStencil 1");
boxes = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD1)<0){
if(fog){
PushToConsole("FogEnable 1");
fog = false;
} else {
PushToConsole("FogEnable 0");
fog = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD2)<0){
if(speed){
PushToConsole("BaseMoveAccel 3000.000000");
PushToConsole("StartAccel 500.000000");
PushToConsole("MaxAccel 3000.000000");
PushToConsole("AccelInc 6000.000000");
PushToConsole("WalkVel 70.000000");
PushToConsole("FRunVel 285.000000");
PushToConsole("BRunVel 285.000000");
PushToConsole("SRunVel 285.000000");
PushToConsole("DuckVel 50.000000");
speed = false;
} else {
PushToConsole("BaseMoveAccel 999.000000");
PushToConsole("StartAccel 999.000000");
PushToConsole("MaxAccel 999.000000");
PushToConsole("AccelInc 666.000000");
PushToConsole("WalkVel 500.000000");
PushToConsole("FRunVel 500.000000");
PushToConsole("BRunVel 500.000000");
PushToConsole("SRunVel 500.000000");
PushToConsole("DuckVel 300.000000");
speed = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD3)<0){
if(spread){
PushToConsole("PerturbRotationEffect 3.000000");
PushToConsole("PerturbIncreaseSpeed 3.000000");
PushToConsole("PerturbDecreaseSpeed 9.000000");
PushToConsole("PerturbWalkPercent 0.500000");
PushToConsole("PerturbRecoil 9.000000");
PushToConsole("FireMovePerturb 9.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 9.000000");
PushToConsole("ZoomedFireMovePerturb 9.000000");
PushToConsole("ZoomedFireDuckPerturb 9.000000");
spread = false;
} else {
PushToConsole("PerturbRotationEffect 0.000000");
PushToConsole("PerturbIncreaseSpeed 0.000000");
PushToConsole("PerturbWalkPercent 0.000000");
PushToConsole("PerturbFiringIncreaseSpeed 0.000000");
PushToConsole("PerturbRecoil 0.000000");
PushToConsole("FireMovePerturb 0.000000");
PushToConsole("ZoomedFireMoveDuckPerturb 0.000000");
PushToConsole("ZoomedFireMovePerturb 0.000000");
PushToConsole("ZoomedFireDuckPerturb 0.000000");
spread = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD4)<0){
if(tracers){
PushToConsole("ShowFirePath 0");
tracers = false;
} else {
PushToConsole("ShowFirePath 1");
tracers = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
if(sjump){
PushToConsole("JumpVel 330.000000");
sjump = false;
} else {
PushToConsole("JumpVel 660.000000");
sjump = true;
}
}
if(GetAsyncKeyState(VK_INSERT)<0){
if(showfps){
PushToConsole("ShowFps 0");
showfps = false;
} else {
PushToConsole("ShowFps 1");
showfps = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD9)<0){
if(nosway){
PushToConsole("WeaponSway 1.000000");
nosway = false;
} else {
PushToConsole("WeaponSway 0.000000");
nosway = true;
}
}
if(GetAsyncKeyState(VK_UP)<0){
PushToConsole("PlayerGravity +200");
}
if(GetAsyncKeyState(VK_DOWN)<0){
PushToConsole("PlayerGravity -200");
}
//
if(GetAsyncKeyState(VK_RIGHT)<0){
PushToConsole("PlayerGravity +800");
}
if(GetAsyncKeyState(VK_LEFT)<0){
PushToConsole("PlayerGravity -800");
}
if(GetAsyncKeyState(VK_PAUSE)<0){
PushToConsole("FragSelf 1");
}
if(GetAsyncKeyState(VK_F11)<0){
PushToConsole("CrossHair_DefaultLength 50");
PushToConsole("CrossHair_DefaultGapLength 1");
PushToConsole("CrosshairGapMin 0");
PushToConsole("CrosshairGapMax 2");
PushToConsole("CrosshairBarMin 100");
PushToConsole("CrosshairBarMax 100");
PushToConsole("HitCrossHairMAXPerturb 0");
PushToConsole("HitCrossHairMINPerturb 0");
PushToConsole("HitCrossHairSize 0");
PushToConsole("CrossHair_FiringDuration 0");
PushToConsole("ScopeUDRadius 0");
PushToConsole("ScopeLRRadius 0");
PushToConsole("ScopeUPGap 0");
PushToConsole("ScopeLRGap 0");
PushToConsole("ShowBreath 0");
}
if(GetAsyncKeyState(VK_NUMPAD8)<0){
if(windows){
PushToConsole("Windowed 0");
windows = false;
} else {
PushToConsole("Windowed 1");
windows = true;
}
}
if(GetAsyncKeyState(VK_HOME)<0){
if(fb){
PushToConsole("FullBright 1");
fb = false;
} else {
PushToConsole("FullBright 0");
fb = true;
}
}
if(GetAsyncKeyState(VK_NUMPAD5)<0){
if(wframe){
PushToConsole("WireFrame 1");
wframe = false;
} else {
PushToConsole("WireFrame 0");
wframe = true;
}
}
if(GetAsyncKeyState(VK_END)<0){
if(glow){
PushToConsole("ScreenGlowEnable 1");
glow = false;
} else {
PushToConsole("ScreenGlowEnable 0");
glow = true;
}
}
if(GetAsyncKeyState(VK_DELETE)<0){
if(ps){
PushToConsole("ModelDebug_DrawSkeleton 1");
ps = false;
} else {
PushToConsole("ModelDebug_DrawSkeleton 0");
ps = true;
}
}
}
if(GetAsyncKeyState(VK_F12)<0){
if(vjump){
PushToConsole("CamMaxPosYOffset 200.000000");
PushToConsole("DuckDownCamOffSet 1000.000000");
vjump = false;
} else {
PushToConsole("CamMaxPosYOffset -200.000000");
PushToConsole("DuckDownCamOffSet -1000.000000");
vjump = true;
}
}
Sleep(160);
}
BOOL APIENTRY DllMain( HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
ShellExecute;\\Quando Procuro, fala-se que o erro está aqui
CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)&main, NULL, 0,NULL);
break;
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}[/php]
[COLOR="rgb(139, 0, 0)"]Dados de Conclusão:[/COLOR]
[php]1>------ Build started: Project: leokkew's v1, Configuration: Debug Win32 ------
1> Base.cpp
1>c:\documents and settings\user\meus documentos\visual studio 2010\projects\hack v1\hack v1\nova pasta\base.cpp(283): warning C4551: function call missing argument list
1> Hack v1.vcxproj -> C:\Documents and Settings\User\meus documentos\visual studio 2010\Projects\Hack v1\Debug\leokkew's v1.dll
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped =========

/php]