Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- function escape($value) {
- $return = '';
- for($i = 0; $i < strlen($value); ++$i) {
- $char = $value[$i];
- $ord = ord($char);
- if($char !== "'" && $char !== "\"" && $char !== '\\' && $ord >= 32 && $ord <= 126)
- $return .= $char;
- else
- $return .= '\\x' . dechex($ord);
- }
- return $return;
- }
- $user = "someuser";
- $pass = "somepass";
- $lat = escape($_POST['lat']);
- $long = escape($_POST['long']);
- $useIgnore = escape($_POST['useIgnore']);
- if ($useIgnore == '1') {
- $ignore = "-i \"Abra,Diglett,Drowzee,Eevee,Ekans,Electabuzz,Geodude,Golbat,Growlithe,Hitmonchan,Hitmonlee,Jynx,Krabby,Magnemite,Mankey,Meowth,29,32,Paras,Pidgeotto,Pidgey,Ponyta,Raticate,Rattata,Rhyhorn,Spearow,Weedle,Zubat\"";
- } else {
- $ignore = "";
- }
- $port = rand(7000,15000);
- print("<html><body><h2>Scanning 3 steps from: $lat $long for up to 10 minutes. <a href='http://pm.rpmcable.com:$port'>View Map</a></h2></body></html>");
- exec("/usr/bin/python /home/jp/PokemonGo-Map/example.py -P $port -a ptc -u $user -p $pass -l \"$lat $long\" -st 3 -dg -ar 10 $ignore > /dev/null &");
- exec("touch /tmp/killpm");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement