Skip to content

Instantly share code, notes, and snippets.

@nathan-cruz77
Created May 15, 2019 12:43
Show Gist options
  • Save nathan-cruz77/1045ccb1912a5892567540229b2873aa to your computer and use it in GitHub Desktop.
Save nathan-cruz77/1045ccb1912a5892567540229b2873aa to your computer and use it in GitHub Desktop.
Decode Vanhack's tracking system url (so I can actually use their email links)
import sys
import base64
from urllib.parse import urlparse
from urllib.parse import parse_qs
url = urlparse(sys.argv[-1])
query = parse_qs(url.query)
encoded_url = query['url'][0].encode('utf8')
print(base64.decodebytes(encoded_url))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment