那麼,我正在閱讀有關人們如何在他們的目標上沒有開放端口的情況下發起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