获取PSP、PS3 和 PSV 游戏更新补丁的方法 心得研究

三级用户 雾子 2天前 867

以前发过 PS3 更新下载器,但是需要下载软件,有没有更简单的呢?

直接复制下面链接替换掉 titleID

https://a0.ww.np.dl.playstation.net/tpl/np/titleID/titleID-ver.xml

来个例子:

https://a0.ww.np.dl.playstation.net/tpl/np/NPJB00611/NPJB00611-ver.xml

更新:这个方法 PSP 游戏也适用


PSV 就比较麻烦一点,需要用代码计算,下面是 js 脚本,不熟悉 js 可以用 ai 重写成其他脚本语言

const crypto = require('crypto');

const getPSVUpdateXml = (titleID, hmacKey) => {
    const binary = [];
    const key = `0x${hmacKey}`;

    for (let i = 2; i < key.length; i += 2) {
        const s = key.substring(i, i + 2);
        binary.push(parseInt(s, 16));
    }

    const hmac = crypto.createHmac('sha256', Buffer.from(binary));
    const byteHash = hmac.update(`np_${titleID}`).digest();

    const hash = Array.from(byteHash)
        .map(b => b.toString(16).padStart(2, '0'))
        .join('')
        .toLowerCase();

    return `http://gs-sec.ww.np.dl.playstation.net/pl/np/${titleID}/${hash}/${titleID}-ver.xml`;
}

const titleID = 'PCSH00133';
const hmacKey = 'E5E278AA1EE34082A088279C83F9BBC806821C52F2AB5D2B4ABD995450355114';
console.log(getPSVUpdateXml(titleID, hmacKey));



上一篇:NGC终极视频输出尾插,我就叫他GC-Triple pro max ultra吧
下一篇:咸鱼价值999元的进阶版N64改RGBS模组
最新回复 (5)
  • 三级用户 flying19880517 2天前
    1 2

    选中以下内容,拖拽到浏览器书签栏,改个名,点一下这个书签就可以翻译PSV地址了

    javascript:(async () => {
        const getPSVUpdateXml = async (titleID, hmacKey) => {
            const keyHex = `0x${hmacKey}`;
            const binary = [];
            for (let i = 2; i < keyHex.length; i += 2) {
                const s = keyHex.substring(i, i + 2);
                binary.push(parseInt(s, 16));
            }
            const keyBuffer = new Uint8Array(binary);
            const cryptoKey = await window.crypto.subtle.importKey(
                "raw",
                keyBuffer,
                { name: "HMAC", hash: { name: "SHA-256" } },
                false,
                ["sign"]
            );
            const data = new TextEncoder().encode(`np_${titleID}`);
            const signature = await window.crypto.subtle.sign("HMAC", cryptoKey, data);
            const hashArray = Array.from(new Uint8Array(signature));
            const hash = hashArray.map(b => b.toString(16).padStart(2, '0')).join('').toLowerCase();
            return `http://gs-sec.ww.np.dl.playstation.net/pl/np/${titleID}/${hash}/${titleID}-ver.xml`;
        };
    
        const hmacKey = 'E5E278AA1EE34082A088279C83F9BBC806821C52F2AB5D2B4ABD995450355114';
        const titleID = prompt('请输入titleID,如:PCSH00133');
        if (titleID) {
            const result = await getPSVUpdateXml(titleID, hmacKey);
            const choice = confirm(`${result}\n点击“确定”在新窗口打开,点击“取消”复制 URL。`);
            if (choice) {
                window.open(result, '_blank');
            } else {
                const tempInput = document.createElement('input');
                tempInput.value = result;
                document.body.appendChild(tempInput);
                tempInput.select();
                document.execCommand('copy');
                document.body.removeChild(tempInput);
            }
        }
    })();
  • 四级用户 queen3438 2天前
    0 3
    谢谢分享!!
  • 版主 fjh212 1天前
    0 4
    PSV的没看明白。。。
  • 二级用户 19exexe 1天前
    0 5
    那我要怎么知道哪些游戏有更新补丁?
  • 三级用户 bentiancai 23小时前
    0 6
    psv和ps3游戏不是可以直接联网更新吗?
    • 老男人游戏网配套论坛
      7
        立即登录 立即注册
发新帖
本论坛禁止发布SWITCH和PS4相关资源,若有其他侵权内容,请致邮3360342659#qq.com(#替换成@)删除。