diff --git a/.dockerignore b/.dockerignore
@@ -0,0 +1,14 @@
+.git
+
+*.raw
+*.bin
+myph
+
+README.md
+
+Makefile
+Dockerfile
+
+.goreleaser.yml
+.dockerignore
+.gitignore
diff --git a/Dockerfile b/Dockerfile
@@ -11,14 +11,16 @@ COPY go.mod .
RUN go mod download
COPY . .
-RUN go build -o myph main.go
+RUN go build -o myph .
FROM alpine:3.18.2
LABEL maintainer="djnn <[email protected]>"
-WORKDIR /app
+RUN adduser -D djnn
+USER djnn
+WORKDIR /home/djnn
COPY --from=builder /root/myph .
-ENTRYPOINT [ "/app/myph" ]
+ENTRYPOINT [ "/home/djnn/myph" ]
diff --git a/Makefile b/Makefile
@@ -51,8 +51,8 @@ compile: ## compile the project
.PHONY: clean
clean: ## clean up the project directory
- @rm -f $(APP_NAME)
+ @rm -vf $(APP_NAME)
.PHONY: docker
docker: ## build a local docker image
- @docker build . -t $(APP_NAME):latest
+ @docker build . -t $(APP_NAME):latest -t $(APP_NAME):$(APP_VERSION)
diff --git a/README.md b/README.md
@@ -15,9 +15,6 @@ or related to the access to or use of the software.
## Usage
```bash
-myph --help
-In loving memory of Wassyl Iaroslavovytch Slipak (1974 - 2016)
-
Usage:
myph [flags]
@@ -25,9 +22,10 @@ Flags:
-r, --arch string architecture compilation target (default "amd64")
-e, --encryption encKind encryption method. (allowed: AES, RSA, XOR) (default AES)
-h, --help help for myph
- -k, --key string encryption key, auto-generated if empty. (if used by --encryption-method)
+ -k, --key string encryption key, auto-generated if empty. (if used by --encryption)
-o, --os string OS compilation target (default "windows")
-f, --outdir string output directory (default "myph-out")
+ -p, --process string target process to inject shellcode to (default "cmd.exe")
-s, --shellcode string shellcode path (default "msf.raw")
-v, --version version for myph
```
| | | |