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

process migration (Linux) #15714

Open
gabriel-maxx opened this issue Sep 27, 2021 · 7 comments
Open

process migration (Linux) #15714

gabriel-maxx opened this issue Sep 27, 2021 · 7 comments
Labels
feature question Questions about Metasploit Usage

Comments

@gabriel-maxx
Copy link

gabriel-maxx commented Sep 27, 2021

I ran these two payloads: linux/x86/meterpreter_reverse_tcp and linux/x86/meterpreter/reverse_tcp

and then I tried to migrate to another process, and then, it says it's not supported, what's going on?

these are the same payloads used here: https://www.rapid7.com/blog/post/2015/01/04/12-days-of-haxmas-meterpreter-migration-now-also-for-linux/

@gabriel-maxx gabriel-maxx added the question Questions about Metasploit Usage label Sep 27, 2021
@timwr
Copy link
Contributor

timwr commented Oct 20, 2021

migration is only supported on the native Windows meterpreter currently. It would be possible to add it to the new linux meterpreter (using ptrace?) but it's not done yet. I believe the code from that blog post was depreciated when we switched from the old unstable linux meterpreter: https://github.com/rapid7/meterpreter to mettle: https://github.com/rapid7/mettle
That said, it wasn't a high priority in my opinion. What's your use case for it?

@timwr timwr added the feature label Oct 20, 2021
@gabriel-maxx
Copy link
Author

migration is only supported on the native Windows meterpreter currently. It would be possible to add it to the new linux meterpreter (using ptrace?) but it's not done yet. I believe the code from that blog post was depreciated when we switched from the old unstable linux meterpreter: https://github.com/rapid7/meterpreter to mettle: https://github.com/rapid7/mettle That said, it wasn't a high priority in my opinion. What's your use case for it?

could you port it using ptrace? I would be so grateful to have such an amazing feature in Linux again...

@gabriel-maxx
Copy link
Author

@timwr coming soon?

@timwr
Copy link
Contributor

timwr commented Nov 11, 2021

What's your use case for it?

@gabriel-maxx
Copy link
Author

gabriel-maxx commented Nov 11, 2021

What's your use case for it?

I'll give you 5 reasons, in my opinion:

1: become part of a process and inherit its functions

2: Hiding the process to gain persistence and avoid detection

3: Change the process architecture to run some payloads with the correct architecture

4: I could use this feature on Android too,using aarch64,armle,mipsle,x64/x86

5: Migrate to a more stable process

@gabriel-maxx
Copy link
Author

@timwr coming soon?

@nullcult
Copy link

nullcult commented Jul 3, 2023

What's your use case for it?

Mine would be persistence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature question Questions about Metasploit Usage
Projects
None yet
Development

No branches or pull requests

3 participants