Skip to content

Instantly share code, notes, and snippets.

@M1suzu
Created December 20, 2018 15:23
Show Gist options
  • Save M1suzu/6e4a65c235da7e3982b2000b46f806cc to your computer and use it in GitHub Desktop.
Save M1suzu/6e4a65c235da7e3982b2000b46f806cc to your computer and use it in GitHub Desktop.
Useful windbg commands | break into debugger when the process opens or creates a file with a .txt file extension. | https://shellbombs.github.io/windbg/
bp kernel32!CreateFileW "r $t0 = poi(@esp + 4); as /mu ${/v:filename} @$t0; .block {.if ($spat(\"${filename} \", \"*.txt \")) {kb;} .else {gc;}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment