Skip to content

Instantly share code, notes, and snippets.

@jhill-cmd
jhill-cmd / Unshorten_URLs.py
Created June 14, 2020 13:31
Unshorten_URLs
#!/usr/bin/python
#https://colin.guru/index.php?title=Unshorten_URLs
import requests, fileinput
import sys
def main(argv):
inputfile = ''
# ensure correct usage
if len(sys.argv) < 2:
print "Usage : " + sys.argv[0] + " <inputfile>"
#!/bin/bash
ADB="/home/mrenouf/bin/adb"
# We need root on the host to mess with networking
if [[ $(whoami) != "root" ]]; then
echo "You must be root to run this script!"
exit 1
fi;