Home  >  Q&A  >  body text

linux - 关于Scapy模拟TCP三次握手的问题?

巴扎黑巴扎黑2742 days ago769

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-04-17 16:51:48

    First let’s clarify the characters: Linux protocol stack, Windows protocol stack; scapy

    Then go through the process from the beginning

    1. scapy sent a hello (syn) to the Windows protocol stack

    2. Windows accepted scapy’s greeting and responded with a good (syn_ack)

    3. But the Linux kernel received this package, because it had not sent hello (syn) to the peer, so there was no 5-tuple information, and suddenly received a good (syn_ack), I was shocked and said quickly I don’t know you, go away (rst)

    4. Windows was very sad after receiving this package and forgot about saying hello to scapy

    5. And scapy didn’t know what happened, and then got close to Windows (ack)

    6. Windows was very angry. First he greeted me, then asked me to go away, and now he is getting close to me for no reason. I will ignore you (rst)

    This is how these two rsts came about.

    reply
    0
  • Cancelreply