def attach (self, pid): def bp_del (self, address): def bp_del_mem (self, address): def bp_is_ours (self, address_to_check): def bp_is_ours_mem (self, address_to_check): def bp_set (self, address, description="", restore=True): def bp_set_mem (self, address, size, description=""): def cleanup (self): def debug_event_loop (self): def detach (self): def disasm (self, address): def dump_context (self, context=None): def enumerate_threads (self): def exception_handler_breakpoint (self, dbg, context): def exception_handler_guard_page (self, dbg, context): def exception_handler_single_step (self, dbg, context): def func_resolve (self, dll, function): def get_thread_context (self, thread_handle, thread_id=0): def hex_dump (self, data): def hide_debugger (self): def is_address_on_stack (self, address, context=None): def is_printable_ascii (self, data): def is_printable_unicode (self, data): def little_endian (self, dword): def load (self, path_to_file, command_line=0): def process_restore (self): def process_snapshot (self): def read_process_memory (self, address, length): def resume_thread (self, thread_id): def set_callback (self, exception_code, callback_func): def set_register (self, register, value): def set_thread_context (self, thread_handle, context, thread_id=0): def single_step (self, enable): def smart_dereference (self, address): def stack_range (self, context=None): def suspend_thread (self, thread_id): def terminate_process (self, exit_code=0): def virtual_protect (self, base_address, size, protection): def virtual_query (self, address): def write_process_memory (self, address, data, data_length=0):
pydbg = pydbg() pydbg.set_callback(EXCEPTION_BREAKPOINT, handler_breakpoint) pydbg.set_callback(EXCEPTION_ACCESS_VIOLATION, handler_access_violation) try: pydbg.attach(pid) winsock_recv = pydbg.func_resolve("ws2_32", "recv") winsock_recvfrom = pydbg.func_resolve("ws2_32", "recvfrom") pydbg.bp_set(winsock_recv) pydbg.bp_set(winsock_recvfrom) pydbg.debug_event_loop() except pdx, x: sys.stderr.write(x.__str__() + "\n")
There are 31,320 total registered users.
[+] expand