feat: add helper scripts for infrastructure management and troubleshooting
This commit is contained in:
14
scripts/find_all_routes.py
Normal file
14
scripts/find_all_routes.py
Normal file
@@ -0,0 +1,14 @@
|
||||
import urllib.request
|
||||
import ssl
|
||||
import re
|
||||
|
||||
ctx = ssl.create_default_context()
|
||||
ctx.check_hostname = False
|
||||
ctx.verify_mode = ssl.CERT_NONE
|
||||
|
||||
url = "https://semaphore.snarfnet.net/js/app.905c93b7.js"
|
||||
content = urllib.request.urlopen(urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"}), context=ctx).read().decode('utf-8')
|
||||
|
||||
routes = re.findall(r'path:\s*["\']([^"\']+)["\']', content)
|
||||
print("Routes in Vue app:", set(routes))
|
||||
|
||||
Reference in New Issue
Block a user