|
Thema |
Forum |
Letzter Beitrag |
Beiträge |
Zugriffe |
 |
[C++] DLL Injection
Erstellt am: Fr 28. Aug 2009, 11:18
DevilFear
Vorschau
|
VB, C/C++, Delphi, etc |
Fr 28. Aug 2009, 14:37
von DevilFear
|
2 |
1605 |
 |
norecoil
( 1 2)
Erstellt am: So 6. Jul 2008, 13:12
Marco
Vorschau
Go To Post
Zitat Original von AldiSkill c++
kann ich machen,
vielleicht finde ich heute noch Zeit und mach ein kleines Tutorial!
mfg Aldi Hmm das ganze ist ja schon ein bisschen älter aber haste vielleicht noch lust ein Tutorial für no recoil zu machen ? :> Oder gibt es schon irgendwo so ein Tutorial für CSS oder CS 1.6 ?
|
Counter-Strike 1.6 |
Fr 7. Aug 2009, 11:46
von nookstar
|
24 |
2569 |
 |
norecoil
( 1 2)
Erstellt am: So 6. Jul 2008, 13:12
Marco
Vorschau
|
Counter-Strike 1.6 |
Fr 7. Aug 2009, 11:46
von nookstar
|
24 |
2569 |
 |
[Release] OldSchoolHack injected - Call of Duty 4
( 1 2)
Erstellt am: Fr 3. Jul 2009, 12:15
KN4CK3R
Vorschau
Go To Post
Sieht echt nice aus Wie lange muss man sich mit D3D9 beschäftigen um sowas zu können ?
|
Call of Duty 4: Modern Warfare |
Mi 8. Jul 2009, 20:25
von Exxon
|
23 |
4762 |
 |
[C++] CS1.6 Auto Shoot
Erstellt am: Do 2. Jul 2009, 06:50
nookstar
Vorschau
Go To Post
Hi, ich habe hier mal einen kleinen Source ... Sobald der Name des feindlichen Spielers erscheint schießt ihr automatisch. Ich habe es unter Windows XP getestet. TEXT Code: #include <iostream> #include <windows.h> #include <Tlhelp32.h> #define ON_ENEMY 2 using namespace std; HANDLE GetGameHandle ( HWND hWindow ); DWORD GetClientBase ( HWND hWindow ); HWND GetGameHwnd (); int main() { short sCrosshair = 0; short sShoot = 1280; short sNoShoot = 1024; HWND hWindow = GetGameHwnd(); HANDLE hGame = GetGameHandle(hWindow); if (!hGame) { cout << "GetGameHandle failed" << endl; return -1; } DWORD dwClientBase = GetClientBase(hWindow); if ( dwClientBase == 0x00 ) { cout << "GetClientBase failed" << endl; return -1; } DWORD dwShoot = dwClientBase + 0x12CF5F; DWORD dwOnEnemy = dwClientBase + 0x1211F8; while ( !GetAsyncKeyState (VK_F12) & 1 ) { ReadProcessMemory ( hGame, (void*)(dwOnEnemy), &sCrosshair, sizeof(sCrosshair), NULL ); if ( sCrosshair == ON_ENEMY ) { WriteProcessMemory ( hGame, (void*)(dwShoot), &sShoot, sizeof(sShoot), NULL ); Sleep (20); WriteProcessMemory ( hGame, (void*)(dwShoot), &sNoShoot, sizeof(sNoShoot), NULL ); Sleep (420); } Sleep (10); } return 0; } HWND GetGameHwnd () { HWND hWindow = NULL; while ( !hWindow ) { hWindow = FindWindow ( NULL, "Counter-Strike" ); Sleep (500); cout << "looking for counter-strike ..." << endl; } cout << "counter-strike found" << endl; return hWindow; } HANDLE GetGameHandle ( HWND hWindow ) { HANDLE hGame = NULL; DWORD dwPid; GetWindowThreadProcessId ( hWindow, &dwPid ); hGame = OpenProcess ( PROCESS_ALL_ACCESS, false, dwPid ); if ( hGame ) return hGame; else return NULL; } DWORD GetClientBase ( HWND hWindow ) { HANDLE hSnap = NULL; MODULEENTRY32 m32; DWORD dwPid; GetWindowThreadProcessId ( hWindow, &dwPid ); m32.dwSize = sizeof (MODULEENTRY32); hSnap = CreateToolhelp32Snapshot( TH32CS_SNAPMODULE, dwPid ); if ( hSnap == INVALID_HANDLE_VALUE ) { cout << "CreateToolhelp32Snapshot failed" << endl; CloseHandle (hSnap); return 0x00; } if ( Module32First ( hSnap, &m32 ) ) { while ( Module32Next ( hSnap, &m32 ) ) { if ( !strcmp ( m32.szModule , "client.dll" ) ) { cout << "client base found" << endl; CloseHandle (hSnap); return (DWORD)(m32.modBaseAddr); } } } else { cout << "Module32First failed" << endl; }; CloseHandle (hSnap); return 0x00; }
Vielleicht kann ja jemand was damit anfangen. Sollte es Probleme geben, versucht es mal mit: TEXT Code: if ( sCrosshair > 1 )
MfG nookstar
|
Counter-Strike 1.6 |
Do 2. Jul 2009, 14:18
von nookstar
|
3 |
776 |
 |
[C++] CS1.6 Auto Shoot
Erstellt am: Do 2. Jul 2009, 06:50
nookstar
Vorschau
Go To Post
Ja war auch nur mal eine kleine Spielerei :> Nach dem Update hat sich wohl das Offset verschoben, neues Offset: TEXT Code: DWORD dwOnEnemy = dwClientBase + 0x1211F4;
Und die Bedingung bleibt TEXT Code: if ( sCrosshair == ON_ENEMY )
|
Counter-Strike 1.6 |
Do 2. Jul 2009, 14:18
von nookstar
|
3 |
776 |