From a99e92fc27d2df4df7e9d098ef581382a8880864 Mon Sep 17 00:00:00 2001 From: Kameleon <77245601+kmeps4@users.noreply.github.com> Date: Mon, 19 Feb 2024 21:41:45 -0600 Subject: [PATCH] Fix proper ROP calling --- exploit.mjs | 47 ++++++++++++++++++++++++++++++++--------------- 1 file changed, 32 insertions(+), 15 deletions(-) diff --git a/exploit.mjs b/exploit.mjs index 512414d..989a424 100644 --- a/exploit.mjs +++ b/exploit.mjs @@ -676,29 +676,46 @@ async function get_ready() { } //load per firmware Rop Test function by kameleon.. -function ExecRopByFw() { +function ExecRopByFw() +{ var UA = navigator.userAgent.substring(navigator.userAgent.indexOf('5.0 (') + 19, navigator.userAgent.indexOf(') Apple')).replace("PlayStation 4/",""); - if (navigator.userAgent.includes('PlayStation 4')) { - if (["6.00", "6.02", "6.10", "6.20"].includes(UA)) { + if (navigator.userAgent.includes('PlayStation 4')) + { + if (["6.00", "6.02", "6.10", "6.20"].includes(UA)) + { alert("No ROP implemented"); - } else if (["6.50", "6.70", "6.71", "6.72"].includes(UA)) { + } + else if (["6.50", "6.70", "6.71", "6.72"].includes(UA)) + { alert("No ROP implemented"); - } else if (["7.01", "7.02", "7.50", "7.51", "7.55"].includes(UA)) { + } + else if (["7.01", "7.02", "7.50", "7.51", "7.55"].includes(UA)) + { import('./send.mjs'); - } else if (["8.00", "8.01", "8.03"].includes(UA)) { + } + else if (["8.00", "8.01", "8.03"].includes(UA)) + { import('./rop/800.mjs'); - } else { - var UA = navigator.userAgent.substring(navigator.userAgent.indexOf('5.0 (') + 18, navigator.userAgent.indexOf(') Apple')).replace("PlayStation 4/",""); - if (["8.50", "8.51"].includes(UA)) { + } + + else if (["8.50", "8.51"].includes(UA)) + { import('./rop/850.mjs'); - } else { - var UA = navigator.userAgent.substring(navigator.userAgent.indexOf('5.0 (') + 18, navigator.userAgent.indexOf(') Apple')).replace("PlayStation 4/",""); - if (["9.00", "9.03", "9.04", "9.50", "9.51", "9.60"].includes(UA)) { - import('./rop/900.mjs'); - } - } + } + + // For PS4 9.00 to 9.60 + var UA = navigator.userAgent.substring(navigator.userAgent.indexOf('5.0 (') + 18, navigator.userAgent.indexOf(') Apple')).replace("PlayStation 4/",""); + + if (["9.00", "9.03", "9.04"].includes(UA)) + { + import('./rop/900.mjs'); } + else if (["9.50", "9.51", "9.60"].includes(UA)) + { + import('./rop/950.mjs'); + } + } else if (navigator.userAgent.includes('PlayStation 5')) { var UA = navigator.userAgent.substring(navigator.userAgent.indexOf('5.0 (') + 32, navigator.userAgent.indexOf(') Apple')).replace("PlayStation 5/",""); if (["1.00", "1.01", "1.02", "1.05", "1.12", "1.14", "2.00", "2.10", "2.20", "2.25", "2.26", "2.30", "2.50", "2.70", "3.00", "3.10", "3.20", "3.21", "4.00", "4.02", "4.03", "4.50", "4.51", "5.00", "5.02", "5.10", "5.50"].includes(UA)) {