Skip to content

Commit

Permalink
Fix test_console_run_module
Browse files Browse the repository at this point in the history
  • Loading branch information
benyissa committed Jul 17, 2024
1 parent 5aa6c5f commit 974ccd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/pymetasploit3/tests/test_console.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def test_console_manager_readwrite(client, cid):
def test_console_run_module(client, cid):
x = client.modules.use("exploit", "unix/ftp/vsftpd_234_backdoor")
x["RHOSTS"] = "127.0.0.1"
out = client.consoles.console(cid).run_module_with_output(x, mode="exploit")
out = client.consoles.console(cid).run_module_with_output(x)
assert type(out) == str
assert (
"[-] 127.0.0.1:21 - Exploit failed [unreachable]: Rex::ConnectionRefused The connection was refused by the remote host (127.0.0.1:21)."
Expand Down

0 comments on commit 974ccd1

Please sign in to comment.