Skip to content

Instantly share code, notes, and snippets.

@Barrixar
Barrixar / tasks_patch.json
Last active October 13, 2025 12:21
Per-Extension tasks.json fix for "Error: Invalid problemMatcher reference: $esbuild-watch"
"problemMatchers": [
{
"name": "esbuild",
"label": "esbuild problem matcher",
"applyTo": "allDocuments",
"source": "esbuild",
"fileLocation": "relative",
"pattern": [
{
"regexp": "^\\S \\[([A-Z]+)\\] (.+)$",
@Barrixar
Barrixar / WTHelper_WinTrust_Deprecation.txt
Last active September 8, 2025 18:50
Summarizing the state of WTHelper functions in Windows
# Microsoft's warnings on WTHelper functions in WinTrust API
Microsoft has placed **identical deprecation warnings** on all six WTHelper functions in the WinTrust API, strongly discouraging their use in modern applications. These warnings signal Microsoft's clear intent to phase out these legacy functions in favor of more robust, secure alternatives.
## The official warning header
All six WTHelper functions (WTHelperCertCheckValidSignature, WTHelperCertIsSelfSigned, WTHelperGetProvCertFromChain, WTHelperGetProvPrivateDataFromChain, WTHelperGetProvSignerFromChain, and WTHelperProvDataFromStateData) display this exact warning at the top of their documentation pages:
> [The [FUNCTION_NAME] function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. For certificate verification, use the CertGetCertificateChain and CertVerifyCertificateChainPolicy functions. For Microsoft Authenticode technology signature verification, use
@Barrixar
Barrixar / winverify.go
Last active September 19, 2025 21:36 — forked from heaths/winverify.go
Check Authenticode signature on Windows with Go
//go:build windows
// Credit is due to "heaths" for his part in this program and inspiration, see: https://gist.github.com/heaths/ebbca7d956f0b42bbb33193f0837e272?permalink_comment_id=5766639#gistcomment-5766639
// This program implements an advanced Windows digital signature verification tool.
// It leverages Windows WinTrust API functions to validate Authenticode signatures on executable files (.exe, .dll, .sys, etc.)
// with support for both standard verification and extended verification modes. The tool provides detailed
// signature information including certificate chains, timestamps, and signature algorithms.
//
// IMPORTANT SECURITY NOTES: