Last active
September 30, 2021 06:54
-
-
Save 709924470/2e44d0fd629e68f8c8a0348b99224749 to your computer and use it in GitHub Desktop.
x64dbgpy interactive shell
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
# @LICENSE: CC-BY 4.0 By @709924470 | |
# This simple script creates prompts for you to enter python commands, and will display results in log window | |
# Tested with x64dbg + x64dbgpy + Python 2.7.13 | |
inp = None | |
Gui = pluginsdk.gui | |
import code | |
shell = code.InteractiveConsole(locals=globals()) | |
while inp not in ["exit()"]: | |
inp = Gui.InputLine("Command") | |
if not inp: | |
shell.push("exit()") | |
break | |
print '>>>', inp | |
rl = shell.push(inp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment