Add event handler for '5' key to trigger exploit

pull/4/head
David Buchanan 2021-05-13 17:09:07 +01:00
rodzic 73fa69e2e4
commit b1ec45786f
2 zmienionych plików z 8 dodań i 1 usunięć

Wyświetl plik

@ -3,7 +3,6 @@
<head>
<title>RootMyTV - Stage 1</title>
<meta name="viewport" content="width=1280">
<link rel="stylesheet" href="common.css" />
</head>
@ -287,6 +286,13 @@ window.requestAnimationFrame(animate_tick);
var target = window.location.protocol === 'file:' ? prompt('Enter IP address of Your TV') : 'localhost';
bootstrap(target, new URL('stage2.html', ORIGIN_URL).href);
}
// listen for "5" key to be pressed
document.addEventListener("keydown", event => {
if (event.keyCode === 53) {
begin_exploit();
}
});
</script>
</body>

Wyświetl plik

@ -16,6 +16,7 @@
<pre id="log"></pre>
</article>
</section>
<hr>
<script src="webOSTV.js"></script>
<script>
function log(str) {