From cec4abed2fbe4722928d2bfeb40355b3debd7998 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Tue, 19 May 2026 20:39:27 +0200 Subject: [PATCH] made rscan port optional --- source/rscan.src | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/rscan.src b/source/rscan.src index ce13a55..cec0f5a 100644 --- a/source/rscan.src +++ b/source/rscan.src @@ -1,13 +1,13 @@ -if params.len < 2 or params[0] == "-h" or params[0] == "--help" then +if params.len < 1 or params[0] == "-h" or params[0] == "--help" then current_program = get_shell.host_computer.File(program_path) exit("Usage: "+current_program.name+" [remote port]") end if mx = include_lib("/lib/metaxploit.so") ip = params[0] -port = params[1].to_int -if port == 0 then +if params.len == 1 or port == 0 then sess = mx.net_use(ip) else + port = params[1].to_int sess = mx.net_use(ip, port) end if if not sess then