Skip to content

Commit

Permalink
Bypass Skiplagged Bot checks
Browse files Browse the repository at this point in the history
  • Loading branch information
NecronomiconCoding committed Aug 2, 2016
1 parent 6ea2d48 commit d629322
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions PoGo.NecroBot.Logic/Tasks/SnipePokemonTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,21 +355,16 @@ private static ScanResult SnipeScanForPokemon(ISession session, Location locatio

var uri =
$"http://skiplagged.com/api/pokemon.php?bounds={boundLowerLeftLat.ToString(formatter)},{boundLowerLeftLng.ToString(formatter)},{boundUpperRightLat.ToString(formatter)},{boundUpperRightLng.ToString(formatter)}";
/*var uri =
$"http://skiplagged.com/api/pokemon.php?address={location.Latitude.ToString(formatter)},{location.Longitude.ToString(formatter)}";
*/
/*
* http://skiplagged.com/api/pokemon.php?bounds=40.76356269219236,-73.98657795715332,40.7854671345488,-73.95812508392333
* bounds = bound_lower_left_lat,bound_lower_left_lng,bound_upper_right_lat,bound_upper_right_lng
*/

ScanResult scanResult;
try
{
var request = WebRequest.CreateHttp(uri);
request.Accept = "application/json";
request.UserAgent =
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\r\n";
request.Method = "GET";
request.Timeout = 10000;
request.Timeout = 15000;
request.ReadWriteTimeout = 32000;

var resp = request.GetResponse();
Expand Down

0 comments on commit d629322

Please sign in to comment.