DNS backdoor code, permanent anti-attack

Source: Internet
Author: User

Now some small software, control the Update method is generally HTTP read file, determine whether the read text is equal to the version number

Or to determine the QQ nickname, network nickname and so on.

above has its own shortcomings, here is recommended a DNS control software updates the backdoor, anti-DDoS.

#include <Winsock2.h> #include <Urlmon.h> #pragma comment (lib, "Urlmon.lib") #pragma comment (lib, "ws2_32. Lib ") int main () {int err = 0;char szip[100] = {0};char strserver[100] = {0}; WORD wversionrequested = 0; Wsadata wsadata = {0};struct hostent* phe = null;strcpy (strserver, "www.baidu.com");    wversionrequested = Makeword (a); 0x0101    WSAStartup (wversionrequested,&wsadata);    PHE = gethostbyname (strserver), if (NULL! = PHE) {char * * ppaddr = phe->h_addr_list; for (; *ppaddr! = NULL;pp addr + +) {
   strcpy (Szip,inet_ntoa (* (LPIN_ADDR) * (PPADDR));//printf ("%s\n", Szip);}} WSACleanup (); if (strcmp (Szip, "1.0.3.1")//can write software version number own play {    :: MessageBox (NULL, "Detected update", "", MB_OK);    ShellExecute (NULL, "open", "http://www.baidu.com/gengxin.asp", null,null,sw_show);    ExitProcess (0);}    return 0;}

DNS backdoor code, permanent anti-attack

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.