Host scanning program implementation method

zhaozj2021-02-17  54

Host scanning tools? Such as , , etc. As long as you browse the hacker home page, you will find this type of tool download. How does the server find the service provided? How do you know that your machine has a back door for your computer? The following is a column to implement the method with the core code of a host scan tool written by C Builder. Host scanning program implementation: Author: virus scanning tools used host? Such as , , etc. As long as you browse the hacker home page, you will find this type of tool download. How does the server find the service provided? How do you know that your machine has a back door for your computer? The following is a column to implement the method with the core code of a host scan tool written by C Builder. #include #define netbiosservice 139 // 139 port NetBIOS service #define wwwservice 80 // 80 port WWW service #define ftpservice 21 // 21 port FTP service // is for the server #define Boservice 31337 / / BO Trojan back door port #define netspeservice 7306 // Netspy Trojan back door port #define Bhservice 7626 // The back door of the ice hip horses // or more is for your personal computer BOOL ServerConn (Hostent * Serhost, Socket SerSock, Unsigned Short Nport) / / Connection function, Hostent structure See help {sockaddr_in sock_in; // Structure See help BOOL RETMSG; SOCK_IN.SIN_FAMILY = AF_INET; / / Connection Type SOCK_IN.SIN_PORT = HTONS (NPORT); // Connected Host Port Memcpy (& " Sock_in.sin_addr), SEROST-> h_addr, sizeof (sock_in.sin_addr); // Host address gives the structure to call Application-> ProcessMessages (); if (((((SerSock, (LPSOCKADDR) & Sock_in, Sizeof (SOCK_IN) )) == Socket_ERROR) / / Start connection and determine whether it is successful {RETMSG = false; // This port does not open CloseSocket (SerSock); RETMSG = true; // Open Shutdown (SerSock, 0); / / Do not allow port reception, send data but keep the connection status CloseSocket (SERSOCK); // is turned off immediately to avoid. . .

转载请注明原文地址:https://www.9cbs.com/read-30742.html

New Post(0)