Skip to content

Instantly share code, notes, and snippets.

@LemonSec
Last active October 5, 2024 22:58
Show Gist options
  • Select an option

  • Save LemonSec/bbfa9390b05a6d61926e18cbd0e028d7 to your computer and use it in GitHub Desktop.

Select an option

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.
<!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