Update tcp_handshake.py

This commit is contained in:
go-outside-helper 2024-03-14 17:53:46 +01:00 committed by GitHub
parent 9cec83522a
commit 4259fa1b27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,6 @@
#!/usr/bin/env python
__author__ = "bt3"
__author__ = "Mia Stein"
from scapy.all import *
@ -14,4 +14,4 @@ ACK = TCP(sport=1024, dport=80, flags='A', seq=12346, ack=ack)
send(ip/ACK)
PUSH = TCP(sport=1024, dport=80, flags='', seq=12346, ack=ack)
data = "HELLO!"
send(ip/PUSH/data)
send(ip/PUSH/data)