In the x64dbg manual is many scripting commands and other things, but nowhere in it is mentioned, how to launch a script.
So, my question is: How to launch a script in x64dbg?
Reverse Engineering Stack Exchange is a question and answer site for researchers and developers who explore the principles of a system through analysis of its structure, function, and operation. It only takes a minute to sign up.
Sign up to join this communityIn the x64dbg manual is many scripting commands and other things, but nowhere in it is mentioned, how to launch a script.
So, my question is: How to launch a script in x64dbg?
To launch a script, it has to be first loaded into x64dbg — you will see it in the Script tab:
Before loading a script, the content of this tab is empty:
You may load a script in any of the following ways:
Copy the content of your script into clipboard, then switch to the Script tab, and paste it with
Shift+V (NOT with Ctrl+V).
The same, but using the context menu (Load Script → Paste):
Switch to the Script
tab, Ctrl+O, then select your script file.
The same, but using the context menu (Load Script → Open...) — as in the point 2.
Use the scriptload
command with the path to your script file as an argument, for example
scriptload "c:\Users\User\My Scripts\somescript.txt"
Write it in the Command: box near the bottom left part of the x64dbg window and then press Enter:
After loading the script (with any of the previous methods), you will see it in the Script tab, and you may launch it with the Space bar, or by commands in the context menu: