Code Monkey home page Code Monkey logo

drdos-framework's Introduction

Drdos Framework

README-EN

Drdos Framework是我学习反射型ddos的产出,我尝试将它设计为一个真正意义上的框架。这是它运行的图片。

image

郑重申明

该框架仅用于学习,禁止用于其他任何非法用途

介绍

Drdos框架是一个既可以用来校验IP是否存在drdos漏洞,又可以用来进行一些攻击测试的框架

环境准备

  1. 一台在公网的Linux服务器
  2. Golang环境

使用

  1. go get github.com/google/gopacket
  2. 运行go run main.go --help来查看帮助

check模式 [稳定性较好,check百万级IP不会出错]

go run main.go -m c -s xx.xx.xx.xx -type dns -api -o test.txt # 使用api查询,需要在config.go中进行修改
go run main.go -m c -s xx.xx.xx.xx -type dns -range xx.xx.xx.xx/24 -o test.txt # 扫描指定网段
go run main.go -m c -s xx.xx.xx.xx -type dns -f input.txt -o test.txt # 从文件中获取IP地址

attack模式

go run main.go -m a -f xxx -type dns -t xx.xx.xx.xx -p xx  # 要注意如果攻击没有效果,可能是前面有NAT

mix模式(觉得没有必要了,后期会逐步移除掉)

[*] 注意 : 在check和mix模式下,-o输出的文件在/data/results/目录下.

一些帮助

  1. --type 应该为 dns,mem,ntp,snmp,ssdp,portmap,ldap 中的一种
  2. 如果在阿里云上使用,记得在安全组上允许UDP,并把IP(即-s选项)设为eth0的网卡IP(而不是公网IP)

配置

默认的配置文件在 config/config.go ,下面是默认的配置

package config

const (
    ListenPort     = 50000 // Check ip列表的时候的监听端口
    Threshold      = 100   // 当包的大小大于阈值的时候,计数接受
    WaitTime       = 10    // 全部发包完毕后,等待其余数据包的时间
    Blacklists     = "/data/blacklists/blacklists"
    MaxAtktime     = 300 // 最大攻击时间
    AttackInterval = 0
    ShodanApi      = ""
    ShodanPage     = 10 // 默认搜索页数,10页=1000个
)

支持的协议

Port Protocol
53 dns
111 portmap
123 ntp
161 snmp
389 ldap
1900 ssdp
11211 memcache

更新计划

  1. HTTP API(考虑用Gin,直接模板渲染做个简单的WEB - UI)
  2. SHODAN| FOFA API
  3. Blacklist of attack
  4. Improve response check
  5. Support more protocol
  6. Use sqlite to save data

drdos-framework's People

Contributors

chriskalix avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.