Update nessus.rb

This commit is contained in:
Ronni3X 2022-05-11 19:56:32 -04:00 committed by GitHub
parent 0a2293f20b
commit 83bfc73e09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -348,7 +348,7 @@ module Msf
case args.length case args.length
when 1,2 when 1,2
if args[0].include? "@" if args[0].include? "@"
cred,doesnotmatter,targ = args[0].rpartition('@') cred, _split, targ = args[0].rpartition('@')
@user,@pass = cred.split(':', 2) @user,@pass = cred.split(':', 2)
targ ||= '127.0.0.1:8834' targ ||= '127.0.0.1:8834'
@host,@port = targ.split(':', 2) @host,@port = targ.split(':', 2)