def find_pid(dbg, name): namel = name.lower() found_target = False for (pid, proc_name) in dbg.enumerate_processes(): if proc_name.lower() == namel: return pid return -1 #and a simple use example: dbg = pydbg() pid = find_pid(dbg, "notepad.exe") if pid!=-1: print ("Attaching to %d") % (pid) dbg.attach(pid) else: error("process not found.")
// return the next empty Mark slot for use with MarkPosition static GetMarkedNext() { auto slot; slot = 1; //loop until we find an empty slot while( -1 != GetMarkedPos(slot) ) {slot++;} return slot; }
for ( i=1; i <= MAX_MARK_SLOT; i++ )
i < MAX_MARK_SLOT
push 20019h ; samDesired xor esi, esi push esi ; ulOptions push offset aClsidAdb880a6D ; lpSubKey push 80000000h ; hKey call ds:RegOpenKeyExA
There are 31,328 total registered users.
[+] expand