PDA

View Full Version : Ollyscript GPA command problem


Foreigner
February 27th, 2006, 10:13
Hello all.

I'm trying to write a simple script but I'm stuck on GPA instruction. Suppose to have this situation:
eax=00404040 and eax points to string "kernel32.dll"
ebx=00408080 and ebx points to string "GetCommandLineA"
I wanted to do:
GPA "GetCommandLineA", "kernel32.dll"
using eax and ebx. I tried with something like:
GPA ebx, eax
because they point to the right strings but I always receive a nasty error. Where am I wrong?

Epsylon3
May 26th, 2006, 18:26
Try

GPA [ebx], [eax]

ebx and eax are integers...

New ODBGScript URL : http://e3.lescigales.org/olly/