Created
January 29, 2019 16:46
-
-
Save albertzsigovits/422920b4c82c6f0a1085946c6dbc29a4 to your computer and use it in GitHub Desktop.
Sample Immunity Debugger Python Plug-in Script
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) | |
patch = imm.assemble("XOR EAX,EAX \n RETN") | |
imm.writeMemory(addr, patch) | |
imm.log("Patching FINISHED...") | |
return "OK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment