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

Feature: CLI options for bundle directory and program name #282

Open
andria-dev opened this issue Jul 20, 2024 · 0 comments
Open

Feature: CLI options for bundle directory and program name #282

andria-dev opened this issue Jul 20, 2024 · 0 comments

Comments

@andria-dev
Copy link

andria-dev commented Jul 20, 2024

When using staticx, you can rename the resulting executable whatever you want, but looking at a process listing or the /tmp directory, you can easily see that it's a staticx program and you can see the original name of the program too.

Say you're making Impacket's Python smbserver example portable, you would do something like the following.

pyinstaller --onefile /usr/share/doc/python3-impacket/examples/smbserver.py
staticx dist/smbserver dist/smbserver.staticx

Then once it's on another system, you might want to rename it something other than smbserver. But when the program is run, it extracts to and shows up in a process list as /tmp/staticx-XXXXXX/smbserver. It would be nice if there were an option when running staticx to specify the bundle directory and the program path instead of having them decided for you. A workaround for the program name is to rename it before running staticx, but that is not ideal. There is no workaround for the bundle directory.

I'm proposing new CLI options --bundle-dir and --prog-name to keep the naming similar to the environment variables STATICX_BUNDLE_DIR, and STATICX_PROG_PATH.

@andria-dev andria-dev changed the title Feature: CLI options for bundle directory and program path Feature: CLI options for bundle directory and program name Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants