This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NetAcademia - Petya Zsiros - p2.txt | |
GPA "IsDebuggerPresent", "Kernel32.dll" | |
mov addr, $RESULT | |
log addr | |
asm addr,"XOR EAX,EAX" | |
add addr, $RESULT | |
asm addr,"RETN" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NetAcademia - Petya Zsiros - p1.py | |
import immlib | |
def main(args): | |
imm = immlib.Debugger() | |
addr = imm.getAddress("kernel32.IsDebuggerPresent") | |
if (addr <= 0): | |
imm.log("kernel32.IsDebuggerPresent CAN NOT BE FOUND") | |
return "ERROR" | |
imm.log("Patching in progress...") | |
imm.log("addr: 0x%08x" % addr) |
NewerOlder