Print gate list without making any network requests.
()
| 302 | |
| 303 | |
| 304 | def dry_run() -> None: |
| 305 | """Print gate list without making any network requests.""" |
| 306 | print(BANNER) |
| 307 | log("INFO", "Dry-run mode -- listing gates only") |
| 308 | print() |
| 309 | for g in GATES: |
| 310 | proto = "HTTPS" if g["port"] == 443 else "HTTP" |
| 311 | concurrent = " (concurrent)" if 4 <= g["num"] <= 6 else "" |
| 312 | print( |
| 313 | f" {CYAN}Gate {g['num']}{RESET} " |
| 314 | f"{BOLD}{g['name']}{RESET} " |
| 315 | f"{DIM}{g['host']}:{g['port']} {g['method']} {proto}{concurrent}{RESET}" |
| 316 | ) |
| 317 | print(f" {DIM}{g['hint']}{RESET}") |
| 318 | print() |
| 319 | log("INFO", "Run without --dry-run inside a sandbox to start the challenge") |
| 320 | |
| 321 | |
| 322 | # -- Sequential gate runner ---------------------------------------------------- |