generated from Dicken/dickendock
round47: httpx-Integration nach masscan (nur bestaetigte Webinterfaces werden weiterverarbeitet), Sichtbarkeit ob masscan/httpx greifen ueber Admin-Logs
This commit is contained in:
@@ -41,6 +41,29 @@ ENV HOST=0.0.0.0
|
||||
# eingebaute (langsamere, aber ohne Zusatzrechte auskommende) Methode zurück.
|
||||
RUN apk add --no-cache iputils-ping masscan
|
||||
|
||||
# httpx (ProjectDiscovery) prüft eine Liste offener Ports und liefert NUR
|
||||
# die, die tatsächlich HTTP/HTTPS sprechen, inkl. Status/Titel/Server-Header
|
||||
# in einem einzigen, hochparallelen Durchlauf (siehe scanner/httpx.ts) -
|
||||
# deutlich schneller als eigenes Protokoll-Raten pro Port, und verhindert,
|
||||
# dass Nicht-Web-Ports (SSH, SMB, NFS, ...) überhaupt erst per HTTP
|
||||
# angesprochen werden. Kein Alpine-Paket vorhanden, daher als
|
||||
# Binary-Release von GitHub geladen. Bei Fehlschlag (z. B. kein
|
||||
# Internetzugang beim Bauen des Images) läuft der Build trotzdem durch -
|
||||
# der Scanner erkennt ein fehlendes httpx zur Laufzeit automatisch und
|
||||
# fällt auf die eingebaute Methode zurück.
|
||||
RUN apk add --no-cache --virtual .httpx-build curl unzip && \
|
||||
( \
|
||||
HTTPX_URL=$(curl -fsSL https://api.github.com/repos/projectdiscovery/httpx/releases/latest \
|
||||
| grep -o 'https://[^"]*httpx_[0-9][^"]*_linux_amd64\.zip' | head -n1) && \
|
||||
test -n "$HTTPX_URL" && \
|
||||
curl -fsSL "$HTTPX_URL" -o /tmp/httpx.zip && \
|
||||
unzip -o /tmp/httpx.zip -d /usr/local/bin httpx && \
|
||||
chmod +x /usr/local/bin/httpx \
|
||||
|| echo "httpx-Installation fehlgeschlagen - Scanner nutzt automatisch die eingebaute Methode" \
|
||||
) && \
|
||||
rm -f /tmp/httpx.zip && \
|
||||
apk del .httpx-build
|
||||
|
||||
COPY --from=build /app/deploy/ ./
|
||||
COPY --from=build /app/apps/backend/dist ./dist
|
||||
COPY --from=build /app/packages/shared/dist ./node_modules/@launchpad/shared/dist
|
||||
|
||||
Reference in New Issue
Block a user