Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Dockerfile to build Pakkero #4

Merged
merged 5 commits into from
Mar 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM golang:alpine

ENV CGO_ENABLED=0
ENV GO111MODULE=off

RUN apk add --update-cache upx git make binutils coreutils \
&& rm -rf /var/cache/apk/*

RUN upx --version

RUN go version
RUN go get -d -v github.com/89luca89/pakkero

WORKDIR $GOPATH/src/github.com/89luca89/pakkero
RUN make

RUN ./dist/pakkero -v

ENTRYPOINT ["./dist/pakkero"]
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,34 @@ Go build works fine, but will skip a fundamental step in the building process, *

This way the Pakkero binary has inside the source of the Launcher to be used for each packaging.

#### Building using Docker

Build Pakkero image:

```sh
sudo docker build . -t pakkero
```

Run containerized Pakkero:

```sh
sudo docker run -it -v <target_dir>:/ext pakkero --file /ext/<target_elf> -o /ext/<target_elf>.packed
```

#### Building using Podman

Build Pakkero image:

```sh
sudo podman build . -t pakkero
```

Run containerized Pakkero:

```sh
sudo podman run -it -v <target_dir>:/ext pakkero --file /ext/<target_elf> -o /ext/<target_elf>.packed
```

#### Payload

For this purpose the payload is simply compressed using zlib then encrypted using AES256-GCM
Expand Down