Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pwaller/goupx
Fix golang compiled binaries on x86_64 so that they can be packed with UPX
https://github.com/pwaller/goupx
Last synced: 28 days ago
JSON representation
Fix golang compiled binaries on x86_64 so that they can be packed with UPX
- Host: GitHub
- URL: https://github.com/pwaller/goupx
- Owner: pwaller
- License: mit
- Created: 2012-09-08T14:17:20.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-01-20T16:35:14.000Z (almost 8 years ago)
- Last Synced: 2024-02-15T05:34:33.730Z (10 months ago)
- Language: Go
- Size: 13.7 KB
- Stars: 332
- Watchers: 19
- Forks: 20
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- cybersecurity-golang-security - goupx - Fix golang compiled binaries on x86_64 so that they can be packed with UPX. (Packers / Obfuscators)
- awesome-go-security - goupx - Fix golang compiled binaries on x86_64 so that they can be packed with UPX. (Packers / Obfuscators)
README
goupx - Fix golang Linux ELF executables to work with upx
---------------------------------------------------## Update: 2016/03/10
As far as I (pwaller) know, goupx is no longer necessary for Linux binaries since it was fixed in
go1.6.## About
Installation: `go get github.com/pwaller/goupx`
(or if you don't want to do it with root, `GOPATH=${HOME}/.local go get github.com/pwaller/goupx` will install it to `${HOME}/.local/bin/goupx`).
Usage: `goupx [filename]`
Fixes the `PT_LOAD` offset of [filename] and then runs `upx`.
This is only necessary for Linux ELF executables (not Mach-O executables or windows binaries, for example).
Based on [code found on the upx bugtracker](http://sourceforge.net/tracker/?func=detail&atid=102331&aid=3408066&group_id=2331).
MIT licensed.
Fixes the following issue
=========================$ upx [linux ELF go binary]
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2011
UPX 3.08 Markus Oberhumer, Laszlo Molnar & John Reiser Dec 12th 2011File size Ratio Format Name
-------------------- ------ ----------- -----------
upx: goupx: EOFException: premature end of filePacked 1 file: 0 ok, 1 error.
Typical compression ratio
=========================Resulting filesizes are typically 25% of the original go executable. Your mileage my vary.