[Tutorial]Criando um simples Hacker
Estarei usando esta base:
http://www.mpgh.net/forum/615-crossf...3-05-13-a.html
Code:
Abra o seu C/C++;
Abra um novo projeto;
Marque a opção (Win32 Console Application);
De um nome a seu projeto;
Click em Avançar;
Marque as opções DLL e Emprty project;
Click em Finish;
Agora de um Ctrl+shift+A e crie um Projeto C++ File(.cpp);
e Add o codigo abaixo (main.cpp);
Depois faça o mesmo para Add o (Xor.h)
main.cpp:
includes
Code:
#include <windows.h>
#include <process.h>
#include "Xor.h"
variaveis:
Endereços (address)
Code:
#define WallHack 0x6DBC0C
Carregar Cshell.sll
Code:
BOOL CShellLoad(VOID)
{
if ((DWORD)GetModuleHandleA(/*CShell.dll*/XorStr<0xB0,11,0xE45690BF>("\xF3\xE2\xDA\xD6\xD8\xD9\x98\xD3\xD4\xD5"+0xE45690BF).s) )
return TRUE;
return FALSE;
}
Funções:
Code:
UINT WINAPI Funções(void *)
{
while (CShellLoad !=! TRUE )
{
(DWORD)GetModuleHandleA(/*CShell.dll*/XorStr<0xB0,11,0xE45690BF>("\xF3\xE2\xDA\xD6\xD8\xD9\x98\xD3\xD4\xD5"+0xE45690BF).s);
if(GetAsyncKeyState(VK_F10)){
wall =! wall
if(wall){
memcpy((PVOID)WallHack, (PBYTE)"\x00\x00\x00\x00\x00\x00", 6);
}else{
memcpy((PVOID)WallHack, (PBYTE)"\x01\x01\x01\x01\x01\x01", 6);
}
}
return NULL;
}
Dllmain(ataca o processo)
Code:
BOOL WINAPI DllMain(HINSTANCE Hdll, DWORD Reacao,LPVOID lpReserved)
{
if ( Reacao == TRUE )
{
DisableThreadLibraryCalls(Hdll);
MessageBoxA(NULL,"MPGH", "Credits Hacker", NULL);
_beginthreadex(NULL, NULL,Funções, NULL, NULL, NULL);
}
return TRUE;
}
Xor.h
Code:
#ifndef _XOR_H_
#define _XOR_H_
#pragma once
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
Agora usando esse protetor de .dll:
http://www.mpgh.net/forum/615-crossf...acker-dll.html
Você vai executar sobre a .dll para que a X-Trap não detecte.
================================================== =================================================
Exemplo de como adicionar mais funções:
Na mesma base:
Cria-se uma nova void
Code:
void InitMemory ( )
{
#define CryptCShell /*CShell.dll*/XorStr<0xB0,11,0xE45690BF>("\xF3\xE2\xDA\xD6\xD8\xD9\x98\xD3\xD4\xD5"+0xE45690BF).s
DWORD CShell = (DWORD)GetModuleHandleA( CryptCShell );
for(int i = 0; i <= 1000; i++){
DWORD pWeaponMgr = *(DWORD*)(CShell + WeaponMgr);
DWORD Weapon = (*(DWORD*)( pWeaponMgr + (4*i)) );
if(Weapon )
{
/*Não Granada Damanage*/
if(Weapon != NULL && (TiposGranada)){
*(float*)(Weapon + 0x81C ) = 0.0f; //Address é da "AmmoDamage"
}
/*Não Flash Damanage*/
if(Weapon != NULL && (FlashGrenade)){
*(float*)(Weapon + 0x81C ) = 0.0f; //Address é da "AmmoDamage"
}
/*Não Smoke Damanage*/
if(Weapon != NULL && (SmokeGrenade)){
*(float*)(Weapon + 0x81C ) = 0.0f; //Address é da "AmmoDamage"
}
/*Não C4 Damanage*/
if(Weapon != NULL && (C4bom)){
*(float*)(Weapon + 0x81C ) = 0.0f; //Address é da "AmmoDamage"
}
}
}
Em Funções adiciona-se a Ativação:
Indicando o nome dado a void seguindo de '();'.
Code:
UINT WINAPI MyHook(void *)
{
while (CShellLoad !=! TRUE )
{
(DWORD)GetModuleHandleA(/*CShell.dll*/XorStr<0xB0,11,0xE45690BF>("\xF3\xE2\xDA\xD6\xD8\xD9\x98\xD3\xD4\xD5"+0xE45690BF).s);
if(GetAsyncKeyState(VK_F2)&1){
Beep(1000,100);
hack1 = !hack1;
if(hack1l){
InitMemory ( );
}
}
}
return NULL;
}
Scan:
http://virusscan.jotti.org/en/scanre...438853bcd5a06c
https://www.virustotal.com/pt/file/4...is/1370795519/
Aprove?
@
BACKD00R
@
Rullez
@
iSmexy
@
Hannibal
Créditos:
luizimloko, HAABX, XarutoUsoCrack,FooChaos,Rullez,dreek1. entre outros.