PS4 Syscon Read-Write Helper for System Controller Dumps via Egycnq

Proceeding the PS4 Syscon NVS DumpsPS4 Syscon Aux HaxPS4 Syscon Firmware DecrypterPS4 SysGlitch Tool with SysCon PinoutPS4 Syscon Loader and PS4 / PS5 Unlimited Gameshare Method Patched recently @egycnq shared on Github a PS4 Syscon Read-Write Helper for System Controller Dumps Python script via Twitter for those seeking to dump, validate and convert their PlayStation 4 Syscon to Motorola s28 format for RL78 flashing without any external tools. :geek:

Download: SysconV1.py / Ps4-Syscon-Read-Write-Helper-main.zip / GIT

Code:
# *************************************************************************
# Syscon.py - Read-Write Ps4 Syscon helper Script
# You can use this script to read Sony Ps4 syscon and validate it also produce 512kb firmware after that.
# You Still need stock RL78 for flashing the firmware.
# special thanks to VVildCard777 - Fail0verflow - droogie - juansbeck -Zecoxao - M4j0r - SSL - msalau
# Copyright (C) 2021 RedTeam - egycnq https://twitter.com/egycnq
# *************************************************************************
import subprocess
import filecmp
import serial
import os
import re

def step2 () :
    raw_input("connect Syscon in read mode [check 'SYSGLITCH' Guide] and press any key when you are ready")
    ser = serial.Serial(com2, baudrate=115200, timeout=1)

    while 1:
        data = ser.read_all()
        f = open('syscon.bin', 'ab')
        data = str(data)
        f.write(data)
        f.close()
        print os.stat("syscon.bin").st_size
        if os.stat("syscon.bin").st_size >= 3094304:
            print "done"
            break
    f = open('syscon.bin', 'rb')
    data = f.read()
    pattern = "\x80\x01\xFF\xFF\xFF\xFF"
    regex = re.compile(pattern)
    asd = "syscon"
    for match_obj in regex.finditer(data):
        offset = match_obj.start()
        a = "{:02X}".format(offset)
        a = int(a, 16)
        hex_value = hex(a)
        hex_value = int(hex_value, 16)
        f.seek(hex_value, 0)
        data = f.read(0x80000)
        with open(asd, "wb") as outfile:
            outfile.write(data)
            asd = asd + "a"
    comp = filecmp.cmp("syscon", "syscona", shallow=False)
    if comp == False:
        print "\nError: check your connections Something Wrong"
        os.remove("syscon.bin")
        os.remove("syscon")
        os.remove("syscona")
        step2()

    subprocess.call(["srec_cat.exe", "syscon", "-binary", "-o", "syscon.srec", "-address-length=3"])
    os.rename("syscon.srec", "syscon.mot")
    os.remove("syscona")
    f.close()
    print "\nWell Done"
    start()


def step3():
    com3 = raw_input("Connect USB tty then enter Com (connect RL78 in write mode [check 'rl78flash' guide]")
    a = subprocess.call(["rl78flash.exe", "-i", "com3"])
    if a == 0:

            subprocess.call(["rl78flash.exe", "-ivvewc", com3,"syscon.mot"])
            print "done"

    else:
        print "Oh Nooooooo"
        step3()
    start()



def start():
    user_input = input("Enter 1 for Step 1 [read] \nEnter 2 for Step 2 [write]\n")
    if user_input == 1 :
        step2()
    elif user_input == 2 :
        step3()
    else :
        print "enter correct Input"
        start()

start()

And from the README.mdPs4 Syscon Read-Write helper

A python script using SYSGLITCH to dump Ps4 syscon and validate it – extract 512kb firmware and convert it to motorola s28 file format – write stock RL78 (using rl78flash) Its time saving tool you will just need this script to read and write no need for other external tools.

How to use it :

Step 1 [Read]:

You must first check SYSGLITCH guide, then after you connect your syscon correctly run the script and go for step 1

If everything goes well you will get a “syscon” full dump 3mb<~ and “syscon.mot” 512kb , if anything went wrong the script should show you “check your connections Something Wrong”

Step 2 [Write]:

You will need stock RL78 also check rl78flash, then after you connect your RL78 correctly run the script and go for step 2

Credits:

Special thanks to VVildCard777 – Fail0verflow – droogie – juansbeck -Zecoxao – M4j0r – SSL – msalau

Also special thanks to Abkarino for his always support

PS4 Syscon Read-Write Helper for System Controller Dumps via Egycnq.jpg

Hãy bình luận đầu tiên

Để lại một phản hồi

Thư điện tử của bạn sẽ không được hiện thị công khai.


*