All Projects → retroplasma → Flyover Reverse Engineering

retroplasma / Flyover Reverse Engineering

Reversing Apple's 3D satellite mode

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Flyover Reverse Engineering

Earth Reverse Engineering
Reversing Google's 3D satellite mode
Stars: ✭ 2,083 (+329.48%)
Mutual labels:  extract, 3d-models, gis, reverse-engineering
3d Tiles
Specification for streaming massive heterogeneous 3D geospatial datasets 🌎
Stars: ✭ 1,054 (+117.32%)
Mutual labels:  3d-models, gis
Dyld cache extract
A macOS utility to extract dynamic libraries from the dyld_shared_cache of macOS and iOS.
Stars: ✭ 180 (-62.89%)
Mutual labels:  extract, reverse-engineering
Blacksmith
Blacksmith is a tool for viewing, extracting, and converting textures, 3D models, and sounds from Assassin's Creed: Odyssey/Origins/Valhalla and Steep.
Stars: ✭ 104 (-78.56%)
Mutual labels:  extract, 3d-models
Drv3 Tools
(Not actively maintained, use DRV3-Sharp) Tools for extracting and re-injecting files for Danganronpa V3 for PC.
Stars: ✭ 13 (-97.32%)
Mutual labels:  extract, reverse-engineering
DEMto3D-QGIS-Plugin
Extensión GIS para impresión 3D de MDE
Stars: ✭ 33 (-93.2%)
Mutual labels:  gis, 3d-models
Ksdumper
Dumping processes using the power of kernel space !
Stars: ✭ 454 (-6.39%)
Mutual labels:  reverse-engineering
Apklab
Android Reverse-Engineering Workbench for VS Code
Stars: ✭ 470 (-3.09%)
Mutual labels:  reverse-engineering
Hookcase
Tool for reverse engineering macOS/OS X
Stars: ✭ 452 (-6.8%)
Mutual labels:  reverse-engineering
Unicorn
Unicorn CPU emulator framework (ARM, AArch64, M68K, Mips, Sparc, PowerPC, RiscV, X86)
Stars: ✭ 4,934 (+917.32%)
Mutual labels:  reverse-engineering
Celerio Angular Quickstart
Generate an Angular 5 CRUD application from an existing database schema (we provide a sample one)
Stars: ✭ 483 (-0.41%)
Mutual labels:  reverse-engineering
Anticheat Testing Framework
Framework to test any Anti-Cheat
Stars: ✭ 481 (-0.82%)
Mutual labels:  reverse-engineering
Stringsifter
A machine learning tool that ranks strings based on their relevance for malware analysis.
Stars: ✭ 469 (-3.3%)
Mutual labels:  reverse-engineering
Go Geom
Package geom implements efficient geometry types for geospatial applications.
Stars: ✭ 456 (-5.98%)
Mutual labels:  gis
Pokeruby
Decompilation of Pokémon Ruby/Sapphire
Stars: ✭ 476 (-1.86%)
Mutual labels:  reverse-engineering
Terracognita
Reads from existing Cloud Providers (reverse Terraform) and generates your infrastructure as code on Terraform configuration
Stars: ✭ 452 (-6.8%)
Mutual labels:  reverse-engineering
Golang loader assist
Making GO reversing easier in IDA Pro
Stars: ✭ 480 (-1.03%)
Mutual labels:  reverse-engineering
Mapsui
Mapsui is a .NET Map component for WPF, Xamarin.Forms, Xamarin.Android, Xamarin.iOS and UWP
Stars: ✭ 447 (-7.84%)
Mutual labels:  gis
Kam1n0 Community
The Kam1n0 Assembly Analysis Platform
Stars: ✭ 467 (-3.71%)
Mutual labels:  reverse-engineering
Mjapptools
【越狱-逆向】处理iOS APP信息的命令行工具
Stars: ✭ 479 (-1.24%)
Mutual labels:  reverse-engineering
header

Reverse-engineering Flyover (3D satellite mode) from Apple Maps. Similar work is done for Google Earth here.

Status

Roughly, these parts have been figured out:

  • bootstrap of manifests
  • URL structure
  • authentication algorithm
  • map tiling and conversion from geo coordinates
  • mesh decompression (huffman tables, edgebreaker variant etc.)
  • tile lookup using octree

We can authenticate URLs and retrieve textured 3D models from given coordinates (latitude, longitude).

General

Data is stored in map tiles. These five tile styles are used for Flyover:

Type Purpose URL structure
C3M Texture, Mesh, Transformation(, Animation) 🅐(?|&)style=15&v=⓿&region=❶&x=❷&y=❸&z=❹&h=❺
C3MM 1 Metadata 🅐(?|&)style=14&v=⓿&part=❻&region=❶
C3MM 2 Metadata 🅐(?|&)style=52&v=⓿&region=❶&x=❷&y=❸&z=❹&h=❺
DTM 1 Terrain/Surface/Elevation 🅐(?|&)style=16&v=⓿&region=❶&x=❷&y=❸&z=❹
DTM 2 Terrain/Surface/Elevation 🅐(?|&)style=17&v=⓿&size=❼&scale=❽&x=❷&y=❸&z=❹
  • 🅐: URL prefix from resource manifest
  • ⓿: Version from resource manifest or altitude manifest using region
  • ❶: Region ID from altitude manifest
  • ❷❸❹: Map tile numbers (tiled web map scheme)
  • ❺: Height/altitude index. Probably from C3MM
  • ❻: Incremental part number
  • ❼❽: Size/scale. Not sure where its values come from

Resource hierarchy

ResourceManifest
└─ AltitudeManifest
   ├─ C3MM
   │  └─ C3M
   └─ DTM?

Focusing on C3M(M) for now. DTMs are images with a footer and are probably used for the grid that is displayed when Maps is loading.

Code

This repository is structured as follows:

Directory Description
cmd command line programs
pkg most of the actual code
proto protobuf files
scripts additional scripts
vendor dependencies
Setup

Install Go and run:

go get -d github.com/retroplasma/flyover-reverse-engineering/...
cd "$(go env GOPATH)/src/github.com/retroplasma/flyover-reverse-engineering"

Then edit config.json:

  • automatically (macOS, Linux, WSL):
    • ./scripts/get_config.sh > config.json
  • faster (macOS Catalina or older):
    • ./scripts/get_config_macos.sh > config.json
  • or manually (Catalina or older):
Command line programs

Here are some command line programs that use code from pkg:

Export OBJ [code]

Usage:

go run cmd/export-obj/main.go [lat] [lon] [zoom] [tryXY] [tryH]

Parameter   Description       Example
--------------------------------------
lat         Latitude          34.007603
lon         Longitude         -118.499741
zoom        Zoom (~ 13-20)    20
tryXY       Area scan         3
tryH        Altitude scan     40

This exports Santa Monica Pier to ./downloaded_files/obj/...:

go run cmd/export-obj/main.go 34.007603 -118.499741 20 3 40

Optional: Center-scale OBJ using node.js script:

node scripts/center_scale_obj.js

In Blender (compatible tutorial here):

Authenticate URL [code]

This authenticates a URL using parameters from config.json:

go run cmd/auth/main.go [url]
Parse C3M file [code]

This parses a C3M v3 file, decompresses meshes, reads JPEG textures and produces a struct that contains a textured 3d model:

go run cmd/parse-c3m/main.go [file]
Parse C3MM file [code]

This parses a C3MM v1 file. The C3MM files in a region span octrees whose roots are indexed in the first file.

go run cmd/parse-c3mm/main.go [file] [[file_number]]

Files on macOS

  • ~/Library/Containers/com.apple.geod/Data/Library/Caches/com.apple.geod/GEOConfigStore.db
    • last resource manifest url
  • ~/Library/Preferences/com.apple.GEO.plist
    • last resource manifest url ~prior to catalina
  • ~/Library/Caches/GeoServices/Resources/altitude-*.xml
    • defines regions for c3m urls
    • altitude-*.xml url in resource manifest
  • ~/Library/Containers/com.apple.geod/Data/Library/Caches/com.apple.geod/MapTiles/MapTiles.sqlitedb
    • local map tile cache
  • /System/Library/PrivateFrameworks/GeoServices.framework/GeoServices
    • resource manifest base url, networking, caching, authentication
  • /System/Library/PrivateFrameworks/VectorKit.framework/VectorKit
    • parsers, decoders
  • /System/Library/PrivateFrameworks/GeoServices.framework/XPCServices/com.apple.geod.xpc
    • loads GeoServices
  • /Applications/Maps.app/Contents/MacOS/Maps
    • loads VectorKit

Important

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].