kopia lustrzana https://github.com/RootMyTV/RootMyTV.github.io
exploit: support saving of exploit page to disk
rodzic
d8ccc66d6b
commit
271f73db13
|
@ -20,7 +20,9 @@
|
|||
</section>
|
||||
|
||||
<script>
|
||||
window.ORIGIN_URL = window.location.protocol === 'data:' ? '__START_ORIGIN__' : window.location.href;
|
||||
window.ORIGIN_URL =
|
||||
window.location.protocol === 'data:' ? '__START_ORIGIN__' :
|
||||
window.location.protocol === 'file:' ? 'https://rootmy.tv' : window.location.href;
|
||||
|
||||
window.onerror = function (err) {
|
||||
console.error(err);
|
||||
|
@ -171,9 +173,11 @@
|
|||
log("An unexpected error occured: " + err.toString());
|
||||
}
|
||||
}
|
||||
|
||||
document.querySelector('#exploit').addEventListener('click', function () {
|
||||
bootstrap('localhost', new URL('stage2.html', ORIGIN_URL).href);
|
||||
// Allow people to download the exploit page to manually set target IP,
|
||||
// in case direct on-tv deployment fails for some reason.
|
||||
var target = window.location.protocol === 'file:' ? prompt('Enter IP address of Your TV') : 'localhost';
|
||||
bootstrap(target, new URL('stage2.html', ORIGIN_URL).href);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
|
Ładowanie…
Reference in New Issue