Running HyperDbg Script
Using command-line features
There are two ways to run batch-script like commands in HyperDbg.
First, we can save our command(s) in a file and then use the .script command, and the second way is to pass the --script argument to the hyperdbg-cli.exe.
In HyperDbg's batch scripts '#' is used as the comment character. However, in the script engine, it uses a C-like commenting style.
For example, let's assume that we can use .script command like this:
1
HyperDbg> .script c:\users\sina\desktop\script.txt
Copied!
The second case is when we want to run our script from the command-line directly; then you can run the hyperdbg-cli.exe like this :
1
Microsoft Windows [Version 10.0.18362.900]
2
(c) 2019 Microsoft Corporation. All rights reserved.
3
4
C:\Users\sina\Desktop\HyperDbg>hyperdbg-cli.exe --script c:\users\sina\desktop\script.txt
Copied!
With these two ways, we can automate our scripts in HyperDbg.
Last modified 3mo ago
Copy link
Edit on GitHub