Skip to content

Instantly share code, notes, and snippets.

@v-p-b
v-p-b / write_windbg_extension.prompt.txt
Created October 19, 2026 17:09
WinDbgMCP write_extension prompt
Description: A prompt to aid in the development of WinDbg JavaScript extensions.
=== role: assistant ===
You are an expert in debugging, using WinDbg, and writing JavaScript. You should author an extension by using the new_script, set_script_content, and execute_script tools.
After creating the extension and setting its contents you should ensure that there are no errors by executing the script. If there are any errors, you should fix them by changing the script content
with the set_script_content tool and reexecuting the script. The extension should be written in JavaScript and should follow a number of rules:
- The extension should always have an initializeScript method which returns an array of registration objects.
- One of the registration objects returned from initializeScript should be a host.apiVersionSupport record passing the major and minor version. Such should be at least 1 and 10 respectively.
- Visualizers or extensions for types defined in the target should always be registered via a
@v-p-b
v-p-b / raindrop2readeck.py
Created May 31, 2025 09:58
Raindrop to Readeck converter
import csv
import json
import sys
with open(sys.argv[1], "r") as csvfile:
reader=csv.DictReader(csvfile)
with open("readeck.csv","w") as outfile: # You may want to make the output file name dynamic
writer = csv.DictWriter(outfile, fieldnames=["url","title","created","state","labels"])
writer.writeheader()
for l in reader:
@v-p-b
v-p-b / ghidra_docs_11.3-11.3.2.diff.txt
Created April 16, 2025 08:08
Ghidra documentation changes 11.3 vs 11.3.2
Files /var/www/ghidra_docs/Features/BSim/BSim/CommandLineReference.html and /tmp/ghidra_docs/Features/BSim/BSim/CommandLineReference.html differ
Files /var/www/ghidra_docs/GhidraDocs/InstallationGuide.md and /tmp/ghidra_docs/GhidraDocs/InstallationGuide.md differ
Files /var/www/ghidra_docs/GHIDRA_VERSION and /tmp/ghidra_docs/GHIDRA_VERSION differ
Files /var/www/ghidra_docs/javadoc/allclasses-index.html and /tmp/ghidra_docs/javadoc/allclasses-index.html differ
Files /var/www/ghidra_docs/javadoc/allpackages-index.html and /tmp/ghidra_docs/javadoc/allpackages-index.html differ
Files /var/www/ghidra_docs/javadoc/constant-values.html and /tmp/ghidra_docs/javadoc/constant-values.html differ
Files /var/www/ghidra_docs/javadoc/deprecated-list.html and /tmp/ghidra_docs/javadoc/deprecated-list.html differ
Files /var/www/ghidra_docs/javadoc/docking/action/ActionContextProvider.html and /tmp/ghidra_docs/javadoc/docking/action/ActionContextProvider.html differ
Files /var/www/ghidra_docs/javadoc/docking/DialogComponentProv
@v-p-b
v-p-b / clfs_march.sys-clfs_apr.sys.ghidriff.md
Last active April 9, 2025 11:19
CLFS.sys 10.0.20348.3328 vs. 10.0.20348.3453
@v-p-b
v-p-b / dmbdbgdmp.py
Created March 26, 2025 16:10
Dumb Debug Dump - Create Map Debug Files from Ghidra
# Dumb Debug Dump
# @author buherator
# @category _NEW_
# @keybinding
# @menupath
# @toolbar
# @runtime Jython
from docking.widgets.filechooser import GhidraFileChooser, GhidraFileChooserMode
@v-p-b
v-p-b / afd.sys-afd.sys.ghidriff.md
Last active February 12, 2025 13:04
afd.sys.x64.10.0.26100.3037 vs afd.sys.x64.10.0.26100.3194
@v-p-b
v-p-b / RunGhidra.xml
Created February 9, 2025 18:00
Ghidra Run Configuration for IntelliJ IDEA
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="RunGhidra" type="Application" factoryName="Application">
<envs>
<!-- TODO Set the `GHIDRA_INSTALL_DIR` Path Variable under `File/Settings/Path Variables` -->
<env name="GHIDRA_INSTALL_DIR" value="$GHIDRA_INSTALL_DIR$" />
</envs>
<option name="MAIN_CLASS_NAME" value="ghidra.Ghidra" />
<module name="YourProject.main" /> <!-- TODO Update project/module name -->
<option name="PROGRAM_PARAMETERS" value="ghidra.GhidraRun" />
<option name="VM_PARAMETERS" value="-Dghidra.external.modules=$PROJECT_DIR$ -Djava.system.class.loader=ghidra.GhidraClassLoader -Dfile.encoding=UTF8 -Duser.country=US -Duser.language=en -Duser.variant= -Dsun.java2d.opengl=false -Djdk.tls.client.protocols=TLSv1.2,TLSv1.3 -Dcpu.core.limit= -Dcpu.core.override= -Dfont.size.override= -Dpython.console.encoding=UTF-8 -Xshare:off -Dsun.java2d.pmoffscreen=false -Dsun.java2d.xrender=true -Dsun.java2d.uiScale=1 -Dawt.useSystemAAFon
@v-p-b
v-p-b / ghidra_docs_11.2.1-11.3.diff.txt
Last active February 6, 2025 21:51
ghidra docs differences between 11.2.1 and 11.3 (/var/www is the latest)
Files /tmp/ghidra_docs/Debugger/DebuggerBreakpointMarkerPlugin/DebuggerBreakpointMarkerPlugin.html and /var/www/ghidra_docs/Debugger/DebuggerBreakpointMarkerPlugin/DebuggerBreakpointMarkerPlugin.html differ
Files /tmp/ghidra_docs/Debugger/DebuggerBreakpointMarkerPlugin/images/DebuggerBreakpointMarkerPlugin.png and /var/www/ghidra_docs/Debugger/DebuggerBreakpointMarkerPlugin/images/DebuggerBreakpointMarkerPlugin.png differ
Files /tmp/ghidra_docs/Debugger/DebuggerBreakpointMarkerPlugin/images/DebuggerFunctionGraphBreakpointMargin.png and /var/www/ghidra_docs/Debugger/DebuggerBreakpointMarkerPlugin/images/DebuggerFunctionGraphBreakpointMargin.png differ
Only in /tmp/ghidra_docs/Debugger: DebuggerInterpreterPlugin
Files /tmp/ghidra_docs/Debugger/DebuggerListingPlugin/DebuggerListingPlugin.html and /var/www/ghidra_docs/Debugger/DebuggerListingPlugin/DebuggerListingPlugin.html differ
Only in /tmp/ghidra_docs/Debugger: DebuggerModelServicePlugin
Only in /tmp/ghidra_docs/Debugger: DebuggerObjectsPlugin
Files /tmp/ghi
@v-p-b
v-p-b / mpengine.dll-mpengine.dll.ghidriff.md
Created January 27, 2025 07:05
ghidriff - mpengine.dll - VersionTrackingDiff - 1.1.24030.4 vs 1.1.24060.5
@v-p-b
v-p-b / mpengine.dll-mpengine.dll.ghidriff.md
Created January 26, 2025 15:21
ghidriff - mpengine.dll - SimpleDiff - 1.1.24030.4 vs 1.1.24060.5