Code Monkey home page Code Monkey logo

ddos's Introduction

闲来无事,简单研究了以下dos攻击。原理大家都知道,如何实施才是问题。做了两个脚本削弱了访问强度,分别用于内网攻击和外网攻击。一般单个服务器或者相对较少服务器,只用一台主机发起攻击就能拒绝服务,内网效果更明显。

##思路

主要解决了两个问题

  • 单个主机发起攻击链接数量问题。这里使用多线程,只请求数据,不接收数据,写上足够多的headder以满足各种可能的优势。请求数据的时候尽可能的去寻找页面内容含量最多的网页。

  • 没有肉鸡怎么办?IP被封号怎么办?所以使用了代理服务器,怎么都封不过来。

##文件说明

├── ddos.py 单个IP攻击,常用于内网
├── list.txt 产生代理服务器的中间文件
├── proxy-ddos.py 
├── proxy.py 利用代理服务器攻击,常用于外网
├── README.md
├── result.txt 代理服务器列表
└── test-pro.sh linux测试脚本

##使用方法

对ddos.py: python ddos.py http://www.xxx.com/ [safe],safe是可选项,加上之后会保证服务器挂掉之后停止攻击

对proxy-py:python proxy-ddos.py http://www.xxx.com,攻击不会停止

想要停止攻击:

''' kill pgrep python '''

代理服务器需要更新,直接修改proxy.py文件findIP()中的i循环大小就可以了。也要随时注意代理网站随时会被查封

供学习使用,造成的结果作者概不负责**

ddos's People

Contributors

dantangfan avatar

Watchers

Eski Yin 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.