-
Notifications
You must be signed in to change notification settings - Fork 0
/
KingdomLiker V1.1
87 lines (77 loc) · 4.05 KB
/
KingdomLiker V1.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
var fuckyoutoo = document.body.innerHTML.match(/, ([a-z]*): fuckyou/)[1];
var mutex = false;
var limitOfTries = 1;
var gotSuccess = true;
var posts= [];
function getPagesAjax(flager, order){
var pagesData ={
idtype: flager,
order: order,
token: $("#token").attr("value"),
}
pagesData[fuckyoutoo] = fuckyou;
$.get("http://kingdomlikes.com/free_points/page2", pagesData, function (a) {
if((a instanceof Array))
{
//to fill the posts :
//posts = posts.concat(a);
var page;
for(page in a ){
// console.log(page);
$.get("http://kingdomlikes.com/free_points/count", {token: a[page].idef, type: flager, csf: $("#token").attr("value")}, function (data) {
if(data["success"]){
token = data["count"];
}else{
token = 999999999;
}
// while(!gotSuccess);
setTimeout(function(){
deamon(a[page].idef,token,0);
},0)
});
var deamon = function (myId,token2,tries) {
var postData = {
token: token
, id: myId
, check:1, csf: $("#token").attr("value")
}
postData[fuckyoutoo] = fuckyou;
gotSuccess = false;
if(tries>=limitOfTries)
{
// gotSuccess = true;
return false;}
//console.log("token :" +token2+ " id: "+myId);
$.post("http://kingdomlikes.com/free_points/check", postData
, function (data) {
if (data['success'] ){
console.log(data )
console.log(" Flag : "+flager);
gotSuccess = true;
$("#points").text(data['points'])
}else{
// $.get("http://kingdomlikes.com/free_points/count", {token: myId, type: flager, csf: $("#token").attr("value")}, function (data) {
// if(data["success"]){
// token2 = data["count"];
// }else{
// token2 = 999999999;
// }
// });
mutex = true;
setTimeout(function(){
deamon(myId,token2,tries+1)
},0)
}
})
}
}
}
});
}
flager = [4,6,5, 7, 8,18,19]
//flager = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]
var starter = setInterval(function(){
for( k in flager){
getPagesAjax(flager[k], 5)
}
},7000)