Guest User

Untitled

a guest
Jun 25th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. Problem:
  2.  
  3. จะเอา IDA Pro มา remote debug binary ใน linux container ขึ้นว่า
  4.  
  5. root@c8a5bde5162d: ~# gdbserver 0.0.0.0:4444 ./main
  6. gdbserver: linux_ptrace_test_ret_to_nx: Cannot PTRACE_TRACEME: Operation not permitted
  7. gdbserver: linux_ptrace_test_ret_to_nx: status 256 is not WIFSTOPPED!
  8.  
  9. Solution:
  10.  
  11. $ docker ps
  12. $ docker commit <container-id> linux4gdb
  13. $ docker run -it \
  14. > --name linux4gdb1 \
  15. > --privileged \
  16. > --security-opt=apparmor:unconfined \
  17. > -v ~/path/to/share/:/path/to/share/ \
  18. > -p 4445:4445 \
  19. > linux4gdb
  20. $ gdbserver 0.0.0.0:4445 ./main
  21. Process ./main created; pid = 26
  22. Listening on port 4445
  23. Remote debugging from host 172.17.0.1
Add Comment
Please, Sign In to add comment