mirror of
https://github.com/mblanke/StrikePackageGPT.git
synced 2026-03-01 06:10:21 -05:00
- Change default scan type from 'os' to 'quick' (much faster) - Add -T4 timing template for aggressive speed - Add --min-hostgroup for parallel host scanning - Remove slow OS detection from quick scan - Add time estimates in UI: ping ~30s, quick ~1-3min, os ~5-15min - Color-coded scan options by speed - ping scan: fastest, just host discovery - quick scan: top 100 ports, no OS detection
21 lines
495 B
Python
21 lines
495 B
Python
from fastapi import FastAPI
|
|
from starlette.middleware.cors import CORSMiddleware
|
|
import os
|
|
|
|
app = FastAPI()
|
|
|
|
# CORS middleware
|
|
app.add_middleware(
|
|
CORSMiddleware,
|
|
allow_origins=["*"], # Allows all origins
|
|
allow_credentials=True,
|
|
allow_methods=["*"], # Allows all methods
|
|
allow_headers=["*"], # Allows all headers
|
|
)
|
|
|
|
LLM_ROUTER_URL = os.getenv("LLM_ROUTER_URL", "http://strikepackage-llm-router:8000")
|
|
|
|
|
|
@app.get("/")
|
|
async def root():
|
|
return {"message": "Hello World"} |