Metasploit-framework: Exploit failed Rex:bindfailed the address is already in use or unavailable

Created on 6 Jan 2018  路  10Comments  路  Source: rapid7/metasploit-framework

image
please help me fix this problem

Most helpful comment

Or restart msfconsole if Ruby is holding on to the port.

All 10 comments

Just port 8080 is already busy on your machine.

i try to turn off it. But it not work

lsof -i :8080

Or restart msfconsole if Ruby is holding on to the port.

how do you restart ruby, i'm using armitage and I have same issue

Try exiting Armitage. There may be an RPC daemon running, though. I would look through your process list and kill any relevant Ruby processes by hand to be sure. If all else fails, reboot.

Restarting works, but I don't want to restart everytime, you know what I mean? I know that it has to do with the port being taken but how do I close that port so I can open port 4444 again. Or in your case, how would I kill any Ruby process by hand? I tried command "lsof -t -i:4444", but that didn't work.

@hdawg12 To see services running on port 4444, run:

lsof -i :4444

To learn more about lsof, run man lsof

To kill a process by process ID, run:

kill -9 PID

To learn more about kill, run man kill

To stop running jobs in Metasploit, use jobs -k <job id>

To learn more about the jobs command, use jobs -h

For anything related to Armitage, ask the Armitage team.

ok, I"ll give those a shot. Thanks

@hdawg12 To see services running on port 4444, run:

lsof -i :4444

To learn more about lsof, run man lsof

To kill a process by process ID, run:

kill -9 PID

To learn more about kill, run man kill

To stop running jobs in Metasploit, use jobs -k <job id>

To learn more about the jobs command, use jobs -h

For anything related to Armitage, ask the Armitage team.

thank you!!! worked like a charm... been searched all over the net

Was this page helpful?
0 / 5 - 0 ratings

Related issues

handsomebeast picture handsomebeast  路  3Comments

ejholmes picture ejholmes  路  3Comments

adrianmihalko picture adrianmihalko  路  3Comments

notdodo picture notdodo  路  3Comments

Acidical picture Acidical  路  3Comments