https://github.com/smortex/harbour-teretahiti
https://github.com/smortex/harbour-teretahiti
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smortex/harbour-teretahiti
- Owner: smortex
- Created: 2020-11-20T02:59:02.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-11-08T22:07:28.000Z (over 1 year ago)
- Last Synced: 2025-10-31T11:31:56.621Z (8 months ago)
- Language: QML
- Size: 112 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: docs/README.md
Awesome Lists containing this project
README
After [downloading the .apk
file](https://apkpure.com/region-free-apk-download?p=com.spec.mobiv.teretahiti),
it can be extracted (it's a .zip file) and interesting data can be found in the
`assets/app.bundle` file:
```
siteBase:'http://locbusrtct.dataccessor.com:20082'
get(siteBase+'/api/bus/logs-course/'+t.id)
get(siteBase+'/api/disruption/active')
get(siteBase+'/api/places/all')
get(siteBase+'/api/routes/0')
post(siteBase+'/api/gtfs/trip',{date:t,time:this.state.timeTrip,from:this.state.fromLieuId,to:this.state.toLieuId})
post(siteBase+'/api/itinerary/running',{routeId:this.state.route.id,direction:this.state.direction})
post(siteBase+'/api/shape/get',{itineraryIds:[t],fullName:!0})
post(siteBase+'/api/shape/get',{itineraryIds:[this.state.itineraryId],fullName:!0})
post(siteBase+'/api/stop-time/next-line-live',{routeId:this.props.route.id,routeDirection:this.props.selectedRoute.direction})
post(siteBase+'/api/stop-time/next-line-live',{routeId:this.state.route.id,routeDirection:this.state.direction}
post(siteBase+'/api/stop-time/next-stop-live',{lieuId:t.id})
post(siteBase+'/api/stop-time/next-stop-live',{lieuId:t})
```
We can then use `curl(1)` to get data from these API endpoints, .e.g:
```
curl -d '{"routeId":"1034","routeDirection":0}' http://locbusrtct.dataccessor.com:20082/api/stop-time/next-line-live
```
The `scan/scan.sh` script automates fetching some URL's result for reverse engeenering the data provided by this API.
The `teretahiti.pcap` file contains a dump of all traffic on port 20082 when
running the application in an [android
emulator](https://developer.android.com/studio/run/emulator). The application
was started at 15:15 GMT-10, I browsed into _lines_, _11 PPT > PAMATAI_,
clicked on _Fare tony_. Then at 15:17 _stops_, _Faa'a école Pamatai_.