nvz Newbie cheater
Reputation: 0
Joined: 02 Jul 2016 Posts: 21
|
Posted: Thu Nov 24, 2016 3:31 pm Post subject: problem autoattaching |
|
|
hi, i was testing this code from Zanzer, it's used for autoattaching to a process and quickly inject code trying to avoid that autoAssemble fails.
When i run the script in CE it works, but if i create an executable
it doenst work (it's just en empty exe with a Form). Also it seems the
timer set in the program is slower when is run in CE, but goes faster in
the exe, and also uses more CPU in CE.
Probably some noob mistake.
form_show(UDF1);
function CloseClick()
closeCE()
return caFree
end
UDF1.OnClose = CloseClick
local timer = createTimer(nil, false)
maxtime=0
timer.Interval = 100
timer.OnTimer = function(timer)
maxtime=maxtime+1
if (maxtime==50) then
print("out of time")
timer.Destroy()
end
if readInteger("calc.exe") == nil then
openProcess("calc.exe")
print('try'..maxtime)
else
local init = readInteger("InitVariables+10")
if init == nil then
autoAssemble([[
alloc(InitVariables,2048)
registersymbol(InitVariables)
]])
elseif init == 1 then
print("done")
timer.Destroy()
else -- just to test it (DELETE ME)
autoAssemble([[
InitVariables+10:
dd 1
]])
end
end
end
timer.Enabled = true
|
|