Update nessus.rb

Changed the line that parses the input for the nessus_connect password. It will now split the user input by the last occurrence of the at sign (@) instead of the first occurrence. This will prevent improperly parsed passwords due to an at sign (@) in the password.
This commit is contained in:
Ronni3X
2022-05-11 18:33:33 -04:00
committed by GitHub
parent 110998d67b
commit 33cfc7ce71
+1 -1
View File
@@ -348,7 +348,7 @@ module Msf
case args.length
when 1,2
if args[0].include? "@"
cred,targ = args[0].split('@', 2)
cred,doesnotmatter,targ = args[0].rpartition('@')
@user,@pass = cred.split(':', 2)
targ ||= '127.0.0.1:8834'
@host,@port = targ.split(':', 2)