Skip to content

Commit

Permalink
strip: fix UPX CantPackException. Fix #9
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Di Maio <[email protected]>
  • Loading branch information
89luca89 committed Dec 8, 2022
1 parent 20ae27b commit 8713a3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ all:
--remove-section=.got \
--remove-section=.note.ABI-tag \
--remove-section=.note.gnu.build-id \
--remove-section=.note.go.buildid \
--remove-section=.shstrtab \
--remove-section=.typelink \
dist/pakkero;
Expand Down Expand Up @@ -53,14 +52,13 @@ clean:
--remove-section=.got \
--remove-section=.note.ABI-tag \
--remove-section=.note.gnu.build-id \
--remove-section=.note.go.buildid \
--remove-section=.shstrtab \
--remove-section=.typelink \
dist/pakkero

test: clean
dist/pakkero \
-file /usr/bin/echo \
-file /usr/bin/echo -c \
-o /tmp/test.enc \
-offset 2850000 \
-enable-stdout \
Expand Down
1 change: 0 additions & 1 deletion internal/pakkero/obfuscation.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ func StripFile(infile string, launcherFile string) bool {
"--remove-section=.got",
"--remove-section=.note.ABI-tag",
"--remove-section=.note.gnu.build-id",
"--remove-section=.note.go.buildid",
"--remove-section=.shstrtab",
"--remove-section=.typelink",
infile,
Expand Down

0 comments on commit 8713a3d

Please sign in to comment.