-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #491 from projectdiscovery/dev
interactsh v1.1.1
- Loading branch information
Showing
18 changed files
with
154 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# Build | ||
FROM golang:1.20.0-alpine AS build-env | ||
RUN apk add build-base | ||
RUN go install -v github.com/projectdiscovery/interactsh/cmd/interactsh-client@latest | ||
# Base | ||
FROM golang:1.20.1-alpine AS builder | ||
RUN apk add --no-cache git build-base gcc musl-dev | ||
WORKDIR /app | ||
COPY . /app | ||
RUN go mod download | ||
RUN go build ./cmd/interactsh-client | ||
|
||
# Release | ||
FROM alpine:3.17.2 | ||
RUN apk -U upgrade --no-cache \ | ||
&& apk add --no-cache bind-tools ca-certificates | ||
COPY --from=build-env /go/bin/interactsh-client /usr/local/bin/interactsh-client | ||
COPY --from=builder /app/interactsh-client /usr/local/bin/ | ||
|
||
ENTRYPOINT ["interactsh-client"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
# Build | ||
FROM golang:1.20.0-alpine AS build-env | ||
RUN apk add build-base | ||
RUN go install -v github.com/projectdiscovery/interactsh/cmd/interactsh-server@latest | ||
# Base | ||
FROM golang:1.20.1-alpine AS builder | ||
RUN apk add --no-cache git build-base gcc musl-dev | ||
WORKDIR /app | ||
COPY . /app | ||
RUN go mod download | ||
RUN go build ./cmd/interactsh-server | ||
|
||
|
||
# Release | ||
FROM alpine:3.17.2 | ||
RUN apk -U upgrade --no-cache \ | ||
&& apk add --no-cache bind-tools ca-certificates python3 py3-pip build-base curl \ | ||
&& python3 -m pip install impacket | ||
&& apk add --no-cache bind-tools ca-certificates python3 libffi curl \ | ||
&& apk add --no-cache --virtual .build-deps python3-dev py3-pip py3-wheel libffi-dev build-base \ | ||
&& python3 -m pip install impacket \ | ||
&& python3 -m pip cache purge \ | ||
&& apk del .build-deps | ||
RUN curl -o /usr/local/bin/smb_server.py https://raw.githubusercontent.com/projectdiscovery/interactsh/main/cmd/interactsh-server/smb_server.py | ||
WORKDIR "/usr/local/bin" | ||
COPY --from=build-env /go/bin/interactsh-server /usr/local/bin/interactsh-server | ||
COPY --from=builder /app/interactsh-server /usr/local/bin/ | ||
|
||
ENTRYPOINT ["interactsh-server"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.