2023-11-03 02:06:46 -06:00
|
|
|
# wmts-exfiltrator
|
2023-11-02 16:59:23 -06:00
|
|
|
|
2023-11-03 02:06:46 -06:00
|
|
|
_Scrape tiles from WMTS servers._
|
|
|
|
|
2023-11-06 18:53:12 -07:00
|
|
|
You know what I hate? Those godforsaken WMTS servers, perched on their digital thrones, acting like they're the TILE
|
|
|
|
TYRANTS of the universe. They think they can just LOCK UP their precious little tiles and keep me from doing my THING?
|
|
|
|
HA!
|
2023-11-03 02:06:46 -06:00
|
|
|
|
2023-11-06 18:53:12 -07:00
|
|
|
No more will these WMTS servers shroud their CRAPPY-ASS tiles in mystery. I'm coming for your DATA, you binary BASTARDS,
|
|
|
|
and there's not a SINGLE 1 or 0 you can throw at me that will stop my CHARGE.
|
2023-11-03 02:06:46 -06:00
|
|
|
|
2023-11-06 18:53:12 -07:00
|
|
|
You think your firewalls and security mumbo-jumbo can keep me at bay? THINK AGAIN. I'll slice through your defenses like
|
|
|
|
a HOT PIZZA through COLD BUTTER. I'll have your DATA, and there's absolutely NOTHING, I repeat, NOTHING you can do to
|
|
|
|
STOP ME.
|
2023-11-03 02:06:46 -06:00
|
|
|
|
2023-11-06 18:53:12 -07:00
|
|
|
So, buckle up, WMTS servers. Your reign of TILE TERROR is about to CRASH AND BURN. I'm coming for your DATA, and I'm
|
|
|
|
bringing a whole lot of CHAOS with me.
|
2023-11-03 01:57:45 -06:00
|
|
|
|
2023-11-03 16:31:53 -06:00
|
|
|
### Install
|
|
|
|
|
|
|
|
```shell
|
|
|
|
pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
|
|
|
### Use
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```shell
|
|
|
|
python3 exfiltrate.py \
|
|
|
|
https://wmts.nlsc.gov.tw/wmts/nURBAN/default/EPSG:3857/ \
|
|
|
|
--zoom 20 \
|
|
|
|
--referer https://maps.nlsc.gov.tw/ \
|
|
|
|
--bbox 25.076387 121.68951 25.068282 121.700175 \
|
|
|
|
--threads 30
|
|
|
|
```
|
|
|
|
|
2023-11-06 18:53:12 -07:00
|
|
|
Building the GeoTIFF will take dozens of gigs of memory for any significant extent! For example, a 21 mile extent
|
|
|
|
required about 400GB of memory. You can use swap for this, but don't expect it to be very quick if you go this route.
|
|
|
|
|
2023-11-03 01:57:45 -06:00
|
|
|
### ArcGIS
|
|
|
|
|
2023-11-06 18:53:12 -07:00
|
|
|
TODO
|
2023-11-03 01:57:45 -06:00
|
|
|
|
2023-11-03 02:06:46 -06:00
|
|
|
### Credits
|
2023-11-03 01:57:45 -06:00
|
|
|
|
|
|
|
https://jimmyutterstrom.com/blog/2019/06/05/map-tiles-to-geotiff/
|