Skip to content

Intercept Google Maps direction requests, and inject nearby crime hotspots.

Notifications You must be signed in to change notification settings

jerbob/dangersnek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

DangerSnek

Intercept Google Maps direction requests, and inject nearby crime hotspots.

This was my (winning) solution to the Dunhumby challenge for Hack Manchester Junior 2018. The brief for this challenge was to use open data to make the consumer's experience "less than optimal", so my team and I decided to script an extension for the mitmdump command line https proxy.

The extension intercepts GET requests to the Google Maps API, for all URLs that match https://www.google.com/maps/dir. The destination is then extracted from the request parameters, the nearest vehicle crime is located using open police data, a new detour is added to the request, and finally the request is altered by mitmproxy.

All code for this solution was written in under 8 hours, and won us the Dunhumby first place prize.

About

Intercept Google Maps direction requests, and inject nearby crime hotspots.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages