• Trainer
  • Forums
  • Suche
  • Members
  • Kalender
  • Hilfe
  • Extras
Forum stats
Show team
Neue Beiträge ansehen
Heutige Beiträge ansehen
Home of Gamehacking - Archiv
Login to account Create an account
Login
Benutzername:
Passwort: Passwort vergessen?
 



  Home of Gamehacking - Archiv Gamehacking Projekte
1 2 3 Weiter »
Two Worlds 2

Ansichts-Optionen
Two Worlds 2
maluc Offline
Nacktnasenwombat
***
Beiträge: 84
Themen: 8
Registriert seit: Jul 2011
Bewertung: 0
#4
23.08.2011, 10:49 (Dieser Beitrag wurde zuletzt bearbeitet: 23.08.2011, 10:55 von maluc.)
Jemand von hier fragte mich das per ICQ.
Dort ging es auch um Halo 2 und die Base.
Hatte ihm diesen Code geschickt.
[code=asm]TL_GetBase proc uses ecx edx ebx edi dwProcessIdHappyWORD,lpszFileHappyWORD,iBaseSizeHappyWORD
local me32:MODULEENTRY32

xor ebx,ebx
invoke RtlZeroMemory,addr me32,sizeof MODULEENTRY32

mov edi,lpszFile
.if (edi)
invoke CreateToolhelp32Snapshot,TH32CS_SNAPMODULE,dwProcessId
.if (eax!=INVALID_HANDLE_VALUE)
push eax
mov me32.dwSize,sizeof me32
invoke Module32First,[esp+4],addr me32
.while (eax)
invoke lstrcmpi,addr me32.szModule,edi
jz @mod_check
invoke Module32Next,[esp+4],addr me32
.endw
call CloseHandle
jmp @mod_end
@mod_check:
call CloseHandle
mov eax,iBaseSize
test eax,eax
jz @mod_ok
cmp me32.modBaseSize,eax
je @mod_ok
dec ebx
jmp @mod_end
@mod_ok:
mov ebx,me32.modBaseAddr
.endif
.endif

@mod_end:
mov eax,ebx
ret
TL_GetBase endp[/code]

iBaseSize: 0=Kein Test. BaseSize=Testen. (Ist der Rückgabewert -1. Dann handelt es sich um eine falsche Version.)
lpszFile: Name der Exe/Dll(Ohne Pfad!). (Ist der Rückgabewert 0. Base konnte nicht ermittelt werden.)
dwProcessId: Die ProcessID.

invoke TL_GetBase,pid,addr szGameExe,148000h
oder
invoke TL_GetBase,pid,addr szGameExe,NULL ; BaseSize egal.

Vllt kann es noch jemand gebrauchen.

MfG
[Bild: maluc.png]
Suchen
Antworten
Share Thread:            


Nachrichten in diesem Thema
Two Worlds 2 - von iNvIcTUs oRCuS - 22.08.2011, 04:05
RE: Two Worlds 2 - von EuroCop - 22.08.2011, 22:46
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 22.08.2011, 23:43
RE: Two Worlds 2 - von maluc - 23.08.2011, 10:49
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 23.08.2011, 12:18
RE: Two Worlds 2 - von maluc - 23.08.2011, 13:16
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 23.08.2011, 16:19
RE: Two Worlds 2 - von dr.olle - 23.08.2011, 19:20
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 23.08.2011, 19:24
RE: Two Worlds 2 - von Acubra - 23.08.2011, 20:40
RE: Two Worlds 2 - von maluc - 23.08.2011, 22:00
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 24.08.2011, 07:04
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 24.08.2011, 19:12
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 25.08.2011, 20:30
RE: Two Worlds 2 - von maluc - 26.08.2011, 01:31
RE: Two Worlds 2 - von iNvIcTUs oRCuS - 26.08.2011, 16:01

  • Druckversion anzeigen
  • Thema abonnieren


Benutzer, die gerade dieses Thema anschauen:
1 Gast/Gäste

  • Kontakt
  • Forum team
  • Forum stats
  • Nach oben
 
  • RSS-Synchronisation
  • Lite mode
  • Home of Gamehacking - Archiv
  • Help
 
Forum software by © MyBB - Theme © iAndrew 2014



Linearer Modus
Baumstrukturmodus