资源简介
http://download.csdn.net/detail/wuchunlai_2012/9372564
http://download.csdn.net/detail/wuchunlai_2012/9373247
这是我针对以前发出的两个工具做的一些优化和集成,增加了自动识别网卡mac等功能,优化了攻击时间的控制策略。如果大家只是学习用,建议下载以上的代码进行修改和自己编写。
备注:代码自己学习测试用得,有恶意攻击行为的后果自负
之后将发布集成cc攻击的3.0版本
代码片段和文件信息
//check.c
#include
#include
#include
#include
#include
#include
#include
#define UDP_CHECK_FLAG 1
#define TCP_CHECK_FLAG 2
static unsigned short inline checksum(const unsigned short *bufferint size) {
unsigned long cksum = 0;
if(size <=0) {
printf(“size is wrong in checksum()\n“);
exit(0);
}
while(size>1) {
cksum += *buffer++;
size -= sizeof(unsigned short);
}
if(size) {
cksum += *(unsigned char *)buffer;
}
cksum = (cksum >> 16) + (cksum & 0xffff);
cksum += (cksum >> 16);
return((unsigned short )(~cksum));
}
unsigned int inline p_checksum(unsigned long saddr unsigned long daddr const unsigned short *buffer int size int flag) {
unsigned long sum = 0;
char *buf = (char *)malloc(sizeof(struct pseudo_header)+size);
struct pseudo_header *pseh;
pseh = (struct pseudo_header *)buf;
pseh->saddr = saddr;
pseh->daddr = daddr;
pseh->mbz = 0;
pseh->proto = flag==TCP_CHECK_FLAG?IPPROTO_TCP:IPPROTO_UDP;
pseh->header_len = htons(flag==TCP_CHECK_FLAG?sizeof(struct tcphdr):sizeof(struct udphdr));
memcpy(buf+sizeof(struct pseudo_header)buffersize);
sum = checksum((unsigned short*)bufsizeof(struct pseudo_header)+size);
free(buf);
return sum;
}
unsigned int inline tcp_checksum(unsigned long saddr unsigned long daddr const unsigned short *buffer int size) {
return p_checksum(saddr daddr buffer size TCP_CHECK_FLAG);
}
unsigned int inline udp_checksum(unsigned long saddr unsigned long daddr const unsigned short *buffer int size) {
return p_checksum(saddr daddr buffer size UDP_CHECK_FLAG);
}
unsigned int inline ip_checksum(const unsigned short *buffer int size){
return(checksum(buffer size));
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1046 2015-12-31 14:30 Readme.txt
I.A.... 46756 2015-12-31 14:28 myattack\attack
I.A.... 513 2015-12-30 17:41 myattack\include\checksum.h
I.A.... 633 2015-12-30 18:03 myattack\include\pool.h
I.A.... 112 2015-12-30 17:20 myattack\include\pth.h
I.A.... 204 2015-12-29 17:08 myattack\include\rand.h
I.A.... 87 2015-12-29 17:06 myattack\include\sig.h
I.A.... 1665 2015-12-30 18:04 myattack\makefile
I.A.... 1833 2015-12-30 17:44 myattack\src\checksum.c
I.A.... 6915 2015-12-31 14:28 myattack\src\main.c
I.A.... 6702 2015-12-30 19:16 myattack\src\pool.c
I.A.... 782 2015-12-31 14:22 myattack\src\pth.c
I.A.... 326 2015-12-29 17:30 myattack\src\rand.c
I.A.... 190 2015-12-29 17:33 myattack\src\sig.c
I..D... 0 2015-12-31 14:28 myattack\include
I..D... 0 2015-12-31 14:29 myattack\src
I..D... 0 2015-12-31 14:28 myattack
----------- --------- ---------- ----- ----
67764 17
- 上一篇:GPS开发关于如何写GPS程序
- 下一篇:TCPIP协议族 答案
相关资源
- 基于UDP的局域网聊天器
- UDP通信QT
- UDP协议中的 UDP Flood 攻击详细讲解
- Windows下VC实现的类似Netstat命令查看端
- Programming Assignment 3: UDP Pinger Lab
- e语言-易语言远程获取TCP UDP链接源码
- ubuntu12.04环境下直接Floodlight+miniet搭建
- Synplify201809百度网盘.txt
- SYN补丁 XP支持SYN扫描
- 计算机网络课程设计编写UDP客户/服务
- udp_test.zip
- TCP和UDP数据包发送程序
- 基于Udp的五子棋对战游戏
- UDP十六进制数据传输
- Synplify Pro8.1 & Crack.rar
- udp flood 工具
- udp flood exe
- qt UDP聊天
- 第8章 TCP和UDP数据包发送程序
- SYN Flooder 攻击源码
- vc编写tcp syn扫描器源代码
- Linux下使用UDP协议的点对点聊天程序含
- TCP/UDP/ICMP数据包攻击软件
- 使xp支持syn扫描
- TCP UDP socket调试工具
- wince修复程序
- UDP/TCP转发工具
- linux多线程+UDP网络通信总结+程序
- P2P之UDP穿透NAT的原理与实现
- TCP/UDP Socket调试工具 V2.3
评论
共有 条评论