Advertisement
Zy0d0x

Untitled

Dec 8th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. # import the package
  2. from PyBurprestapi import burpscanner
  3.  
  4. # setup burp connection
  5. host = 'http://127.0.0.1:1337/'
  6.  
  7. # Burp API key
  8. key = 'ADDD IN GENERATED KEY HERE'
  9.  
  10. # importing host and key
  11. bi = burpscanner.BurpApi(host, key)
  12.  
  13. #
  14. data = '{"urls":["http://127.0.0.1"]}'
  15.  
  16. # scan Launch
  17. response = bi.scan(data)
  18.  
  19. #issues = bi.issue_definitions()
  20.  
  21. #print issues
  22.  
  23. # Get the response message
  24. print response.message
  25.  
  26. # Get response header (Scan ID found in Location)
  27. print response.response_headers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement