Read More : 6 Months Bitdefender FREE
from A2S.in - Money Making Forum
public const string REGEX_PATTERN = @"<td width='80'>(?<ip>(.*?))<\/td><td>(?<country>(.*?)) <img(.*?)<\/td><td>(?<region>(.*?))<\/td><td>(?<city>(.*?))<\/td>";
public const string GEOLOCATION_PROVIDER = "http://ift.tt/1iD0GbX;;
private string[] GetGeolocation(string ip)
{
string[] returnVal = new string[3];
if (ip.StartsWith("192.168"))
{
returnVal[0] = returnVal[1] = returnVal[2] = "<lan>";
return returnVal;
}
InvokePostLogLine("geoloc", string.Format("Querying info of {0}", ip));
using (WebClient client = new WebClient())
{
client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
try
{
NameValueCollection coll = new NameValueCollection();
coll.Add("query", ip);
coll.Add("submit", "Query");
byte[] data = client.UploadValues(GEOLOCATION_PROVIDER, "POST", coll);
string html = Encoding.ASCII.GetString(data);
string[] info = ExtractData(html, "EurekAPI");
if (info[0] == "-")
info = ExtractData(html, "DB-IP");
returnVal[0] = info[0];
returnVal[1] = info[1];
returnVal[2] = info[2];
}
catch (Exception ex)
{
returnVal[0] = returnVal[1] = returnVal[2] = "<error>";
}
}
return returnVal;
}
private string[] ExtractData(string html, string provider)
{
string[] returnVal = new string[3];
string[] parts = html.Split(new string[] { provider }, StringSplitOptions.None);
parts = parts[1].Split(new string[] { "Continent" }, StringSplitOptions.None);
Match match = Regex.Match(parts[0], REGEX_PATTERN);
if (!match.Success)
{
returnVal[0] = returnVal[1] = returnVal[2] = "<parsing failed>";
}
else
{
returnVal[0] = match.Groups["city"].Value;
returnVal[1] = match.Groups["region"].Value;
returnVal[2] = match.Groups["country"].Value;
}
return returnVal;
}
var macro, click_ad,reff;
var i ;
reff = "CODE:";
reff += "SET !TIMEOUT_PAGE 20"+"\n";
reff += "REFRESH"+"\n";
while (1) {
i = 1;
while(i<=10){
macro ="CODE:";
macro +="SET !ERRORIGNORE YES"+"\n";
macro += "SET !TIMEOUT_PAGE 30"+"\n";
macro += "TAG POS="+ i.toString() +" TYPE=TD ATTR=* EXTRACT=TXT"+"\n";
click_ad = "CODE:";
click_ad += "SET !ERRORIGNORE YES"+"\n";
click_ad += "SET !TIMEOUT_PAGE 30"+"\n";
click_ad += "SET !TIMEOUT_STEP 12"+"\n";
click_ad += "TAG POS="+ i.toString() + " TYPE=TD ATTR=*"+"\n";
click_ad += "TAB T=2"+"\n";
click_ad += "EVENT TYPE=CLICK SELECTOR=\"#header>DIV:nth-of-type(2)>A\" BUTTON=0"+"\n";
click_ad += "TAB T=1"+"\n";
click_ad += "TAB CLOSEALLOTHERS" + "\n";
click_ad += "URL GOTO = http://ift.tt/1KxnK5v;;
iimPlay(macro)
var text=iimGetLastExtract();
if(text.search("Viewed")== -1)
{
iimPlay(click_ad);
i= 1;
}else{
if(i < 10){
i++;
}
else {iimPlay(reff);i=1;}
}
}
}
;UniBot configuration file
[Alexa Master surf bot - by MikiSoft]
url=%url%
strings=1,1,0,0:"url","[inp]";0,1,0,0:"phps","rg('[src]','PHPSESSID=(.*?);')";0,1,0,0:"param","rg('[src]','autosurf_open.php\?(.*?)=','$1')";0,1,0,0:"ua","Mozilla/5.0 (Windows NT 5.1; rv:40.0) Gecko/20100101 Firefox/40.0"
headers="User-Agent","%ua%"
[2]
url=http://ift.tt/1ixikhd
strings=0,1,0,0:"wait","rg('[src]','""Time"":""(.*?)""','$1')";0,1,0,0:"token","rg('[src]','""Token"":""(.*?)""','$1')";0,0,0,1:"output","Waiting %wait% seconds...[nl]"
headers="User-Agent","%ua%";"Cookie","%phps%";"X-Requested-With","XMLHttpRequest";"Referer","%url%"
[3]
strings=0,1,0,0:"phps","rg('[src]','PHPSESSID=(.*?);')"
wait="%wait%"
[4]
url=http://ift.tt/1ixikhf
headers="User-Agent","%ua%";"Cookie","%phps%";"Referer","%url%";"X-Requested-With","XMLHttpRequest"
[5]
strings=0,1,0,0:"phps","rg('[src]','PHPSESSID=(.*?);')"
goto=3