forked from BrianBTB/memtools_vita
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (34 loc) · 780 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<html>
<body>
<script src="inc/utils.js"></script>
<script src="inc/jquery.min.js"></script>
<script src="inc/sploit.js"></script>
<script src="inc/shell.js"></script>
<script src="inc/resolve.js"></script>
<script type="text/javascript">
// global vars
var _gc, _cnt = 0;
/*
Main
*/
window.onload = function() {
try{
var found = 0;
// Try 4 times to initialize, if it doesn't work exit
for(var i = 0; i < 4; i++){
var aspace = initMemoryHole();
if(aspace != -1){ found = 1; break};
}
if(found == 0){
logdbg("Initialization failed");
return;
}
shell(aspace);
}catch(e){
logdbg("MainError: " + e);
}
}
</script>
<div id="log"></div>
</body>
</html>