PS3 [RESEARCH] Downloading all unknown file types to HDD and Flash

Discussion in 'Homebrew Development' started by DeViL303, Apr 7, 2019.

  1. 527
    841
    147
    lmn7

    lmn7 Developer

    Joined:
    Oct 31, 2017
    Messages:
    527
    Likes Received:
    841
    Trophy Points:
    147
    Damn that would've been great if we could've had concurrent downloads. The whole downloading to flash thing is actually kind of a security concern right? I mean people can literally host sites that brick your PS3. I think you said in another post that you can't hard brick from messing with files in flash, but it's still a big issue IMO.

    So if we can't have concurrent downloads, is there a way to trigger a download, wait for it to finish, then download another file? I've tried doing this with javascript but the PS3's browser is so dated, a lot of stuff simply doesn't work. I'm sure it can be done though.
     
  2. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    Background downloading to all partitions would be great, but I doubt possible really.

    I see it as no more of a security concern than someone offering some files on here and saying "put these on your usb stick and copy to flash" , basically same risk, it will just be a little quicker to complete, but if you are following someones instructions to download a file or copy a file to flash its all the one really. You have already made the decision to trust the uploader and take the risk.

    Also yeah, soft brick is all that is possible on dev_flash afaik, I have deleted it all before in tests.

    Not sure about chaining them in the browser, maybe possible

    I think the best way to do multiple files is to use your dev_blind pkg discovery. If you use it with the net_package_install method the pkg automatically installs and deletes after, so its just one button press once dev_blind is enabled. Things like adding Debug settings to HFW could just be 1 button press away. or coldboots etc. With the added benefit of pkg hash checks etc so you wont ever get corrupt downloads installing.
     
  3. 527
    841
    147
    lmn7

    lmn7 Developer

    Joined:
    Oct 31, 2017
    Messages:
    527
    Likes Received:
    841
    Trophy Points:
    147
    Yeah think I agree with you here, the problem is the prerequisite of enabling flash and debug packages. Even though we have this in one script now, I wanted installation to be all in one click, but it just doesn't seem possible at the moment.
     
  4. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    I suppose enabling dev_blind and HDD1 could just be part of normal HAN enabler and debug package enabler maybe. So you just have to enable HAN , then download your files. Kind of is one step then as enabling HAN or debug packages is just standard procedure before doing anything hacky.

    Most CFW users have it enabled all the time afaik for FTP etc, its not really a big risk IMO. Even less on OFW really as the only way to delete stuff is with the file explorer.
     
    elbubu, Algol, Niander466 and 2 others like this.
  5. 527
    841
    147
    lmn7

    lmn7 Developer

    Joined:
    Oct 31, 2017
    Messages:
    527
    Likes Received:
    841
    Trophy Points:
    147
    I think making it default for debug packages is fine, but some games check for signs of CFW so it may not be the best idea to use it for the HAN enabler. I'll talk to ShaolinAssassin about it.
     
    elbubu, Algol, citra mulia and 3 others like this.
  6. 2
    0
    5
    aaryan

    aaryan Forum Noob

    Joined:
    Apr 20, 2019
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    5
    Gender:
    Male
     
  7. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    You seem to have said nothing there.
     
    Renatinho50 likes this.
  8. 10
    0
    30
    Renatinho50

    Renatinho50 Member

    Joined:
    Nov 8, 2017
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    30
    Gender:
    Male
    Is it possible for this tool to have access to CFW Slim 3XX?
     
  9. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    This download_list.xml mod is working the same on HFW as CFW, including deletion bug. The only difference is that on OFW you need to mount dev_blind or dev_hdd1 with a web exploit to use them.


    Note: "CFW Slim 3XX" = CFW is not possible on CECH3xxx.
     
    elbubu, Algol and Niander466 like this.
  10. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    Nice , unlocked an official function for downloading PUPs and PBPs with folder creation. Thanks to a tip from kozarovv about mimetypes.

    Now I have more options for folder creation as we dont need to waste the sbk/sb2 mod on PUPs, also, we get to see nice icons that might not have been seen for a long time if ever.

    [​IMG]

    [​IMG]


    I think i will mod the eboot.pbp one to do something else as its not really useful now imo. Cool though, and this has opened up more possibilities with mimetype mods too.
     
  11. 2,843
    4,493
    372
    aldostools

    aldostools Developer Developer

    Joined:
    Oct 30, 2014
    Messages:
    2,843
    Likes Received:
    4,493
    Trophy Points:
    372
    What MIME type did you use? I has been suggesting you to use "application/octet-stream"
     
    DeViL303 likes this.
  12. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    Yes, you were right too, I just had not tried this particular mod before. It was expecting PUPs and PBP to be served with special mimetypes, but now I patched that in the sprx to be application/octet-stream, and now it treats those files in the proper way even though mimetype is normal.

    I have also made a few more discoveries, I can have it treat REBUG.PUP differently to PS3UPDAT.PUP, also can mess with the mnv mimetype and extension. Wish i had a bit more room in the prx, I cant have dev_hdd0/packages/ due to lack of space, only room for "package", there are a few things like that.
     
    jacobsson and elbubu like this.
  13. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    @aldostools, @lmn7, @Niander466 @sandungas @NewFile @Louay

    [​IMG]

    100% Solved the deletion bug, now can download to dev_hdd0 anywhere I want, Only required a 1 byte patch to download_plugin.sprx in the end, just took a while to find it. :)

    Note: Due to sprx patch , this will only work on CFW. Maybe as this patch is so simple, literally 1 byte, that it can be achieved on HFW too with a RAM patch?

    This is the byte that needs to be patched, change it to anything else and it no longer checks dev_hdd0 for unknown files and deletes them ..simple :) That patch and my download_list.xml is all you need really.

    upload_2019-4-21_22-38-24.png


    See attached files, few extra patches to these, one to allow files to go to root, and another to remove pkg signature check. I have also added 3 different ways for PUPs to be handled, just because I can :D

    1. PS3UPDAT.PUP creates PS3/UPDATE/ folder and downloads into it if you select USB
    2. REBUG.PUP creates CFW/UPDATE/ folder and downloads into it if you select USB
    3. ANY other PUP with any other name, automatically creates and goes into dev_hdd0/updater/01

    See attached download_list.xml/download_plugin.sprx for working download hack.

    If there are any more paths that anyone thinks should be added let me know. I think this should become a standard CFW patch in future, I can see no downside.


     

    Attached Files:

  14. 951
    586
    172
    Louay

    Louay Senior Member

    Joined:
    Jan 23, 2017
    Messages:
    951
    Likes Received:
    586
    Trophy Points:
    172
    Gender:
    Male
    Occupation:
    College student
    Location:
    Tunisie
    Home Page:
    Woww that's greet ps3 scene is more alive then PS4 and hope we continue same way :love heart:
     
    jacobsson, Niander466 and DeViL303 like this.
  15. 258
    188
    72
    Casavult

    Casavult Member

    Joined:
    Oct 28, 2016
    Messages:
    258
    Likes Received:
    188
    Trophy Points:
    72
    Location:
    London, United Kingdom
    You absolute beast. ;)
     
    DeViL303 likes this.
  16. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    BTW, if anyone is trying to make a HAN RAM patch for download_plugin.sprx to do this, patch out this extension too, then it will treat pkgs like any other unknown file type, no sig check. I know on CFW it always returns true, but this way, there is no check at all afaik, and so, on HFW it will allow debug packages AND resigned pkgs to download at the same time without any other hacks applied. ;)

    upload_2019-4-21_23-19-57.png

    I just patched it to "xxx".
     
    mr_ota, jacobsson, elbubu and 3 others like this.
  17. 312
    95
    82
    ayassinsayed

    ayassinsayed Member

    Joined:
    Mar 16, 2018
    Messages:
    312
    Likes Received:
    95
    Trophy Points:
    82
    Gender:
    Male
    Great work , hope to work in HFW and we can use it to download han support files to dev_blind directly ?


    Sent from my iPhone using Tapatalk
     
    Last edited: Apr 21, 2019
    citra mulia, Niander466 and DeViL303 like this.
  18. 6,006
    6,733
    622
    DeViL303

    DeViL303 Developer PSX-Place Supporter

    Joined:
    Jan 23, 2016
    Messages:
    6,006
    Likes Received:
    6,733
    Trophy Points:
    622
    Gender:
    Male
    Occupation:
    Part-Time XMB Modder
    Location:
    Ireland
    I have no plans to even look at it. so no. Unless someone else wants to look into it.
     
    jcorrea, Niander466 and ayassinsayed like this.
  19. 220
    109
    72
    Niander466

    Niander466 Member

    Joined:
    Dec 23, 2017
    Messages:
    220
    Likes Received:
    109
    Trophy Points:
    72
    Gender:
    Male
    wowwww thank you, incredible you are genius !!!!
     
  20. 220
    109
    72
    Niander466

    Niander466 Member

    Joined:
    Dec 23, 2017
    Messages:
    220
    Likes Received:
    109
    Trophy Points:
    72
    Gender:
    Male
    about download_plugin.sprx
    in case the one you posted only works in cfw? so I would have to edit the original sprx is this?
     

Share This Page