用vb和vbs 破解flashxp的密码的代码

所属分类: 脚本专栏 / vbs 阅读数: 1441
收藏 0 赞 0 分享
整个在新版中,不是明文的密码字符串了,建议大家都升级到新版本中
vbs版

vb版
vb 破解flashxp的密码,他的密码放在 Sites.dat 文件中,大家打开这个文件,可以看到如下:
Pass=7B9A439CCB4FC1C7C2
等号后面的就是加密之后的密码,用下面的模块可以解开:
复制代码 代码如下:

Public Function DecryptFlashFXP(password As String) As String 
Dim x As Integer 
Dim magic() As String 
Dim chrresulta As Integer 
Dim chrresultb As Integer 
Dim chrlast As Integer 
Dim chrtmp As Integer 
Dim magicnum As Integer 
Dim pwdtmp As String 
'MAGIC BUFFER = "yA36zA48dEhfrvghGRg57h5 
'   UlDv3" 
magic = Split("121,65,51,54,122,65,52,56,100,69,104,102,114,118,103,104,71,82,103,53,55,104,53,85,108,68,118,51", ",") 
chrlast = Val("&H" & Mid(password, 1, 2)) 
magicnum = 0 


For x = 3 To Len(password) Step 2 
  chrtmp = Val("&H" & Mid(password, x, 2)) 
  chrresulta = (chrtmp Xor magic(magicnum)) 
  chrresultb = chrresulta - Val(chrlast) 


  If chrresultb > 255 or chrresultb < 0 Then 
    chrresultb = chrresultb - &HFFFFFF01 
  End If 
  chrlast = chrtmp 
  pwdtmp = pwdtmp & Chr(chrresultb) 
  magicnum = magicnum + 1 


  If magicnum > 27 Then 
    magicnum = 0 
  End If 
Next x 
DecryptFlashFXP = pwdtmp 
End Function 
更多精彩内容其他人还在看

VBS教程:函数-LCase 函数

VBS教程:函数-LCase 函数
收藏 0 赞 0 分享

VBS教程:函数-LBound 函数

VBS教程:函数-LBound 函数
收藏 0 赞 0 分享

VBS教程:函数-Join 函数

返回一个字符串,此字符串由包含在数组中的许多子字符串联接创建
收藏 0 赞 0 分享

VBS教程:函数-IsObject 函数

VBS教程:函数-IsObject 函数
收藏 0 赞 0 分享

VBS教程:函数-IsNumeric 函数

VBS教程:函数-IsNumeric 函数
收藏 0 赞 0 分享

VBS教程:函数-IsNull 函数

VBS教程:函数-IsNull 函数
收藏 0 赞 0 分享

VBS教程:函数-IsEmpty 函数

VBS教程:函数-IsEmpty 函数
收藏 0 赞 0 分享

VBS教程:函数-IsDate 函数

VBS教程:函数-IsDate 函数
收藏 0 赞 0 分享

VBS教程:函数-IsArray 函数

VBS教程:函数-IsArray 函数
收藏 0 赞 0 分享

VBS教程:函数-Int、Fix 函数

VBS教程:函数-Int、Fix 函数
收藏 0 赞 0 分享
查看更多