metasploit-framework icon indicating copy to clipboard operation
metasploit-framework copied to clipboard

Metaspoilt , No session was created

Open Mosasi opened this issue 2 years ago • 8 comments

Metasploit Documentation: https://docs.metasploit.com/

[] No payload configured, defaulting to cmd/unix/interact RHOST => ...* [] Exploit running as background job 0. [] Exploit completed, but no session was created. msf6 exploit(unix/ftp/vsftpd_234_backdoor) > [-] ...:21 - Exploit failed [unreachable]: Rex::HostUnreachable The host (...:21) was unreachable.

I am facing a problem, what are the solutions in this case?

Mosasi avatar Feb 25 '24 09:02 Mosasi

The remote port of the remote host was not reachable.

Set rport and rhost to the correct port and host respectively.

bcoles avatar Feb 25 '24 09:02 bcoles

The remote port of the remote host was not reachable.

Set rport and rhost to the correct port and host respectively.

msf6 exploit(unix/ftp/vsftpd_234_backdoor) > run

[-] ...:21 - Exploit failed [unreachable]: Rex::ConnectionRefused The connection was refused by the remote host (...:21). [*] Exploit completed, but no session was created. msf6 exploit(unix/ftp/vsftpd_234_backdoor) >

Mosasi avatar Feb 25 '24 10:02 Mosasi

The remote port on the remote host was not reachable.

Set rport and rhost to the correct port and host respectively.

bcoles avatar Feb 25 '24 11:02 bcoles

"msf6 > use exploit/unix/ftp/vsftpd_234_backdoor [*] No payload configured, defaulting to cmd/unix/interact"

The problem exists before I start working on rhost rport

Mosasi avatar Feb 25 '24 12:02 Mosasi

I have set the correct RHOST.

Metasploit Documentation: https://docs.metasploit.com/

[] No payload configured, defaulting to cmd/unix/interact RHOST => ...* [] Exploit running as background job 0. [] Exploit completed, but no session was created. msf6 exploit(unix/ftp/vsftpd_234_backdoor) > [-] ...:21 - Exploit failed [unreachable]: Rex::HostUnreachable The host (...:21) was unreachable.

I am facing a problem, what are the solutions in this case?

*And here I had set the correct RHOST.

Mosasi avatar Feb 25 '24 12:02 Mosasi

"msf6 > use exploit/unix/ftp/vsftpd_234_backdoor [*] No payload configured, defaulting to cmd/unix/interact"

The problem exists before I start working on rhost rport

There is no problem here. You have not selected a payload so Metasploit chose one for you.

bcoles avatar Feb 25 '24 13:02 bcoles

"msf6 > use exploit/unix/ftp/vsftpd_234_backdoor [*] No payload configured, defaulting to cmd/unix/interact" The problem exists before I start working on rhost rport

There is no problem here. You have not selected a payload so Metasploit chose one for you.

I know, but afterward, he repeats the same sentence to me ([-] ...:21 - Exploit failed [unreachable]: Rex::ConnectionRefused The connection was refused by the remote host (...:21). [*] Exploit completed, but no session was created. msf6 exploit(unix/ftp/vsftpd_234_backdoor) >)

Mosasi avatar Feb 25 '24 13:02 Mosasi

Hi!

This issue has been left open with no activity for a while now.

We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 30 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not stale" to keep this issue open!

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Mar 26 '24 15:03 github-actions[bot]

Hi again!

It’s been 60 days since anything happened on this issue, so we are going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error please feel free to reopen this issue or create a new one if you need anything else.

As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

github-actions[bot] avatar Apr 25 '24 15:04 github-actions[bot]