Last active
April 30, 2016 18:36
-
-
Save bitnetwork/7fb5c8e8e83a8e443f33603a2e1199ee to your computer and use it in GitHub Desktop.
A hackerexperience.com hack dependency html file for the userscript. It may be listed here: //greasyfork.org/en/scripts/by-site/hackerexperience.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name='viewport' content='width=device-width'> | |
<style> | |
body { | |
height: 100%; | |
width: 100%; | |
} | |
#holder { | |
position: fixed; | |
left: 0px; | |
top: 0px; | |
width: 100%; | |
height: 100%; | |
margin: 0px; | |
border: 3px solid black; | |
color: #33FF33; | |
font-family: monospace, sans-serif; | |
font-size: 15px; | |
background-color: black; | |
} | |
#holder > div { | |
margin: 5px; | |
} | |
#log_holder_conx, #log_holder_your { | |
margin: 5px; | |
width: calc(100% - 20px); | |
height: 100%; | |
resize: none; | |
background-color: #222; | |
color: #33FF33; | |
border: 1px solid #555; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='holder'> | |
<div id='hold_main' style='display: block;'> | |
<h2 style='font-size: 20px; text-align: center;'>Hacker Experience Hack Tool</h2><hr><b>Capture logs from... </b><a href='javascript: void(0);' onclick='log_conx();'>connected IP</a> or <a href='javascript: void(0);' onclick='log_your();'>your IP</a> | |
</div> | |
<div id='hold_conx_ip' style='display: none;'> | |
<h2 style='font-size: 20px; text-align: center;'><a href='javascript: void(0);' onclick='main_dialog();'><</a> Connected IP</h2><hr><textarea id='log_holder_conx'></textarea> | |
</div> | |
<div id='hold_your_ip' style='display: none;'> | |
<h2 style='font-size: 20px; text-align: center;'><a href='javascript: void(0);' onclick='main_dialog();'><</a> Your IP</h2><hr><textarea id='log_holder_your'></textarea> | |
</div> | |
</div> | |
<script> | |
getLog = function(which, func) { | |
var request = new XMLHttpRequest(); | |
request.onreadystatechange = function() { | |
if (request.readyState === 4 && request.status === 200) { | |
var log = request.responseText; | |
log = log.substring(log.search("<textarea class=\"logarea\" rows=\"15\" name=\"log\" spellcheck=FALSE>")); | |
log = log.substring(64, log.search("</textarea>")); | |
if (log.substring(1, 16) !== "<!DOCTYPE html>") {func(log);} | |
} | |
}; | |
if (which === 0) { | |
request.open("GET", "/internet?view=logs&random=" + Math.random(), true); | |
} else if (which === 1) { | |
request.open("GET", "/log?random=" + Math.random(), true); | |
} | |
request.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); | |
request.send(); | |
}; | |
function closeAll() { | |
var list = document.getElementById("holder").children; | |
for (var i=0; i<list.length; i++) { | |
list[i].style.display = "none"; | |
} | |
} | |
function main_dialog() { | |
closeAll(); | |
document.getElementById("hold_main").style.display = "block"; | |
}; | |
function log_conx() { | |
closeAll(); | |
document.getElementById("hold_conx_ip").style.display = "block"; | |
}; | |
function log_your() { | |
closeAll(); | |
document.getElementById("hold_your_ip").style.display = "block"; | |
}; | |
function onload() { | |
main_dialog(); | |
var conx_prelogs = ""; | |
var your_prelogs = ""; | |
setInterval(function() { | |
try { | |
getLog(0, function(logs) {if (logs !== conx_prelogs) {conx_prelogs = logs; document.getElementById("log_holder_conx").value += "\n" + logs;}}); | |
} catch(error) {} | |
try { | |
getLog(1, function(logs) {if (logs !== your_prelogs) {your_prelogs = logs; document.getElementById("log_holder_your").value += "\n" + logs;}}); | |
} catch(error) {} | |
document.getElementById("log_holder_your").style.height = (innerHeight - 95) + "px"; | |
document.getElementById("log_holder_conx").style.height = (innerHeight - 95) + "px"; | |
}, 1500); | |
} | |
onload(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment