Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

__breakpoints dict becomes empty after the breakpoint hits #26

Open
maverick9931 opened this issue Feb 19, 2018 · 1 comment
Open

__breakpoints dict becomes empty after the breakpoint hits #26

maverick9931 opened this issue Feb 19, 2018 · 1 comment

Comments

@maverick9931
Copy link

maverick9931 commented Feb 19, 2018

#error in while Call_back

i modified the _breakpoints.py class's add( ) to see what was happening

def add(self, address, callback, bp_type=NORMAL, hw_type=EXECUTE):
if bp_type == self.BP_NORMAL:
SetBreakpoint(address)
elif bp_type == self.BP_HARDWARE:
SetHardwareBreakpoint(address, hw_type)
self.__breakpoints[address]['callback'] = callback
self.__breakpoints[address]['type'] = bp_type
print self.__breakpoints[address] #modification to see whether the breakpoint was added at the
specific address

#also i modified the __breakpoint_function

def __breakpoint_function(self, **kwargs):
address = kwargs['addr']
print self.__breakpoints[address] #modification to see whether the breakpoint exits after
if address in self.__breakpoints:
if not (kwargs['enabled'] and kwargs['active']):
return
self.__breakpoints[address]'callback'

#when i run the program below i get the below error
{'callback': <function call_back at 0x056B7E70>, 'type': 1} #results of print from add()
{} #results of print from __breakpoint_function
[PYTHON] Could not use breakpoint function.
Traceback (most recent call last):
File "C:\tools\SNAPSH~1\release\x32\plugins\x64dbgpy\x64dbgpy__breakpoints.py", line 39, in __breakpoint_function
self.__breakpoints[address]'callback'
KeyError: 'callback'

Could You Please tell me why is this happening

@Nukem9
Copy link
Member

Nukem9 commented Feb 19, 2018

@istanfield09
@DeliciousLunch55
@ansonsiva
@Dagobert-
@TheDragon
re: everyone else that gets this message

x64dbg/x64dbg#1863 (comment)
Everybody who is still subscribed to this and doesn't know why: change your password. You will not see anything in your audit log, but your credentials were used in a Github API call to subscribe to this repo.

Will unlock this later.

@x64dbg x64dbg locked as off-topic and limited conversation to collaborators Feb 19, 2018
@x64dbg x64dbg deleted a comment from istanfield09 Feb 21, 2018
@x64dbg x64dbg deleted a comment from TheFlemoid Feb 21, 2018
@x64dbg x64dbg deleted a comment from istanfield09 Feb 21, 2018
@x64dbg x64dbg deleted a comment from ansonsiva Feb 21, 2018
@x64dbg x64dbg deleted a comment from Dagobert- Feb 21, 2018
@x64dbg x64dbg deleted a comment from BlueBassist Feb 21, 2018
@x64dbg x64dbg unlocked this conversation Feb 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants