https://github.com/polyrabbit/tcp-syn-flood
http://en.wikipedia.org/wiki/SYN_flood
https://github.com/polyrabbit/tcp-syn-flood
Last synced: over 1 year ago
JSON representation
http://en.wikipedia.org/wiki/SYN_flood
- Host: GitHub
- URL: https://github.com/polyrabbit/tcp-syn-flood
- Owner: polyrabbit
- Created: 2014-02-23T17:34:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-24T15:42:43.000Z (over 12 years ago)
- Last Synced: 2025-01-22T11:48:01.189Z (over 1 year ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FLOOD YOUR SHIT
=====
这是我在学习TCP相关协议时写的一个小工具,目的仅是为了更加了解TCP的底层结构。
#### 测试
1. 先搭起一个本地web服务器`python -m SimpleHTTPServer 8888`;
2. 临时禁用掉SYN cookies `sudo sysctl -w net/ipv4/tcp_syncookies=0`;
3. 运行本程序`sudo ./syn_flood.py local_ip 8888`,这里的local_ip要换成本机外网卡的一个IP,localhost或127.0.0.1都没用,不知为什么;
4. 打开浏览器,访问`localhost:8888`,浏览器应该一直停留在connecting的状态。
#### 注意
1. 攻击的机器和被攻击的机器一定要在同一局域网里,不然被攻击的机器根本收不到发出的sync包,猜测可能包在路由器那端被吃掉了,不知你有什么好解释没?对,问的就是你!
2. 只在Ubuntu 12.04下测试过,非*nix系统应该不行。