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

Re-running against compiled app returns "Error: unknown compression type 'COMPRESS_ZLIB+50401537'" #1

Open
damemi opened this issue Mar 23, 2023 · 0 comments

Comments

@damemi
Copy link

damemi commented Mar 23, 2023

Running the launcher with an app right after it's built works fine:

$ go build -o app
$ ./launcher app
2023/03/23 14:37:22 Shellcode Length:  46
2023/03/23 14:37:22 Overlapping Sections in Generated Elf: .debug_line
2023/03/23 14:37:22 Overlapping Sections in Generated Elf: .debug_gdb_scripts
2023/03/23 14:37:22 Overlapping Sections in Generated Elf: .debug_info
2023/03/23 14:37:22 Overlapping Sections in Generated Elf: .debug_ranges
2023/03/23 14:37:22 Overlapping Sections in Generated Elf: .symtab
2023/03/23 14:37:22 Overlapping Sections in Generated Elf: .strtab
2023/03/23 14:37:22 Start section header table at: 84edb0
^C

But if I stop the launcher and try to run it again with the same app I get the following error:

$ ./launcher app
2023/03/23 14:37:34 Shellcode Length:  46
2023/03/23 14:37:34 Error: unknown compression type 'COMPRESS_ZLIB+50401537' in record at byte 0x48c000

The only way I've found around this was to delete the app and recompile it:

$ rm app
$ go build -o app
$ ./launcher app
2023/03/23 14:37:51 Shellcode Length:  46
2023/03/23 14:37:51 Overlapping Sections in Generated Elf: .debug_line
2023/03/23 14:37:51 Overlapping Sections in Generated Elf: .debug_gdb_scripts
2023/03/23 14:37:51 Overlapping Sections in Generated Elf: .debug_info
2023/03/23 14:37:51 Overlapping Sections in Generated Elf: .debug_ranges
2023/03/23 14:37:51 Overlapping Sections in Generated Elf: .symtab
2023/03/23 14:37:51 Overlapping Sections in Generated Elf: .strtab
2023/03/23 14:37:51 Start section header table at: 84edb0

Is there something I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant