GPG decryption

Discussion in 'PlayStation Classic (Mini-Console)' started by Berion, Jul 1, 2019.

  1. 2,119
    2,001
    372
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    2,119
    Likes Received:
    2,001
    Trophy Points:
    372
    Gender:
    Male
    Location:
    rom0:/
    Have someone know how to decrypt "/media/d8781dae-c45c-4fc1-b961-e03eedebbffb/LDIAG.BIN"?

    I have files extracted from main partition:
    Code:
    /home/root/.gnupg/pass
    /home/root/.gnupg/pubring.gpg
    /home/root/.gnupg/pubring.gpg~
    /home/root/.gnupg/random_seed
    /home/root/.gnupg/secring.gpg
    /home/root/.gnupg/[email protected]
    /home/root/.gnupg/[email protected]
    /home/root/.gnupg/[email protected]
    /home/root/.gnupg/[email protected]
    /home/root/.gnupg/[email protected]
    /home/root/.gnupg/[email protected]
    /home/root/.gnupg/siescph1000.gpg
    /home/root/.gnupg/trustdb.gpg
    But how to import them and how to perform decryption?

    I found also in "/usr/bin/usb_watch" which could have something interesting:
    Code:
    DIAG_PATH=/data/sony/sgmo/diag
    DIAG_FILE=diag
    UPDATE_PATH=/data/sony/sgmo/update
    
    DIAG_NAME=LDIAG.BIN
    SOFT_NAME=LAPPS.BIN
    UPDATE_NAME=LUPDATA.BIN
    
    Between lines in GPG section there is
    Code:
    gpg --batch --yes --homedir /tmp/.gnupg --passphrase-file /tmp/.gnupg/pass --decrypt --ignore-time-conflict --out
    But this doesn't works... Any ideas?

    BTW: Why everything in this console is German? ;p
    @TnA
     
    Last edited: Jul 1, 2019
    TnA likes this.
  2. 973
    483
    122
    TnA

    TnA Member

    Joined:
    Jul 1, 2018
    Messages:
    973
    Likes Received:
    483
    Trophy Points:
    122
    Gender:
    Male
    Location:
    Germany --> Saxony
    Haven't deeply looked at it, but it seems interesting! So it seems Sony planned for official Updates via USB and possibly Network- Support?!
    I sure wish for Sony to add that, if possible... :)

    So possibly they even thought of a limited kind of PSN for the PSC! o_O


    Regarding the last code-block... I think that command should work on the PSC. Does it not?

    Lol... Where exactly? Maybe you got a 'German model' (if there is any difference)?


    Off-Topic: (A small side-story that seem to indicate, that the scene gave Sony the idea for the PSC!)

    I remember that there was a thread somewhere, where I or someone else also wrote that Sony could jump onto the retro-train with the PS(1) and release a 'Classic' of it... I suppose it was a thread related to hackchi for the NES&SNES Classic, or someone mentioned these. Oh and most of those which wrote there said, they would buy one. AFAIR, that was BEFORE Sony announced it! You might have been in that thread as well @Berion!

    Dang, if I remember correctly, it was even mentioned, that Sony could make a bit sloppy job and it would make it even more interesting to hack and the Homebrew-scene would work on the things... Someone even mentioned the freakin' PCSX ReARMed and that the license grants/permits/allows commercial use!!! The only thing which was needed, to get the scene on board is to offer enough power for a reasonable price (making it more interesting to hack and have a cheap PS-looking Multimedia-Station with controllers...) and a collector would buy a PSC anyway... AFAIR it was even mentioned, that they could use a relatively cheap SoC from those Chinese companies, as long as it offers some things!
    So maybe Sony gave us the PSC to play with... kind of... in a double-sense! It is a 64Bit-SoC as well, so if we ever get Android for it and if newer Android-Versions demand 64Bit-Support (let's say Version 15), it might still be possible to port it to the PSC!

    I also know that Sony-guys are looking in their related Homebrew-Scenes and Google-guys are all over on xda, reddit and also the Homebrew-scene.
    MS as well and they have proven it with Kinect and who developed it.
    Nintendo? I've got no clue, beside the obvious exploit-fixing and some things like that Wii Paint-like Homebrew, which ended up in the Wii-Store. Lol


    So the companies (seemingly) did learn within the last 1 1/2 decade.
    They don't totally confront independent developers and the Homebrew-scene, but even seem to listen to what their users and fans want! Yes! Kind of 'fans'! We are not all 'pirates', but love the systems and what they offer... (and even the 'pirates' love the systems, or they would not buy them)



    Does anyone remember that thread? It might be on another forum, like psx-scene.com, psxtools.de or Ps2-home.com... Might as well be on gbatemp.net (possibly using another name, I suppose from bugmenot), I don't know... :-|

    /Off-topic
     
    Last edited: Jul 2, 2019
  3. 2,119
    2,001
    372
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    2,119
    Likes Received:
    2,001
    Trophy Points:
    372
    Gender:
    Male
    Location:
    rom0:/
    Ok, decrypted. :) I have tried various of gpg on Linux and Windows and for some unknown to me reason... returning "file_open_error" for "secring.gpg" and "pubring.gpg". Only GPG4Win do the job correctly. Oh, and the key must be cut by last 0x0A.
    It turn into payload.tar.gz, and it looks like PSC looking for "start" bash script (without extension) in the root of archive. I have opened so far only BleemSync 1.1 and oh well that's complicated scripting+elfs stuff. I'm not sure if I want touch it. :D

    File list from dir cmd for those who are curious:
    Code:
    payload\backup
    payload\backup_restore
    payload\bs_done.png
    payload\kernel_modules
    payload\LICENSE
    payload\recoverykit
    payload\sdl_display
    payload\sdl_play
    payload\sdl_text_display
    payload\splashscreen.png
    payload\ssh_setup
    payload\start
    payload\success.wav
    payload\telnet_ftp_setup
    payload\update
    payload\usb_host_setup
    payload\util
    payload\backup\bin
    payload\backup\bin\extract_pubkey
    payload\backup\bin\psc_backup
    payload\kernel_modules\xpad.ko
    payload\recoverykit\bin
    payload\recoverykit\bin_normal
    payload\recoverykit\misc_recovery.bin
    payload\recoverykit\misc_reset.bin
    payload\recoverykit\systemctl
    payload\recoverykit\bin\bleemsync_service
    payload\recoverykit\bin\busybox-bs
    payload\recoverykit\bin\reboot-normal
    payload\recoverykit\bin\recovery_watch
    payload\recoverykit\bin_normal\reboot-recovery
    payload\recoverykit\systemctl\bleemsync.service
    payload\recoverykit\systemctl\ftp.socket
    payload\recoverykit\systemctl\[email protected]
    payload\recoverykit\systemctl\recovery_watch.service
    payload\recoverykit\systemctl\telnet.socket
    payload\recoverykit\systemctl\[email protected]
    payload\ssh_setup\bin
    payload\ssh_setup\etc
    payload\ssh_setup\sbin
    payload\ssh_setup\ssh.service
    payload\ssh_setup\bin\scp
    payload\ssh_setup\bin\sftp
    payload\ssh_setup\bin\ssh
    payload\ssh_setup\bin\ssh-add
    payload\ssh_setup\bin\ssh-agent
    payload\ssh_setup\bin\ssh-keygen
    payload\ssh_setup\bin\ssh-keyscan
    payload\ssh_setup\etc\sshd_config
    payload\ssh_setup\etc\ssh_config
    payload\ssh_setup\sbin\sshd
    payload\telnet_ftp_setup\bin
    payload\telnet_ftp_setup\bleemsync.service
    payload\telnet_ftp_setup\ftp.socket
    payload\telnet_ftp_setup\[email protected]
    payload\telnet_ftp_setup\telnet.socket
    payload\telnet_ftp_setup\[email protected]
    payload\telnet_ftp_setup\bin\bleemsync_service
    payload\telnet_ftp_setup\bin\blkid
    payload\telnet_ftp_setup\bin\busybox-bs
    payload\telnet_ftp_setup\bin\motd-bs
    payload\telnet_ftp_setup\bin\mount.exfat
    payload\telnet_ftp_setup\bin\mount.ntfs
    payload\update\upg_pubk.pem
    payload\usb_host_setup\bin
    payload\usb_host_setup\usbhost.service
    payload\usb_host_setup\bin\usbhost_service
    
    
     
    TnA and DeViL303 like this.
  4. 2,119
    2,001
    372
    Berion

    Berion Developer

    Joined:
    Feb 3, 2015
    Messages:
    2,119
    Likes Received:
    2,001
    Trophy Points:
    372
    Gender:
    Male
    Location:
    rom0:/
    I wouldn't be so sure with that. ;) It is probably just left off from QA testes or just recovery solution in repair service.

    Probably but I want independent solution. Anyway, it works now. Details in post above.

    In many places in fs are German file names. ;) It looks like Your brothers did the Sony outsource job designing PSC. ;)

    Must be on psx-place.com forum, since I not login to psx-scene for ages and didn't login on the other mentioned sites. I remember that thread. ^^ What a shame that hey didn't hear me out and designed console with e-shop access. :D Oh, and with less of rush.

    Kodi can be launch already. Just it needs to be compiled for this arm family and launched via start script. However who want Kodi with software upscalled 720p to 1080p/4K? ;p About Android I don't know, we need boot it from boot manager/loader, but I didn't dig into it.
     
    TnA likes this.

Share This Page