Skip to content
This repository has been archived by the owner on Dec 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from Zeerg/develop
Browse files Browse the repository at this point in the history
moving to urandom
  • Loading branch information
Zeerg authored Sep 3, 2021
2 parents ff859b3 + 9b4133e commit 7e62c67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ FROM alpine:latest
WORKDIR /
COPY --from=build /helix-honeypot /helix-honeypot
RUN addgroup -S helix && adduser -S helix -G helix
USER helix

EXPOSE 8000

Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
- "8000:8000"
entrypoint: [/helix-honeypot, -mode=ad]
volumes:
- /dev/random:/dev/random
- /dev/urandom:/dev/urandom
helix-honeypot:
build: ./
ports:
Expand Down
6 changes: 3 additions & 3 deletions handler/activeDefenseHandlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"github.com/labstack/echo/v4"
"os"
)
// Literally streams /dev/random to the response since Kubectl has no input validation or timeouts lol
// Literally streams /dev/urandom to the response since Kubectl has no input validation or timeouts lol
func ActiveDefenseHandler(c echo.Context) error {
devRandom, _ := os.Open("/dev/random")
return c.Stream(201, "application/json", devRandom)
devUrandom, _ := os.Open("/dev/urandom")
return c.Stream(201, "application/json", devUrandom)
}

0 comments on commit 7e62c67

Please sign in to comment.