那么,我正在阅读有关人们如何在他们的目标上没有开放端口的情况下发起DoS攻击。 我想看看这是如何在代码中,因为套接字编程发送一个数据包,你必须首先进行连接。Python - 发送数据包到没有开放端口的Internet协议?
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) #You could use UDP protocol, but that gets lost on the way if it cant send the packet through that port.
s.connect(("target", 80)) #You can't do the next command without this
s.send("IP packet")
如果我对某些东西感到困惑,请向我解释这是如何工作的。
如果服务没有开放端口,为什么它甚至连接到互联网? – Cameron 2014-10-12 04:12:00
防火墙使它看起来像没有开放的端口 – user3818650 2014-10-12 04:24:09