Last active
October 5, 2024 22:58
-
-
Save LemonSec/bbfa9390b05a6d61926e18cbd0e028d7 to your computer and use it in GitHub Desktop.
Window opener: Use when eyewitness won't work and you don't want to manually type in every URL. Save as a .html file and open in your browser.
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Open Windows</title> | |
| <script> | |
| function openWindow(){ | |
| var x = document.getElementById('a').value.split('\n'); | |
| for (var i = 0; i < x.length; i++) { | |
| if (x[i].indexOf('.') > 0) { | |
| if (x[i].indexOf('://') < 0) { | |
| window.open('http://'+x[i]); | |
| } else { | |
| window.open(x[i]); | |
| } | |
| } | |
| } | |
| } | |
| function clearText() { | |
| document.getElementById('a').value = ''; | |
| } | |
| </script> | |
| <style> | |
| html, body { | |
| height : 99%; | |
| width : 99%; | |
| } | |
| textarea { | |
| height : 80%; | |
| width : 90%; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <textarea id="a"></textarea> | |
| <br> | |
| <input type="button" value="Open Windows" onClick="openWindow()"> | |
| <input type="button" value="Clear" onClick="clearText()"> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment