百度空间 | 百度首页 
 
查看文章
 
通过 BT 种子 Hash 值从 BitComet 服务器上下载种子文件
2009年10月15日 星期四 00:05

程序和代码下载:

UMU 的网盘 http://umu.ys168.com/,目录 Tools\UMU_Script\GenBitCometTorrentURLviaHash.7z

或者在这里找:http://umu.download.csdn.net/

举例:

Hash 值为 004f50950256e66f128d528d0773fdefbc298cce 的种子,可以通过以下链接下载:

http://torrent-cache.bitcomet.org:36869/get_torrent?info_hash=004f50950256e66f128d528d0773fdefbc298cce&size=226920869&key=44a2a41842ff15b47cf54c1470356b32cba26730

  产生这个 URL 的关键是 key 的计算,上例中 key=44a2a41842ff15b47cf54c1470356b32cba26730。UMU 做了一个 COM 对象,实现了 Hash 到 Key 的计算。

下面是脚本代码:

Dim objUMU
Dim strHash
Dim strURL

Set objUMU = CreateObject("UMU.UrlGenerator")

strHash = InputBox("请输入 torrent 种子散列值:", "输入 Hash 值", "004f50950256e66f128d528d0773fdefbc298cce")
If Len(strHash) <> 40 Then
WScript.Quit
End If

strURL = "http://torrent-cache.bitcomet.org:36869/get_torrent?info_hash=" & strHash & "&size=226920869&key=" & objUMU.GenBitCometTorrentKey(strHash)
Set objUMU = Nothing

If Not IsEmpty(InputBox("生成的 URL 如下,按“确定”打开链接。", "结果", strURL)) Then
        Dim objWSH

        Set objWSH = CreateObject("Wscript.Shell")
        objWSH.Run strURL
        Set objWSH = Nothing
End If


类别:wsh 专栏 | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu