Skip to content

Instantly share code, notes, and snippets.

View jbrunner's full-sized avatar

Joshua Brunner jbrunner

  • Bedag Informatik AG
  • Switzerland
View GitHub Profile
@jbrunner
jbrunner / decrypt_saml_response.py
Last active November 28, 2024 14:04 — forked from orimanabu/decrypt_saml_response.py
SAML Response Decrypter
#!/usr/bin/env python
# Prereq: PyCryptodome
# Validation: https://www.samltool.com/decrypt.php
# Usage: ./decrypt_saml_response.py --key PRIVATE_KEY --pretty-print RESPONSE_XML
import sys
import optparse
import base64
from lxml import etree