Skip to content

Instantly share code, notes, and snippets.

@cfalta
Created September 23, 2021 18:25
Show Gist options
  • Save cfalta/4162ac4d83800fb0e4f50c1251dd03f4 to your computer and use it in GitHub Desktop.
Save cfalta/4162ac4d83800fb0e4f50c1251dd03f4 to your computer and use it in GitHub Desktop.
RPC filter to block petitpotam and spoolsample/printerbug. usage: netsh -f rpcfilter.txt
rpc
filter
add rule layer=um actiontype=block
add condition field=if_uuid matchtype=equal data=c681d488-d850-11d0-8c52-00c04fd90f7e
add filter
add rule layer=um actiontype=block
add condition field=if_uuid matchtype=equal data=df1941c5-fe89-4e79-bf10-463657acf44d
add filter
add rule layer=um actiontype=block
add condition field=if_uuid matchtype=equal data=12345678-1234-ABCD-EF00-0123456789AB
add filter
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment