-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LLDB for remote debugging #2511
Comments
Using There is no native support for Feel free to contribute your changes back if you get lldb integration working. |
First of all thank you so much for your quick answer! I wasted so much time on this already and I think lldb wrappers would be sooooo much pain to implement (but now that I write this probably the only viable solution for the future). Maybe once we figure this out a tutorial for Apple Silicon users will be a better solution for now. Ok so I'll explain my setup/problems in a bit more detail and I think the hell I am in right now will become pretty clear....
My 'solution(s)': Chapter 1: Remote x86_64 Linux
Chapter 2: GDB on Apple SiliconThis is my debug script: from pwn import gdb, ssh
user, passwd = "root", "******"
ssh_host = "192.168......" # VM Bridge IP
shell = ssh(user, ssh_host, password=passwd)
io = gdb.debug("whoami", ssh=shell)
io.interactive()
Sorry for the very long writeup but in case I have to do setup this sh** again at least I know where to look |
Ok just solved it by creating a shell script called |
Is there any way to use an LLDB remote server (or ssh if lldb server doesn't work) + a local LLDB client to debug binaries just like with
gdb.debug()
?My problem is that I am on an M3 MacBook and there is no (stable)
gdbserver
for arm64. My only possibility to debug x86 binaries is connecting to a gdb/lldb server on a x86 qemu VM and then using pwntoolsssh
to run executables there. But I cannot debug because pwntools depends ongdbserver
installed locally.The text was updated successfully, but these errors were encountered: