Created
April 12, 2017 23:06
-
-
Save hn3000/c63aee600a03fbb9d7b5019716e5cb46 to your computer and use it in GitHub Desktop.
real simplistic SAML request decoder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
var { Buffer } = require('buffer'); | |
var zlib = require('zlib'); | |
var param = process.argv[2]; | |
var raw = Buffer.from(decodeURIComponent(param), 'base64'); | |
var decoded = zlib.inflateRawSync(raw); | |
console.log(decoded.toString()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment