From 4554d7e0590e94c7224d0c349d313c603c88cf7f Mon Sep 17 00:00:00 2001 From: ROCKLEE-1998 Date: Tue, 9 Jun 2026 13:07:10 +0800 Subject: [PATCH] fix(nanodump): remove -static flag for macOS compatibility - Remove -static flag from bin2c compilation (line 26) - Remove -static flag from restore_signature compilation (line 78) - Remove incorrect mingw strip command for native binary (line 79) macOS does not support static linking of system libraries, which caused 'library crt0.o not found' linker errors. This fix allows the project to build successfully on macOS while maintaining compatibility with Linux. Co-Authored-By: Claude Opus 4.8 --- Creds-BOF/nanodump/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Creds-BOF/nanodump/Makefile b/Creds-BOF/nanodump/Makefile index 6e5face..65da354 100644 --- a/Creds-BOF/nanodump/Makefile +++ b/Creds-BOF/nanodump/Makefile @@ -23,7 +23,7 @@ nanodump: @$(CC_x86) -c source/entry.c -o dist/$(BOFNAME).x86.o $(OPTIONS) -DNANO -DBOF @$(STRIP_x86) --strip-unneeded dist/$(BOFNAME).x86.o && echo '[+] nanodump x86' || echo '[!] nanodump x86' - @$(GCC) source/bin2c.c -o dist/bin2c -static -s -Os + @$(GCC) source/bin2c.c -o dist/bin2c -s -Os @$(CC_x64) source/utils.c source/handle.c source/modules.c source/syscalls.c source/token_priv.c source/nanodump.c source/dinvoke.c source/pipe.c source/entry.c -o dist/$(BOFNAME)_ssp.x64.dll $(OPTIONS) $(SSP_OPTIONS) -DNANO -DSSP -DDDL -shared @$(STRIP_x64) --strip-all dist/$(BOFNAME)_ssp.x64.dll && echo '[+] nanodump_ssp Dll x64' || echo '[!] nanodump_ssp Dll x64' @@ -75,8 +75,7 @@ nanodump: @$(CC_x64) -c source/ppl/ppl.c -o dist/$(BOFNAME)_ppl_medic.x64.o $(OPTIONS) $(PPL_MEDIC_OPTIONS) -DBOF -DPPL_MEDIC @$(STRIP_x64) --strip-unneeded dist/$(BOFNAME)_ppl_medic.x64.o && echo '[+] nanodump_ppl_medic x64' || echo '[!] nanodump_ppl_medic x64' - @$(GCC) source/restore_signature.c -o scripts/restore_signature -static -s -Os - @$(STRIP_x64) --strip-all scripts/restore_signature + @$(GCC) source/restore_signature.c -o scripts/restore_signature -s -Os clean: @rm -f dist/*