Created
February 18, 2019 21:40
-
-
Save bahorn/1f956f21e339076b97b455a4f71e175a to your computer and use it in GitHub Desktop.
unmangling safelinks URLs so I can examine the phishing sites.
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 urllib2 | |
| url = sys.argv[1] | |
| res = urllib2.unquote(url.split('?url=')[1].split('&data')[0]) | |
| print(res) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment