PDA

View Full Version : Ollyscript GPA command problem


Foreigner
02-27-2006, 09:13 AM
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
05-26-2006, 06:26 PM
Try

GPA [ebx], [eax]

ebx and eax are integers...

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