این کد یک افزونه Burp Suite است که به شما اجازه میدهد تا ترافیک HTTP و HTTPS را بررسی کنید و پاسخهای سرور را چاپ کنید.
شما میتوانید این کد را با توجه به نیاز خود تغییر دهید و از آن برای تست سایت خود استفاده کنید.
شما میتوانید این کد را با توجه به نیاز خود تغییر دهید و از آن برای تست سایت خود استفاده کنید.
کد:
#This code is a Burp Suite plugin that allows you to inspect HTTP and HTTPS traffic and print server responses. You can change this code according to your needs and use it to test your site. #code bu e1.coders from burp import IBurpExtender from burp import IHttpListener class BurpExtender(IBurpExtender, IHttpListener): def registerExtenderCallbacks(self, callbacks): self._callbacks = callbacks self._helpers = callbacks.getHelpers() callbacks.setExtensionName("My Burp Extension") callbacks.registerHttpListener(self) def processHttpMessage(self, toolFlag, messageIsRequest, currentRequest): if not messageIsRequest: response = currentRequest.getResponse() analyzedResponse = self._helpers.analyzeResponse(response) headers = analyzedResponse.getHeaders() body = response[analyzedResponse.getBodyOffset():].tostring() print("[+] Response:") print(headers) print(body)