Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const request = require('request');
- const naglowki = require('./naglowki.json');
- function czas(){
- var data = Date.now() / 1000;
- return Math.round(data*100)/100;
- }
- var token = 0;
- var ev = 0;
- function sendZap(a,b,callback){
- var options = {
- uri: "http://telawel.margonem.pl/engine?t="+a+"&aid=8840913",
- method: "POST",
- headers: naglowki
- }
- request(options, function (error, response, body){
- var seba = JSON.parse(body);
- console.log(seba);
- if(b==1337){
- token = seba.browser_token;
- }
- if (typeof callback === "function") {
- callback();
- }
- } );
- }
- sendZap("init&initlvl=1&clientTs="+czas()+"&mucka="+Math.random(),1337,()=>{
- sendZap("init&initlvl=2&mucka="+Math.random()+"&browser_token="+token,2,()=>{
- sendZap("init&initlvl=3&mucka="+Math.random()+"&browser_token="+token,2,()=>{
- sendZap("init&initlvl=4&mucka="+Math.random()+"&browser_token="+token,2,()=>{
- });
- });
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement