Created
May 15, 2019 12:43
-
-
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)
This file contains hidden or 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
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