【发布时间】:2014-10-12 04:08:24
【问题描述】:
嗯,我正在阅读有关人们如何在目标上没有开放端口的情况下发起 DoS 攻击的文章。 我想看看这是如何在代码中实现的,因为使用套接字编程来发送数据包,您必须首先建立连接。
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")
如果我对某事感到困惑,请向我解释这是如何工作的。
【问题讨论】:
-
如果服务没有开放端口,为什么还要连上互联网?
-
防火墙让它看起来像没有开放的端口
标签: python sockets port denial-of-service