首页
社区
课程
招聘
[原创]迅雷地址加密解密工具
发表于: 2007-2-4 15:43 6498

[原创]迅雷地址加密解密工具

2007-2-4 15:43
6498
发给小工具给大家
网速慢发不上来

下载地址:

thunder://QUFodHRwOi8vd3d3LmVjaGFubmVsOC5jb20veHVubGVpLnJhclpa

(用迅雷下载)

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

收藏
免费 0
支持
分享
最新回复 (5)
雪    币: 6051
活跃值: (1441)
能力值: ( LV15,RANK:1473 )
在线值:
发帖
回帖
粉丝
2
晕。。。怎么什么都没有。。。
2007-2-4 15:52
0
雪    币: 6051
活跃值: (1441)
能力值: ( LV15,RANK:1473 )
在线值:
发帖
回帖
粉丝
3
不好意思,页面没显示完,看错了

下载了看看
2007-2-4 15:53
0
雪    币: 1199
活跃值: (1624)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
谢谢。
'thunder:\/\/'.base64_encode('AA'.$url.'ZZ')
2007-2-4 17:21
0
雪    币: 817
活跃值: (1927)
能力值: ( LV12,RANK:2670 )
在线值:
发帖
回帖
粉丝
5
做了个VB的,单向转换为迅雷地址:

'窗体
Private df_var(4) As String

Public Sub Form_Initialize()
  Call df_var_initialize
End Sub

Public Sub df_var_initialize()
'thunder://
df_var(1) = Chr(116) + Chr(104) + Chr(117) + Chr(110) + Chr(100) + Chr(101) + Chr(114) + Chr(58) + Chr(47) + Chr(47)
'plz input a url!!
df_var(2) = Chr(112) + Chr(108) + Chr(122) + Chr(32) + Chr(105) + Chr(110) + Chr(112) + Chr(117) + Chr(116) + Chr(32) + Chr(97) + Chr(32) + Chr(117) + Chr(114) + Chr(108) + Chr(33) + Chr(33)
'AA
df_var(3) = Chr(65) + Chr(65)
'ZZ
df_var(4) = Chr(90) + Chr(90)
End Sub

Private Sub cmdtoThunder_Click()
Dim Thunder As String
Thunder = df_var(1)
If Len(txtDecode.Text) <= 10 Then
txtEncode.Text = df_var(2)
Else
Set c1 = New Class1
txtEncode.Text = Thunder + c1.Base64_Encode(df_var(3) + txtDecode.Text + df_var(4))
End If
End Sub

'类模块
Option Explicit
Private Const base64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"

Private df_var(3) As String

Public Sub Class_Initialize()
  Call df_var_initialize
End Sub

Public Sub df_var_initialize()
'=
df_var(1) = Chr(61)
'&h
df_var(2) = Chr(38) + Chr(104)
'&h
df_var(3) = Chr(38) + Chr(104)
End Sub

Public Function Base64_Encode(ByVal DecryptedText As String) As String
'加密函数
Dim c1, c2, c3 As Integer
Dim bytBuffer() As Byte
Dim w1 As Integer
Dim w2 As Integer
Dim w3 As Integer
Dim w4 As Integer
Dim n As Integer
Dim ansiLen As Integer
Dim retry As String
bytBuffer = StringToArray(DecryptedText)
ansiLen = LenB(StrConv(DecryptedText, vbFromUnicode)) '字符串的ANSI长度
For n = 0 To ansiLen - 1 Step 3
    c1 = bytBuffer(n)
    w1 = Int(c1 / 4)
    If ansiLen - 1 >= n + 1 Then  '说明还有第3位
        c2 = bytBuffer(n + 1)
        w2 = (c1 And 3) * 16 + Int(c2 / 16)
    Else
        w2 = (c1 And 3) * 16
        w3 = -1
        w4 = -1
        GoTo tEnd
    End If

    If ansiLen - 1 >= n + 2 Then
        c3 = bytBuffer(n + 2)
        w3 = (c2 And 15) * 4 + Int(c3 / 64)
        w4 = c3 And 63
    Else
        w4 = -1
        GoTo tEnd
    End If
tEnd:
retry = retry + mimeencode(w1) + mimeencode(w2) + mimeencode(w3) + mimeencode(w4)
Next

Base64_Encode = retry
End Function

Private Function mimeencode(w As Integer) As String
If w >= 0 Then mimeencode = Mid$(base64, w + 1, 1) Else: mimeencode = df_var(1)
End Function

Private Function mimedecode(a As String) As Integer
If Len(a) = 0 Then mimedecode = -1: Exit Function
mimedecode = InStr(base64, a) - 1
End Function

Function AscToTxt(instr1 As String) As String
'ASC内码值到字符,支持中文
'进来时以内码形式进来,例如:32BBC6
'函数值为这个内码对应的字符-->"2黄"
Dim nlen As Integer
Dim astr1 As String
Dim strprew As String
Dim strtmp As String
Dim str4last As String
Dim i As Integer
Dim laststr As String
         nlen = Len(instr1)                '内码到字符
         astr1 = instr1

             strprew = ""
             For i = 1 To nlen - 1 Step 2
                 strtmp = strprew & Mid(astr1, i, 2)
                 If CInt(df_var(2) & strtmp) < 128 Then
                     str4last = Chr(CLng(df_var(3) & strtmp))
                     strprew = ""
                     laststr = laststr & str4last
                 Else
                     strprew = strtmp
                 End If
                 
             Next i
AscToTxt = laststr
End Function

Private Function StringToArray(InString As String) As Byte()
'将字符串转入指针数组
    Dim i As Integer, bytBuffer() As Byte
    Dim z As Integer
    ReDim bytBuffer(LenB(StrConv(InString, vbFromUnicode)))   '根据字符串的ansi长度,重新定义字节缓冲的大小
    bytBuffer = StrConv(InString, vbFromUnicode)       '然后将ansi形式的字符串放入字节缓冲
    StringToArray = bytBuffer
End Function
上传的附件:
2007-2-4 19:28
0
雪    币: 176
活跃值: (117)
能力值: ( LV6,RANK:90 )
在线值:
发帖
回帖
粉丝
6
现在是我想找到下载中的迅雷资源地址
有的时候下载迅雷的资源地址都是隐藏的
2007-2-5 08:34
0
游客
登录 | 注册 方可回帖
返回
//