rapid7 / metasploit-framework

Metasploit Framework
https://www.metasploit.com/
Other
33.23k stars 13.79k forks source link

Stuck when running within Docker Desktop Desktop for Mac #19210

Open James4Ever0 opened 1 month ago

James4Ever0 commented 1 month ago

Steps to reproduce

How'd you do it?

  1. Install and run Docker app for macOS
  2. Run the image by docker run --rm -it parrotsec/security
  3. Run the command msfconsole and get stuck

Expected behavior

Shall invoke the console.

Current behavior

Get stuck forever.

Versions

Docker version

Docker version 26.1.1, build 4cf5afa

macOS version

Version 12.5 (Apple M1)

Parrot OS version

Distributor ID: Parrot Description: Parrot OS 5.3 (Electro Ara) Release: 5.3 Codename: ara

Metasploit version

Framework: 6.3.27-dev Console : 6.3.27-dev

Additional Information

If I change to the directory /usr/share/metasploit-framework first then run ./msfconsole it will not get stuck, and subsequent msfconsole invocations from anywhere will not get stuck.

James4Ever0 commented 4 weeks ago

One can mitigate this issue by:

# do not run in root directory '/'
docker run --rm -it -w /root parrotsec/security
msfconsole