an iintruderattack object that can be queried to obtain details about the attack in which the payload generator will be used @return new instance of iintruderpayloadgenerator that will be used to generate payloads for the attack *iintruderpayloadgenerator createnewinstance(iintruderattack attack)the first bit of documentation tells us to get our extension registered correctly with burp we're going to extend the main burp class as well as the iintruderpayloadgeneratorfactory class next we see that burp is expecting two functions to be present in our main class the getgeneratorname function will be called by burp to retrieve the name of our extensionand we are expected to return string the createnewinstance function expects us to return an instance of the iintruderpayloadgeneratorwhich will be second class that we have to create now let' implement the actual python code to meet these requirementsand then we'll look at how the iintruderpayloadgenerator class gets added open new python filename it bhp_fuzzer pyand punch out the following codefrom burp import iburpextender from burp import iintruderpayloadgeneratorfactory from burp import iintruderpayloadgenerator from java util import listarraylist import random class burpextender(iburpextenderiintruderpayloadgeneratorfactory)def registerextendercallbacks(selfcallbacks)self _callbacks callbacks self _helpers callbacks gethelpers(callbacks registerintruderpayloadgeneratorfactory(selfreturn def getgeneratorname(self)return "bhp payload generatordef createnewinstance(selfattack)return bhpfuzzer(selfattackso this is the simple skeleton of what we need in order to satisfy the first set of requirements for our extension we have to first import the iburpextender class which is requirement for every extension we write we follow this up by importing our necessary classes for creating an intruder payload generator next we define our burpextender class which extends the iburpextender and iintruderpayloadgeneratorfactory classes we then use the registerintruderpayloadgeneratorfactory function to register our class so that the intruder tool is aware that we can generate payloads next we implement the getgeneratorname function to simply return the name of our pay-load generator the last step is the createnewinstance function that receives the attack parameter and returns an instance of the iintruderpayloadgenerator classwhich we called bhpfuzzer let' have peek at the documentation for the iintruderpayloadgenerator class so we know what to implement /*