-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
Improve post/linux/gather/checkcontainer #18191
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the enhancements @jvoisin! I did some testing, everything worked great when testing in a Docker container:
msf6 post(linux/gather/checkcontainer) > set session -1
session => -1
msf6 post(linux/gather/checkcontainer) > run
[+] This appears to be a 'Docker' container
[*] Post module execution completed
msf6 post(linux/gather/checkcontainer) >
I ran into some issues testing some of the other contains and have left some suggestions.
I was wondering if you could please do me a favour and add the container setup instructions from my comments to a # Vulnerable Application
section of the documentation file documentation/modules/post/linux/gather/checkcontainer.md
?
The containers were created with SSH access enabled so that the auxiliary/scanner/ssh/ssh_login
could be used to establish the initial session.
Co-authored-by: jheysel-r7 <[email protected]>
Testing is as expected 🎉 Docker detection
Podman detection
LXC detection
WSL detection
|
Release NotesThis PR adds support for detecting whether a metasploit session is running in a Podman container and improves detection for sessions running in Docker, LXC and WLS containers. |
Cousin on #18190 but for containers
Verification
List the steps needed to make sure this thing works