19 lines
591 B
Python
19 lines
591 B
Python
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')
|
|
|
|
for m in re.finditer(r'/auth/oidc/[^"\']+', content):
|
|
print("Route match:", m.group(0))
|
|
|
|
# Also search for router definitions
|
|
for m in re.finditer(r'path:\s*["\'][^"\']*oidc[^"\']*["\']', content, re.IGNORECASE):
|
|
print("Router path:", m.group(0))
|
|
|