-
Notifications
You must be signed in to change notification settings - Fork 1
iriya/java-hash-dos
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Java Hash DOS测试. 用于压力测试,检测网站是否存在HashDOS漏洞. 原理: 生成keyCount个hash值相同的参数POST到指定url,观察cpu是否被大量占用. 使用方法: Post [method] [url] [keyCount] [valueLength] method was: doHashDos|doHashDos2|doHashDos3 url: 被测试的网址 keyCount: 生成的相同hash值参数 valueLength: 每个参数对应的值长度(值随机) - doHashDos 使用URLConnection进行POST,获取返回值 - doHashDos2(推荐) 使用Socket模拟POST(application/x-www-form-urlencoded),不关心返回值 - doHashDos3 使用Socket模拟POST(multipart/form-data),不关心返回值 to fix: doHashDos3可能还不完善 hash固定生成为12345678 Socket模拟的UA固定为Java-Hash-Dos 默认为8个线程以1s的频率向服务器发送请求
About
java web container hash dos test.
Resources
Stars
Watchers
Forks
Releases
No releases published