I have coded these two bots for a bandias player, one is a bot that execute crimes and works for you and the other an autoattacker
Works and crimes bot
Code:
/*
* Bandias bot script by Sam
* DO NOT VISIT OTHERS BANDIAS PAGES WHILE USING IT
* AND USE IT IN PAGES LIKE HELP OR TERMS AND CONDITIONS
*/
work = 20; //work type (find it on checkbox value)
crime = 1001; //crime type (find it on checkbox value)
jail_time = 1; //possible minutes in jail
use_hospital = true; //use the hospital after a number of crimes
crimes_before_hospital = 10; //crimes before use the hospital, if you use it
pages = {
"cap":"/captcha/",
"capcheck":"/captcha/check.php",
"work":"index.php?a=mod_crim_work&f=dowork",
"crime":"index.php?a=mod_crim_crimes&f=docrime",
"fwheel":"index.php?a=mod_games_fortune&f=show_xml",
"hospital": "index.php?a=mod_loc_hospital&f=treat"
};
var cps;
var capcode;
var context;
var count=0;
function Go()
{
jQuery.get(pages["fwheel"]);
Work();
if(!use_hospital || count<crimes_before_hospital)
setTimeout("Crime()",10000);
else
{
setTimeout("Hospital()",10000);
count=0;
}
setTimeout("Go()",(jail_time*60000)+10000);
}
function loadrS(h)
{
var e = document.createElement("div");
e.innerHTML = h;
cps = e.getElementsByTagName("img");
var c = document.createElement("canvas");
context = c.getContext("2d");
}
function Work()
{
jQuery.get(pages["cap"],{form:"work_form"},function(html){
loadrS(html);
loadImg(0,SendWork);
});
}
function Crime()
{
jQuery.get(pages["cap"],{form:"crime_form"},function(html){
loadrS(html);
loadImg(0,SendCrime);
});
}
function Hospital()
{
jQuery.get(pages["cap"],{form:"hospital_form"},function(html)
{
loadrS(html);
loadImg(0,SendHospital);
})
}
function loadImg(i,callback)
{
if(i<4)
{
var img = new Image();
img.onload=function(){
context.drawImage(img,0,0);
var data = context.getImageData(2,2,1,1).data;
if(data[0]==153 && data[1]==153 && data[2]==153 && data[3]==255)
{
capcode=img.src.split("code=")[1];
}
loadImg(i+1,callback);
};
img.src=cps[i].src;
}
else
callback();
}
function SendHospital()
{
jQuery.get(pages["capcheck"],{code:capcode,form:"hospital_form"});
jQuery.post(pages["hospital"])
}
function SendWork()
{
jQuery.get(pages["capcheck"],{code:capcode,form:"work_form"});
jQuery.post(pages["work"],{sel:true,work:work});
}
function SendCrime()
{
jQuery.get(pages["capcheck"],{code:capcode,form:"crime_form"});
jQuery.post(pages["crime"],{sel:true,crime:crime});
count++;
}
Go();
Autoattacker bot
Code:
/*
* Bandias bot script by Sam
* DO NOT VISIT OTHERS BANDIAS PAGES WHILE USING IT
* AND USE IT IN PAGES LIKE HELP OR TERMS AND CONDITIONS
*/
toattack = [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15]; //users ids (unlimited)
pages = {
"cap":"/captcha/",
"capcheck":"/captcha/check.php",
"attack":"index.php?a=mod_prof_attack&attack="
};
var cps;
var capcode;
var context;
var curid=0;
var attimes=0;
function Attack()
{
GoAttack()
setTimeout("Attack()",16000);
}
function GoAttack()
{
jQuery.get(pages["cap"],{form:"attack_form"},function(html){
loadrS(html);
loadImg(0,SendAttack);
});
}
function SendAttack()
{
if(attimes==15)
{
attimes=0;
curid++;
}
if(curid==(toattack.length-1)) curid=0;
jQuery.get(pages["capcheck"],{code:capcode,form:"attack_form"});
jQuery.post(pages["attack"]+toattack[curid],{sel:true});
attimes++;
}
function loadrS(h)
{
var e = document.createElement("div");
e.innerHTML = h;
cps = e.getElementsByTagName("img");
var c = document.createElement("canvas");
context = c.getContext("2d");
}
function loadImg(i,callback)
{
if(i<4)
{
var img = new Image();
img.onload=function(){
context.drawImage(img,0,0);
var data = context.getImageData(2,2,1,1).data;
if(data[0]==153 && data[1]==153 && data[2]==153 && data[3]==255)
{
capcode=img.src.split("code=")[1];
}
loadImg(i+1,callback);
};
img.src=cps[i].src;
}
else
callback();
}
Attack();
How to use them: (Chrome guide)
1)Go in some page that do not refresh, as contact or terms and conditions
2)Right click and select inspect element
3)Go to the console tab and paste one of the scripts
4)Config your script as you prefer and send it
5)Enjoy! (Keep the webpage open, because it will be the bot, do not close it)