Last active
March 14, 2020 09:51
-
-
Save securITymania/bb6eeda9fe850237ae5ba36e7f16be1b to your computer and use it in GitHub Desktop.
This file contains 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
var s = ' !"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~'; | |
for (var i = 0; i < s.length; i++) { | |
char = s.charAt(i); | |
string = 'https://evil.com.'+char+'.example.com'; | |
try { | |
const url = new URL(string);console.log("[+] " + string + " -> " + url.hostname); | |
} catch { | |
console.log("[!] " + string + " -> ERROR"); | |
} | |
} | |
//source bugs.xdavidhu.me |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment