Question
Solution
開左個app黎睇 , 係極簡化版既 pokemonGO , d mango會係地圖到show出黎 , 禁落去就會開相機 , 禁隻mango就會捉左
但係要捉150隻手動真係不了
Decompile完之後見到 asserts/www/ , 隻app似乎 d logic係晒 web到
見到map.js有段係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
46var updateMap = function() {
console.log("updating map");
map.setCenter(currentPos);
// Clear mangos
for (var i = 0; i < mangos.length; i++) {
mangos[i].setMap(null);
}
mangos = [];
var user = new google.maps.Marker({
position: currentPos,
map: map,
icon: 'img/user_marker.png'
});
// You're my favorite mango
mangos.push(user);
var payload = {
lat: currentPos.lat,
long: currentPos.lng
}
payload["uuid"] = uuid
$.post("http://pokeamango.vuln.icec.tf/mango/list", payload, function(results){
var data = results["mangos"];
for (var i = 0; i < data.length; i++) {
var place = data[i];
var mango = new google.maps.Marker({
position: place,
map: map,
icon: 'img/mangie_marker.png'
});
mangos.push(mango);
mango.addListener('click', function(event){
window.name = (currentPos.lat()) + "," + (currentPos.lng()) + "," + (this.getPosition().lat()) + "," + (this.getPosition().lng());
window.location.href = "camera.html";
});
}
});
};
似乎1
http://pokeamango.vuln.icec.tf/mango/list
係用黎list d mongo出黎
睇埋 map.js1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17function catchMango() {
var payload = {
"curLat": currentPosLat,
"curLong": currentPosLng,
"mangoLat": mangoPosLat,
"mangoLong": mangoPosLng,
"uuid": device.uuid
};
$.post("http://pokeamango.vuln.icec.tf/mango/catch", payload, function(results){
window.plugins.toast.showLongBottom(results["message"], function(a){console.log('toast success: ' + a)}, function(b){alert('toast error: ' + b)})
$("#mango").removeClass("bounce infinite");
$("#mango").addClass("bounceOutRight");
setTimeout(function(){ window.location.href = "map.html"; }, 1000);
});
};
咁有齊料自動捉mango啦
1 | import requests |
當捉到無野捉之後 , 轉一個個currentLat , currentLng就可以繼續行