找回SecureCRT密码

in Inbox with 0 comment

1.session保存位置

打开Securecrt\Data\Settings\Config\Sessions目录,根据session名找到对应的配置文件,
找到Password字段S:"Password"=ud1412920fc62cc11e8c3ce04a81380396137a014b38323358d6be195ce5e2233
截取加密后的密码字段(去掉开头的u):d1412920fc62cc11e8c3ce04a81380396137a014b38323358d6be195ce5e2233

2.安装Crypto

pip install pycryptodome

3.根据密文解密程序

from Crypto.Cipher import Blowfish


def decrypt(password) :
    c1 = Blowfish.new('5F B0 45 A2 94 17 D9 16 C6 C6 A2 FF 06 41 82 B7'.replace(' ','').decode('hex'), Blowfish.MODE_CBC, '\x00'*8)
    c2 = Blowfish.new('24 A6 3D DE 5B D3 B3 82 9C 7E 06 F4 08 16 AA 07'.replace(' ','').decode('hex'), Blowfish.MODE_CBC, '\x00'*8)
    padded = c1.decrypt(c2.decrypt(password.decode('hex'))[4:-4])
    p = ''
    while padded[:2] != '\x00\x00' :
        p += padded[:2]
        padded = padded[2:]
    return p.decode('UTF-16')

print decrypt("d1412920fc62cc11e8c3ce04a81380396137a014b38323358d6be195ce5e2233");

4.其他方案

星号查看器查看密码