View previous topic :: View next topic |
Author |
Message |
etioplmld Advanced Cheater Reputation: 0
Joined: 09 Feb 2021 Posts: 74
|
Posted: Fri Sep 30, 2022 7:13 am Post subject: about Check on breakpoints |
|
|
In a known address,this code can print("hello hacking").
Code: |
local fl = getMainForm().Foundlist3
debugProcess() -- Attach Debugger to the process.
function debugger_onBreakpoint()
debug_continueFromBreakpoint(co_run)
print("hello hacking")
end
debug_setBreakpoint(fl.Items[0].Caption, 1,bptAccess)
|
but In this code, the same address is set as selection,the Filter not work?
What's wrong with this code?
Is this wrong?
Code: |
function debugger_onBreakpoint()
debug_continueFromBreakpoint(co_run)
ckAccess=true
end
---
elseif (ckAccess == true and maincount>0 ) then
|
Code: |
f = createForm(true)
f.Position=poDesktopCenter
f.Width=500
f.Height=220
f.Caption = 'Process count'
local lb = createLabel(f)
lb.Left=44
lb.Top=30
lb.caption='total number:'..0
lb.Color = 16777215
local font=lb.Font
font.Size = 22
font.Color = 0xff0000
local lb2 = createLabel(f)
lb2.Left=44
lb2.Top=80
lb2.caption='Finish:'..0
lb2.Color = 16777215
local font=lb2.Font
font.Size = 22
font.Color = 0xff0000
local lb3 = createLabel(f)
lb3.Left=44
lb3.Top=120
lb3.caption='address:'..0
lb3.Color = 16777215
local font=lb3.Font
font.Size = 22
font.Color = 0xff0000
local fl = getMainForm().Foundlist3
lb.caption='total number:'..fl.Items.Count
debugProcess()
cdjs = createTimer()
local maincount = fl.Items.Count - 1
function debugger_onBreakpoint()
debug_continueFromBreakpoint(co_run)
ckAccess=true
end
local jsct = 3
local i = 0
local ckAccess = false
function countdown()
lb3.caption=fl.Items[i].Caption
debug_setBreakpoint(fl.Items[i].Caption, 1,bptAccess)
if ((not ckAccess) and (jsct > 0 and maincount>0 )) then
lb3.caption = fl.Items[i].Caption..'__'..jsct
jsct = jsct - 1
elseif (ckAccess == true and maincount>0 ) then --here is Filter
debug_removeBreakpoint(fl.Items[i].Caption)
i = i + 1
lb3.caption = fl.Items[i].Caption..'__'..jsct
debug_setBreakpoint(fl.Items[i].Caption, 1,bptAccess)
jsct = 3
maincount = maincount - 1
lb2.caption='Finish:'..i
elseif (jsct == 0 and maincount>0) then
fl.Items[i].Selected = true --main work
debug_removeBreakpoint(fl.Items[i].Caption)
i = i + 1
lb3.caption = fl.Items[i].Caption..'__'..jsct
debug_setBreakpoint(fl.Items[i].Caption, 1,bptAccess)
jsct = 3
maincount = maincount - 1
lb2.caption='Finish:'..i
else
lb3.caption='end'
cdjs.destroy()
end
end
cdjs.interval = 1000
cdjs.OnTimer = countdown
|
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Fri Sep 30, 2022 7:43 am Post subject: |
|
|
Instead of debug_continueFromBreakpoint in onBreakpoint handlers make it return a value that's not 0.
e.g:
Code: |
function debugger_onBreakpoint()
ckAccess=true
return 1
end
|
besides that check your script logic. Add a few prints here and there
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
etioplmld Advanced Cheater Reputation: 0
Joined: 09 Feb 2021 Posts: 74
|
|
Back to top |
|
|
|