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

wsl2[ubuntu24-04]:msfpro runs the Creating scripts directory command. The system displays that port 50505 is occupied #19786

Closed
try-to-change opened this issue Jan 4, 2025 · 5 comments
Labels
question Questions about Metasploit Usage

Comments

@try-to-change
Copy link

image

@try-to-change try-to-change added the question Questions about Metasploit Usage label Jan 4, 2025
@try-to-change
Copy link
Author

I am sure that port 50505 is not currently occupied
{E236173C-A63B-4948-8369-3C1E8473B4FE}

@try-to-change try-to-change changed the title msfpro runs the Creating scripts directory command. The system displays that port 50505 is occupied wsl2[ubuntu24-04]:msfpro runs the Creating scripts directory command. The system displays that port 50505 is occupied Jan 4, 2025
@adfoster-r7
Copy link
Contributor

You should be able to check what's running on that port with:

sudo lsof -i :50505

i.e. for my environment:

$ sudo lsof -i :50505
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
.ruby.bin 2970 root   13u  IPv4  66278      0t0  TCP localhost:50505 (LISTEN)

@try-to-change
Copy link
Author

You should be able to check what's running on that port with:

sudo lsof -i :50505

i.e. for my environment:

$ sudo lsof -i :50505
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
.ruby.bin 2970 root   13u  IPv4  66278      0t0  TCP localhost:50505 (LISTEN)

I scanned port 50505 on WSL2 and also on Windows. There was no process occupying it in either case.
image

@try-to-change
Copy link
Author

When installing the script "metasploit-latest-linux-x64-installer.run", only the script directory is created and it is empty. I installed it once before and then shut it down in the middle. In this case, how can the remnants of the last installation be completely removed and the installation be successful
image
image

@try-to-change
Copy link
Author

It's solved. I obtained the uninstall file under /opt/metasploit from VMware and executed it in WSL, then the installation could proceed.

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

No branches or pull requests

2 participants