from scapy.all import *
# اسکن پورت 80 با SYN
pkt = IP(dst="192.168.1.1") / TCP(dport=80, flags="S")
resp = sr1(pkt, timeout=1)
if resp and resp[TCP].flags == "SA":
print("پورت 80 بازه!")
ایرادات این کد را پیدا کنید .
@TryCodeBox
TR Try Code Box @trycodebox · 342 subscribers from scapy.all import *
# اسکن پورت 80 با SYN
pkt = IP(dst="192.168.1.1") / TCP(dport=80, flags="S")
resp = sr1(pkt, timeout=1)
if resp and resp[TCP].flags == "SA":
print("پورت 80 بازه!")