Jump to content

Code Injection using gamedll.dll ?


Guest RiverRed
 Share

Recommended Posts

Guest RiverRed

Hi there, i'm trying to simulate the POKE command using gamedll.dll as i've seen on a few threads.

I tried following Marc's Example at the PEEK&POKE thread

$pid = Run("zuma.exe")

for $i = 0 to 5
_ProcessWriteByte($pid, Dec("4214f2")+$i, 0x90)
Next 

Func _ProcessWriteByte($mypid, $myoffset, $mybyte)
 $result = DllCall("gamedll.dll", "none", "ProcessWriteByte", "int", $mypid, "long", $myoffset, "int", $mybyte) 
EndFunc

to no avail.

This is what i have in Game Trainer Studio :

Poke 4769C0 E9 D3 9A BC 65 90 90

which works like a charm

This is what i wrote in AutoIt3 :

$pid = WinGetProcess ( "ROSE online")

_ProcessWriteByte($pid, Dec("4769C0")+0 , 0xE9)
_ProcessWriteByte($pid, Dec("4769C0")+1 , 0xD3)
_ProcessWriteByte($pid, Dec("4769C0")+2 , 0x9A)
_ProcessWriteByte($pid, Dec("4769C0")+3 , 0xBC)
_ProcessWriteByte($pid, Dec("4769C0")+4 , 0x65)
_ProcessWriteByte($pid, Dec("4769C0")+5 , 0x90)
_ProcessWriteByte($pid, Dec("4769C0")+6 , 0x90)

Func _ProcessWriteByte($mypid, $myoffset, $mybyte)
 $result = DllCall("gamedll.dll", "none", "ProcessWriteByte", "int", $mypid, "long", $myoffset, "int", $mybyte) 
EndFunc

Which causes the game to throw an 'unknown error'.

what did i do wrong ?

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...