How to use the scapy.automaton.ATMT.state function in scapy

To help you get started, we’ve selected a few scapy examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nccgroup / BLESuite / scapy / scapy / layers / tls / automaton_cli.py View on Github external
    @ATMT.state()
    def TLS13_WAITING_CERTIFICATE(self):
        self.get_next_msg()
github secdev / scapy / scapy / layers / tftp.py View on Github external
    @ATMT.state(error=1)
    def ERROR(self, pkt):
        split_bottom_up(UDP, TFTP, dport=self.my_tid)
        return pkt[TFTP_ERROR].summary()
github secdev / scapy / scapy / layers / tls / automaton_srv.py View on Github external
    @ATMT.state()
    def SSLv2_CLOSE_NOTIFY(self):
        """
        There is no proper way to end an SSLv2 session.
        We try and send a 'goodbye' message as a substitute.
        """
        self.vprint()
        self.vprint("Trying to send 'goodbye' to the client...")
github secdev / scapy / scapy / layers / tls / automaton_srv.py View on Github external
    @ATMT.state()
    def tls13_RECEIVED_CLIENTFLIGHT2(self):
        pass
github secdev / scapy / scapy / layers / tls / automaton_cli.py View on Github external
    @ATMT.state()
    def SSLv2_WAITING_SERVERFINISHED(self):
        self.get_next_msg()
        raise self.SSLv2_RECEIVED_SERVERFINISHED()