AgoBot 殭屍網絡研究筆記(十七)

十七、2008年04月15日

作者:青青子衿

email:[email protected]

1、class CRSALib 類,主要支持RSA數據加密,但護體使用方法還不清楚,需要進一步工作,暫不詳細描述。

2CsdbotCompat 

class CsdbotCompat : public CCommandHandler

{

public:

void Init(); // Do initialization here

int Compat(char *a[256], bool noticebool silent); // Insert your sdbot stuff here

bool HandleCommand(CMessage *pMsg);

command m_cmdTest;

};

其中包括三個成員函數,一個成員變量。

3Init()  函數 

///////////////////////////////////////////////////////

//

//函數功能:類的初始化函數

//參數:

//返回值: void

//

///////////////////////////////////////////////////

void CsdbotCompat::Init() 

{

//向命令列表中添加sd.test指令

g_cMainCtrl.m_cCommands.RegisterCommand(&m_cmdTest, "sd.test", "test", this);

}

4Compat(char *a[256], bool noticebool silent) 函數

///////////////////////////////////////////////////////////////////

//

//函數功能:留了一個接口,但似乎沒有實現任何功能。

// 本人推測這個類是爲了給高級用戶進一步擴展bot命令集

// 留的接口,用戶可以自己來實現,新功能。

//參數: char *a[256]

// bool notice 是否notice模式發送

// bool silent 是否使用靜默模式通訊

//返回值: int 返回值是0

//

//////////////////////////////////////////////////////////////////////////

int CsdbotCompat::Compat(char *a[256], bool noticebool silent)

{

char sendbuf[512];

return 0;

}

5HandleCommand(CMessage *pMsg函數

///////////////////////////////////////////////////////////////////////

//

//函數功能:bot指令處理函數,還沒有具體實現

//參數: CMessage *pMsg 接收到的消息

//返回值: bool,目前只返回false。

//

//////////////////////////////////////////////////////////////////////

bool CsdbotCompat::HandleCommand(CMessage *pMsg

{

return false

}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章