Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- from nessrest import ness6rest
- protocol = 'https'
- server = '192.168.100.1'
- port = 8834
- user = ''
- password = ''
- policy = 'Default ScannerNet'
- label = 'test-api-scan'
- target = 'www.google.com'
- scanner = ness6rest.Scanner(
- url="%s://%s:%s" % (protocol, server, port),
- login=user, password=password, insecure=True)
- scanner.policy_set(policy)
- scanner.scan_add(target, name=label)
- scanner.scan_run()
- print "Done."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement