Added an argument for username and password, which takes precendece over nessus. Fixed #5

This commit is contained in:
Shaun McCullough
2017-11-27 10:02:53 -05:00
parent fedbb18bb2
commit 35b7093762
2 changed files with 19 additions and 4 deletions

View File

@ -18,12 +18,16 @@ def main():
help='Path of config file')
parser.add_argument('-v', '--verbose', dest='verbose', action='store_true', default=True,
help='Prints status out to screen (defaults to True)')
parser.add_argument('-u', '--username', dest='username', required=False, default=None, help='The NESSUS username')
parser.add_argument('-p', '--password', dest='password', required=False, default=None, help='The NESSUS password')
args = parser.parse_args()
try:
vw = vulnWhisperer(config=args.config,
verbose=args.verbose)
verbose=args.verbose,
username=args.username,
password=args.password)
vw.whisper_nessus()
sys.exit(1)