Skip to content

Instantly share code, notes, and snippets.

@toolboc
Created August 29, 2017 16:18
Show Gist options
  • Select an option

  • Save toolboc/6c9c3432f39d9d777550de278704f63c to your computer and use it in GitHub Desktop.

Select an option

Save toolboc/6c9c3432f39d9d777550de278704f63c to your computer and use it in GitHub Desktop.
aka.ms url finder
#!/bin/bash
cat /dev/null > output.txt
for x in {a..z}
do
for y in {a..z}
do
echo -n aka.ms/$x$y, >> output.txt
curl aka.ms/$x$y | grep "href=" | cut -d'"' -f2 >> output.txt
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment