Skip to content
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

Support macOS #50

Open
adsr opened this issue Nov 21, 2018 · 9 comments
Open

Support macOS #50

adsr opened this issue Nov 21, 2018 · 9 comments

Comments

@adsr
Copy link
Owner

adsr commented Nov 21, 2018

https://developer.apple.com/documentation/kernel/1585350-vm_read?language=objc

@keyganker
Copy link

Looking forward。。。

@tuaris
Copy link

tuaris commented Oct 21, 2020

If this request is accepted, please also consider #70
In the mean time I will research what Linux system calls need to be translated to FreeBSD equivalents.

@adsr
Copy link
Owner Author

adsr commented Oct 22, 2020

Thank you @tuaris. I added #113 to track FreeBSD support. I have a FreeBSD VM so I can actually help with that one.

Re: macOS (#50), I do not have access to a mac. If someone has mac VM that I can remote into, I'd be happy to play around with it.

Re: Windows (#51), I do have a Windows machine somewhere... I'll add to my backlog.

@mpociot
Copy link

mpociot commented Jan 8, 2021

@adsr Is there any way I can help with adding Mac support? How could I provide a VM for you?

@adsr
Copy link
Owner Author

adsr commented Jan 10, 2021

Hi @mpociot. Recently I discovered https://github.com/fastai/fastmac so it is on my backlog to investigate. We will need to port the ELF-specific stuff in addr_objump.c and the copy_proc_mem function. Hopefully not much more.

@mpociot
Copy link

mpociot commented Mar 23, 2022

Hey @adsr
Sorry for pinging you on an old issue. I just keep coming back to this repository and would love to see this feature added.
I tried to look into this myself, but I have some very limited C knowledge and couldn't make it very far.

phpspy.c:716:9: error: implicit declaration of function 'process_vm_readv' is invalid in C99 [-Werror,-Wimplicit-function-declaration]

I'd love to help in any way to make this work

@adsr adsr mentioned this issue Apr 13, 2024
@adsr
Copy link
Owner Author

adsr commented Apr 13, 2024

Hi @mpociot sorry for the very delayed reply. process_vm_readv is a Linux-specific syscall. You might try looking at rbspy for ideas, specifically these repos:

https://github.com/rbspy/read-process-memory
https://github.com/rbspy/proc-maps

which have cross-platform routines for reading remote process memory.

It looks like that fastmac thing I mentioned above is no longer around. If someone wants to donate an old mac or provide a remote shell I'd be happy to hack on this.

@mpociot
Copy link

mpociot commented Apr 14, 2024

Feel free to ping me on X/Twitter at https://x.com/marcelpociot

Happy to provide a macOS Server for you 🙂

@mabu233
Copy link

mabu233 commented Aug 20, 2024

Hi, @mpociot
Please see https://github.com/mabu233/phpspy/tree/darwin
Testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants