def __init__(self): EthLayerOperator.__init__(self,'BadMAC','Inject packet with a correct IP address but a bad MAC address') self.add_param(StringParam('BADMAC','10:C1:C1:C1:C1:33','Mac address to be used')) self.add_param(IntParam('numframe',2,'Frame with bad Mac',1))
def __init__(self): EthLayerOperator.__init__(self,'EthBadMac_TCPFakePre3whs','Create fake reset and 3WHS with correct IP address and bad MAC ') self.add_param(StringParam('BADMAC','00:10:26:C0:40:01','Mac address to be used')) self.add_param(IntParam('timer', 2,'Timeout after fake 3whs packets',0))