Advertisement
Guest User

Untitled

a guest
Mar 14th, 2016
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/usr/bin/python
  2.  
  3. from nessrest import ness6rest
  4.  
  5.  
  6. protocol = 'https'
  7. server = '192.168.100.1'
  8. port = 8834
  9. user = ''
  10. password = ''
  11. policy = 'Default ScannerNet'
  12. label = 'test-api-scan'
  13. target = 'www.google.com'
  14. scanner = ness6rest.Scanner(
  15. url="%s://%s:%s" % (protocol, server, port),
  16. login=user, password=password, insecure=True)
  17. scanner.policy_set(policy)
  18. scanner.scan_add(target, name=label)
  19. scanner.scan_run()
  20.  
  21. print "Done."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement