From 19d20965db291191a749fb2670b288adae35381c Mon Sep 17 00:00:00 2001 From: Jonathan Herrewijnen Date: Mon, 12 Aug 2024 16:57:40 +0200 Subject: [PATCH] updated docs --- source/dwc3_test/Makefile | 9 +++++---- source/dwc3_test/dwc3.elf | Bin 7920 -> 7920 bytes source/dwc3_test/dwc3.o | Bin 1832 -> 1832 bytes source/exploit/debugger/Makefile | 17 +++++++++++++++++ source/exploit/modify_bin.py | 8 ++++++++ source/exploit/stage1/Makefile | 1 + 6 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 source/exploit/debugger/Makefile create mode 100644 source/exploit/modify_bin.py diff --git a/source/dwc3_test/Makefile b/source/dwc3_test/Makefile index 28d2fe1..07a1bb1 100644 --- a/source/dwc3_test/Makefile +++ b/source/dwc3_test/Makefile @@ -8,10 +8,11 @@ OBJCOPY := $(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64 LD := $(ANDROID_NDK_ROOT)/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android-ld.bfd #==================Target Samsung S7 (8890)================== -CFLAGS_SAMSUNGS7 = -Os +CFLAGS_SAMSUNGS7 = -Os # -Os for optimization for size dwc3: - $(CC) entry.S -c -o entry.o $(CFLAGS_SAMSUNGS7) - $(CC) $(CFLAGS_SAMSUNGS7) -c test_dwc3.c -o dwc3.o - $(LD) -T test_dwc3.ld entry.o dwc3.o -o dwc3.elf --just-symbols=symbols.txt + $(CC) entry.S -c -o entry.o $(CFLAGS_SAMSUNGS7) # -c compiles assembly code, and -o creates an object file (containing linking and symbol information) + $(CC) $(CFLAGS_SAMSUNGS7) -c test_dwc3.c -o dwc3.o # compiles test_dwc3.c to dwc3.o + $(LD) -T test_dwc3.ld entry.o dwc3.o -o dwc3.elf --just-symbols=symbols.txt # -T for linker script, --just-symbols for symbols file $(OBJCOPY) -O binary dwc3.elf dwc3.bin + \ No newline at end of file diff --git a/source/dwc3_test/dwc3.elf b/source/dwc3_test/dwc3.elf index 153138950c1b18fc7f5c7a8d230c93173583a341..ff987b842a1e8384bf666e38987fe7412b3ea1b3 100755 GIT binary patch delta 143 zcmexh`@wd@O-X%o14Bzo3uA?(#NyNxh5S5)B4aaCGh@SKV@-wRoW#6zg|gJ5;!L1~ zrJjMF zo`IglWDY4SJ0k=06!XNSWWz+G#H2Li)HI6}6JrBIb7Qj7CtfuW_Pg|R|XVsUDULVlh?k+GSnnXzHAv8FB&HgE@ delta 131 zcmZ3%w}Nj&8>6JDrGbHgsii_vVsUDULVlh?k+GSnnXzH=Drmrs@$m`sRj|}E(6cBm c%hQ}($f~e8fXRY|aqHwxHgiV9$p_ie0k;7q!T