hoho-cc-attack | 金条k的博客

hoho-cc-attack

hoho-cc-attack

项目开源

github(https://github.com/sansjtw/hoho-cc-attack)
gitee(https://gitee.com/sansjtw/hoho-cc-attack)

介绍

该项目提供多个语言的简易cc-attack(Challenge Collapsar),攻击类型为HTTP Flood洪水攻击类型,请注意合法使用。

语言

pythoncjavashell
JavaScriptphphtmlgo

使用说明

注:以下格式中<target_url>为网址url,<num_requests>为数量,以cc.c编译后为列:

                    
./cc http://example.com 1000
plaintext

python

cc.py程序位于python内。
使用方法:

                    
python cc.py
plaintext

c

cc.c程序位于c内。
可使用gcc进行编译:

                    
gcc cc.c -o cc
plaintext

使用方法:

                    
./cc
plaintext

格式

                    
./cc <target_url> <num_requests>
plaintext

java

cc.java程序位于java内。
可使用javac进行编译:

                    
javac cc.java
plaintext

使用方法:

                    
java cc
plaintext

格式

                    
java cc <target_url> <num_requests>
plaintext

shell

cc.sh程序位于shell内。

使用方法:

                    
./cc.sh
plaintext

格式

                    
./cc.sh <target_url> <num_requests>
plaintext

JavaScript

cc.js程序位于JavaScript内。

使用方法:

                    
node cc.js
plaintext

格式

                    
node cc.js <target_url> <num_requests>
plaintext

php

cc.php程序位于php内。

使用方法:

                    
php cc.php
plaintext

格式

                    
php cc.php <target_url> <num_requests>
plaintext

html

cc.html程序位于html内。

使用方法:
浏览器打开

go

cc.go程序位于go内。
使用方法:

                    
go run cc.go
plaintext

格式

                    
go run cc.go <target_url> <num_requests>
plaintext