HyperDbg Documentation
HyperDbg
Download
Source code
Blog
Search…
HyperDbg
Getting Started
Quick Start
FAQ
Build & Install
Attach to HyperDbg
Using HyperDbg
Prerequisites
User-mode Debugging
Kernel-mode Debugging
Commands
Debugging Commands
Meta Commands
.help (show the help of commands)
.debug (prepare and connect to debugger)
.connect (connect to a session)
.disconnect (disconnect from a session)
.listen (listen on a port and wait for the debugger to connect)
.status (show the debugger status)
.start (start a new process)
.restart (restart the process)
.attach (attach to a process)
.detach (detach from the process)
.switch (show the list and switch between active debugging processes)
.kill (terminate the process)
.process, .process2 (show the current process and switch to another process)
.thread, .thread2 (show the current thread and switch to another thread)
.formats (show number formats)
.script (run batch script commands)
.sympath (set the symbol server)
.sym (load pdb symbols)
.pe (parse PE file)
.logopen (open log file)
.logclose (close log file)
.cls (clear the screen)
Extension Commands
Scripting Language
Tips & Tricks
Considerations
Nested-Virtualization Environments
Misc
Contribution
Style Guide
Logo & Artworks
Design
Features
Debugger Internals
Script Engine
Links
Twitter
YouTube
Doxygen
Contribution
Powered By
GitBook
.script (run batch script commands)
Description of the '.script' command in HyperDbg.
Command
.script
Syntax
.script [FilePath (string)] [Args (string)]
Description
Runs a batch file of HyperDbg commands (each command in one line). For more information, please take a look at
Debugger Script
.
Parameters
[FilePath (string)]
The file path of commands.
[Args (string)]
Arguments to the script.
Examples
The following command runs a batch file located at
c:\HyperDbg Batch Files\ApiHook.ds
.
1
HyperDbg> .script c:\HyperDbg Batch Files\ApiHook.ds
Copied!
IOCTL
None
Remarks
1.
Each line of your file should contain only and only one command.
In HyperDbg's batch scripts '
#
' is used as the
comment character
. However, in the script engine, it uses a C-like
commenting style
.
Requirements
None
Related
None
Previous
.formats (show number formats)
Next
.sympath (set the symbol server)
Last modified
29d ago
Copy link
Edit on GitHub
Contents
Command
Syntax
Description
Parameters
Examples
IOCTL
Remarks
Requirements
Related