忘记ssms密码,想着提取一下,应为很多程序调用,一个一个改太麻烦。就使用了网上的脚本解密:
然而没什么用:
看结果:
PS C:\Users\Administrator\Desktop> .\n.ps1 -file .\vi.regsrvr
Encrypted Connection String:
data source=XXX.XXX.XXX.XXX;user id=sa;password="AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAobq4ip1xQEu/DJfk5mm5MQQAAAACAAAAAAAQZgAAAAEAACAAAAC//+oQwW6uIhLVmtoGpZ4Pz3oCE89ABya1A50GejUvTgAAAAAOgAAAAAIAACAAAADoKYAGIcXpLnO0Ng3t5Oh1Jhr5QBD8ZULbphnnTUFdDRAAAABACwVc+8wGG/jT+vgvBtq8QAAAAIU2MG26jcUTSZMbHsWt0uw2SPJBycco1oQFx5N4cbLiNRQGS0ize7Kyv9kiI0/+PfT5Tr8c2NNz6MBpeQ1ONto=";pooling=False;multipleactiveresultsets=False;connect timeout=30;encrypt=False;trustservercertificate=False;packet size=4096;application name="Microsoft SQL Server Management Studio"
Decrypted Connection String:
data source=XXX.XXX.XXX.XXX;user id=sa;password="";pooling=False;multipleactiveresultsets=False;connect timeout=30;encrypt=False;trustservercertificate=False;packet size=4096;application name="Microsoft SQL Server Management Studio"
为什么password是空值。。。。。。。。。
获取的加密过的hash,没有key解密不出明文的。
这个方法试过,没有用,结果查询不到