Update nessus.rb
This commit is contained in:
parent
0a2293f20b
commit
83bfc73e09
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue