Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Problem:
- จะเอา IDA Pro มา remote debug binary ใน linux container ขึ้นว่า
- root@c8a5bde5162d: ~# gdbserver 0.0.0.0:4444 ./main
- gdbserver: linux_ptrace_test_ret_to_nx: Cannot PTRACE_TRACEME: Operation not permitted
- gdbserver: linux_ptrace_test_ret_to_nx: status 256 is not WIFSTOPPED!
- Solution:
- $ docker ps
- $ docker commit <container-id> linux4gdb
- $ docker run -it \
- > --name linux4gdb1 \
- > --privileged \
- > --security-opt=apparmor:unconfined \
- > -v ~/path/to/share/:/path/to/share/ \
- > -p 4445:4445 \
- > linux4gdb
- $ gdbserver 0.0.0.0:4445 ./main
- Process ./main created; pid = 26
- Listening on port 4445
- Remote debugging from host 172.17.0.1
Add Comment
Please, Sign In to add comment