资源简介
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协议族 答案
相关资源
- AsyncTask文件控制暂停和继续,在状态
- The direction of synaptic plasticity mediated
- Reparatory Effects of Nicotine on NMDA Recepto
- Apolipoprotein E4 Impairs in vivo Hippocampal
- Histamine excites rat lateral vestibular nucle
- Diltiazem augmented pentobarbital-induced LORR
- 周立功开发板ProASIC3实验-syn_FIFO代码
- 使用选择性重传协议实现UDP可靠通信
- 网络(UDP)转串口程序
- 用Socket写的简易FTP服务器和客户端
- socket小工具(可方便建立TCP UDP的soc
- UDP组播的发送和接收程序
- 采用WINSOCK2 编写的TCP/UDP通信程序
- Synthesis Characterization and in vitro Antitu
- TCP_UDP对结构体加密数据传输
- synopsys 万能SCR Crack工具
- Novel fluorescent proteins generated by de nov
- The Synthesis and Structure of a Novel Three-D
- 欧姆龙以太网通讯TCP/UDP及欧姆龙PLC程
- FreeFileSync 免费文件同步 v10.19 Windows版
- A Novel Algorithm for Ternary Reversible Logic
- Discovery of Reversible and Persistent Electri
- synaptics触摸板插入USB外接鼠标后自动
- UDP协议进行P2P打洞
-
Lipase-catalyzed synthesis and the lipid me
- Synthesis of Cyclohexanone-formaldehyde Resi
- One-pot synthesis of benzothiazolones from 2-h
- Facile low-temperature synthesis of graphene-C
- Size-Controlled Synthesis of LaF3:Eu3+ Nanopla
- Large-scale synthesis of high-quality ZnO nano
评论
共有 条评论