Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 python 我想在发送 DNS 查询时欺骗 srcip 地址?
Python代码不是必需的吗?甚至 shell 命令也能达到目的。
我试过 dig 但错误来了。例如
$dig -b 10.0.1.1 google.com dig: isc_socket_bind: address not available
谁能知道该怎么做?
谢谢。
人挖 说
-b address
Set the source IP address of the query to address. This must be a valid address on one of the host's network interfaces or 0.0.0.0 or ::. An optional port may be specified by appending: #<port>
因此 10.0.0.1 (或您使用的任何欺骗地址)应该是您本地网络中的有效网络 IP。