金蝶K3如何在数据库查询用户的密码
1、第一步:我们需要下载如下图的金蝶用户密码破解对照表,然后将其导入到sqlserver

2、第二步:定义变量declare @before nvarchar(320)declare @password nvarchar(100)declare @count intdeclare @c intdeclare @mw nvarchar(100)declare @fname nvarchar(100)

4、第四步:循环查询密码while @count<LEN(@password)beginif @c%6=1beginselect @mw=@mw+mw from test.dbo.t_passwordpj where one=(SUBSTRING(@password,@count,3))endelse if @c%6=2beginselect @mw=@mw+mw from test.dbo.t_passwordpj where two=(SUBSTRING(@password,@count,3))endelse if @c%6=3beginselect @mw=@mw+mw from test.dbo.t_passwordpj where three=(SUBSTRING(@password,@count,3))endelse if @c%6=4beginselect @mw=@mw+mw from test.dbo.t_passwordpj where four=(SUBSTRING(@password,@count,3))endelse if @c%6=5beginselect @mw=@mw+mw from test.dbo.t_passwordpj where five=(SUBSTRING(@password,@count,3))endelse if @c%6=0beginselect @mw=@mw+mw from test.dbo.t_passwordpj where six=(SUBSTRING(@password,@count,3))endset @c=@c+1set @count = @count+3end

6、第六步:执行脚本,获取密码
