恢复.sdf文件的密码 [英] Recovering the password of a .sdf file

查看:538
本文介绍了恢复.sdf文件的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用databaseSQLCE开发了用于移动平台的应用程序,并将其安装在我的ppc上.我想处理数据访问数据库,但是我不记得密码了.我丢失了项目的源代码,因为便携式光盘已刻录,丢失了所有数据.无法找到或删除数据库(.sdf)的密码?

I developed an application for the mobile platform, using databaseSQLCE, installed it on my ppc. I wanted to handle data access db, but I do not remember the password. I lost the source code of the project because the portable disc burned, losing all data. No way to find out or remove the password of the database (. Sdf)?

推荐答案

您是否拥有源代码的编译版本(您说过您丢失了源代码,但没有丢失已编译的程序)?如果您拥有已编译的程序,则可以将其反汇编,前提是密码已存储在源代码中的字符串中.如果它是.Net程序(C#,VB.Net等),则可以使用Reflector为您反汇编.分解后,您将能够查看源代码,包括可能包含密码的连接字符串.如果由于某种原因不能解决问题,那么还有其他一些不太吸引人的选择.

Do you have the compiled version of the source code (you said you lost the source code, but not the compiled program)? If you have the compiled program, you can disassemble it, assuming the password is stored in a string in the source code. If it is a .Net program (C#, VB.Net, etc.), you can use Reflector to disassemble it for you. Once you disassemble it, you will be able to view the source code, including the connection string that presumably contains the password. If that doesn''t work out for some reason, there are other less appealing options.

我不确定是否有任何工具可以为您恢复SQLCE数据库密码,但是您始终可以尝试使用蛮力技术.我想当您提供不正确的密码时,连接到数据库会产生错误?如果是这样,编写一个程序,该程序不断尝试使用计算机生成的密码连接到数据库,直到连接最终成功.

I''m not sure if there is any tool out there that can recover SQLCE database passwords for you, but you can always try a brute force technique. I imagine connecting to the database produces an error when you provide the incorrect password? If so, write a program that continuously attempts connecting to the database with computer generated passwords until the connection eventually succeeds.

根据您的密码强度,这可能会花费一些时间(如果密码确实很强,则可能会花费更长的时间).如果您可以通过记住密码的某些方面来减少问题集,那将有助于减少时间.例如,如果您知道长度恰好为8个字母,或者至少为4个字母,则可以只检查8个字母的组合,也可以从长度为4个字母的密码开始.而且,如果您知道它仅包含数字,则只需要使用由数字组成的字符串进行搜索.

Depending on the strength of your password, this could take quite some time (if a really strong password, could take longer than your lifetime). If you can reduce the problem set somewhat by remembering aspects of your password, that should help cut down on the time. For example, if you know it was exactly 8 letters long or at least 4 letters long, you can either only check 8 letter combinations or start at passwords that are 4 letters long. And if you know it only contains numeric digits, then you only need to search using strings composed of numeric digits.


这篇关于恢复.sdf文件的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆