Skip to content

Instantly share code, notes, and snippets.

@709924470
Last active September 30, 2021 06:54
Show Gist options
  • Save 709924470/2e44d0fd629e68f8c8a0348b99224749 to your computer and use it in GitHub Desktop.
Save 709924470/2e44d0fd629e68f8c8a0348b99224749 to your computer and use it in GitHub Desktop.
x64dbgpy interactive shell
# @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