Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # import the package
- from PyBurprestapi import burpscanner
- # setup burp connection
- host = 'http://127.0.0.1:1337/'
- # Burp API key
- key = 'ADDD IN GENERATED KEY HERE'
- # importing host and key
- bi = burpscanner.BurpApi(host, key)
- #
- data = '{"urls":["http://127.0.0.1"]}'
- # scan Launch
- response = bi.scan(data)
- #issues = bi.issue_definitions()
- #print issues
- # Get the response message
- print response.message
- # Get response header (Scan ID found in Location)
- print response.response_headers
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement