1. HelloWorld的Demo代码

  1. from burp import IBurpExtender
  2. from java.io import PrintWriter
  3. from java.lang import RuntimeException
  4. class BurpExtender(IBurpExtender):
  5. #
  6. # implement IBurpExtender
  7. #
  8. def registerExtenderCallbacks(self, callbacks):
  9. # set our extension name
  10. callbacks.setExtensionName("Hello world extension")
  11. # obtain our output and error streams
  12. stdout = PrintWriter(callbacks.getStdout(), True)
  13. stderr = PrintWriter(callbacks.getStderr(), True)
  14. # write a message to our output stream
  15. stdout.println("Hello output")
  16. # write a message to our error stream
  17. stderr.println("Hello errors")
  18. # write a message to the Burp alerts tab
  19. callbacks.issueAlert("Hello alerts")
  20. # throw an exception that will appear in our error stream
  21. raise RuntimeException("Hello exception")

2. 安装方法

3. 业务需求

  • 将自己所有的访问请求都通过SLS记录下来。

4. 理论与API

  • 待补充。