摘要: 将网卡更改为混杂模式 将网卡更改为混杂模式 网卡工作模式有4种,分别是:广播(Broadcast)模式多播(Multicast)模式单播模式(Unicast)混杂模式(Promiscuous)。 在混杂模式下的网卡能够接收一切通过它的数据,而不管该数据目的地址是否是它。如果通过程序将网卡的工作模式设 阅读全文
posted @ 2022-11-09 21:01 myrj 阅读(1144) 评论(0) 推荐(0) 编辑
摘要: import socket # the public network interface HOST = socket.gethostbyname(socket.gethostname()) # create a raw socket and bind it to the public interfa 阅读全文
posted @ 2022-11-09 20:40 myrj 阅读(167) 评论(0) 推荐(0) 编辑
摘要: import socket import os host = '10.81.226.234' def main(): # 判断系统是否为windows if os.name == 'nt': # windwos允许嗅探任何协议 socket_protocol = socket.IPPROTO_IP 阅读全文
posted @ 2022-11-09 19:39 myrj 阅读(212) 评论(0) 推荐(1) 编辑
摘要: #!/usr/bin/python #--*--coding=utf-8--*-- from scapy.all import * interface = 'wlan1' probeReqs = [] def sniffProbes(pkt): if pkt.haslayer(Dot11ProbeR 阅读全文
posted @ 2022-11-09 19:20 myrj 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 这个命令在本机有多个网卡时非常有用。比如,我的机器装有3块网卡,而我只抓第二块网卡上的包,那么我用windump –D列出机器上所有的网卡,再指定只抓第二块网卡的包,方法如下: windump –D windump –i 2(网卡序号) 2、windump –n 不解析主机名,直接显示抓包的主机IP 阅读全文
posted @ 2022-11-09 18:31 myrj 阅读(182) 评论(0) 推荐(0) 编辑
摘要: windows安装WinDump 1、下载软件,放在C盘: WinDump.exehttps://www.winpcap.org/windump/install/default.htmWinPcap_4_1_3.exe(windows server需要安装这个)https://www.winpcap 阅读全文
posted @ 2022-11-09 15:15 myrj 阅读(406) 评论(0) 推荐(0) 编辑