My solutions for CTFs
0

Configure Feed

Select the types of activity you want to include in your feed.

Add helper script to debug x64 binary on Arm Mac

Takumi Akimoto (Dec 7, 2025, 12:53 AM +0900) b539d650 e5102870

+16
+2
docker/Dockerfile
··· 30 30 ./setup.sh && \ 31 31 cd ~ && \ 32 32 rm -rf ~/pwndbg 33 + 34 + COPY --chown=ubuntu:ubuntu gdb-rosetta.sh /usr/local/bin/gdb-rosetta
+14
docker/gdb-rosetta.sh
··· 1 + #!/bin/bash 2 + # https://github.com/docker/for-mac/issues/6921#issuecomment-2409324575 3 + 4 + if [ "$#" != "1" ]; then 5 + echo "Usage: $0 <path/to/program to debug>" >&2 6 + exit 1 7 + fi 8 + 9 + prog=$1 10 + ROSETTA_DEBUGSERVER_PORT=1234 $prog < /dev/tty & 11 + 12 + gdb \ 13 + -iex "file $prog" \ 14 + -iex "target remote localhost:1234"