kopia lustrzana https://github.com/RootMyTV/RootMyTV.github.io
Add event handler for '5' key to trigger exploit
rodzic
73fa69e2e4
commit
b1ec45786f
|
@ -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>
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<pre id="log"></pre>
|
||||
</article>
|
||||
</section>
|
||||
<hr>
|
||||
<script src="webOSTV.js"></script>
|
||||
<script>
|
||||
function log(str) {
|
||||
|
|
Ładowanie…
Reference in New Issue