Esempio n. 1
0
        private void button12_Click(object sender, EventArgs e)
        {
            // PS4_Tools.PKG.Official.RIF rifitem = PS4_Tools.PKG.Official.ReadRif(@"C:\Users\3deEchelon\Downloads\RifTest.rif");
            PS4_Tools.PKG.Official.RIF rifitem = PS4_Tools.PKG.Official.ReadRif(@"C:\Users\3deEchelon\Desktop\PS4\LM\Sc0\license.dat");
            /*Rif Loaded*/
            // string Content_ID = System.Text.Encoding.ASCII.GetString(rifitem.Content_ID);

            lblExtrInfo.Text = "Rif information" + "\r\n";

            lblExtrInfo.Text += @"Content ID : " + rifitem.Content_ID + "\r\n" + "\r\n";

            lblExtrInfo.Text += @"Encrypted Secret : " + rifitem.Encrypted_Secret.Entitlement_Key + "\r\n";
            lblExtrInfo.Text += @"Secret Encryption IV" + rifitem.Secret_Encryption_IV + "\r\n";
        }
    void Start()
    {
        try
        {
            //Unjail505();
        }
        catch {; }

        CrearDirectorio();

        #region << PS4 Tools >>



        //Testing PS4 Tools here I will ask Lappy to test it for me in full for now just testing on windows
        #region << PKG Handeling >>
        try
        {                       //Liborbis testing
            var temp = PS4_Tools.PKG.SceneRelated.ReadPKG("C:\\Users\\3deEchelon\\Desktop\\PS4\\Euro.FISHING.COLLECTORS.EDITION.PS4-DUPLEX\\Euro.Fishing.Collectors.Edition.PS4-DUPLEX\\duplex-euro.fishing.collectors.ed.ps4\\Euro.Fishing.Collectors.Edition.PS4-DUPLEX.pkg");
        }
        catch (Exception ex)
        {
            //some load error
        }
        try
        {
            //Normal testing just to read some info from the pkg
            var pkg = PS4_Tools.PKG.SceneRelated.Read_PKG("C:\\Users\\3deEchelon\\Desktop\\PS4\\Euro.FISHING.COLLECTORS.EDITION.PS4-DUPLEX\\Euro.Fishing.Collectors.Edition.PS4-DUPLEX\\duplex-euro.fishing.collectors.ed.ps4\\Euro.Fishing.Collectors.Edition.PS4-DUPLEX.pkg");
        }
        catch (Exception ex)
        {
            //some load error
        }
        #endregion << PKG Handeling >>

        #region << GP File Handeling >>
        try{
            //PS4 GP4 File Testing
            PS4_Tools.PKG.SceneRelated.GP4.Psproject project = PS4_Tools.PKG.SceneRelated.GP4.ReadGP4(@"C:\Users\3deEchelon\Documents\Sony\Crash Bandcioot Twinsanity.gp4");
            if (project.Fmt != "gp4")
            {
                //MessageBox.Show("This is not a valid PS4 Project");
                //show some sort of messagebox
                return;
            }

            //lets read the pkg content info
            if (project.Volume.Package.Passcode.Length != 32)
            {
                //MessageBox.Show("Passcode Lentgh is not valid");
            }

            //to save a gp4

            //PS4_Tools.PKG.SceneRelated.GP4.SaveGP4(@"C:\Users\3deEchelon\Documents\Sony\tempworking.gp4", project);
        }
        catch (Exception ex)
        {
            //display some load error
        }
        #endregion << GP File Handeling >>

        #region << DDS Handeling >>

        //since i was using bitmaps to do all this i will need to change it to byte[] so users can create proper images from these items

        Stream item = PS4_Tools.Image.DDS.GetStreamFromDDS(@"C:\Users\3deEchelon\Desktop\PS4\psp Decrypt\Sc0\icon0.dds");
        //do with the stream as you wish

        #endregion << DDS Handeling >>

        #region << RCO >>

        //PS4_Tools.RCO.DumpRco(@"C:\Users\3deEchelon\Desktop\PS4\RCO\Sce.Cdlg.GameCustomData.rco");
        var file = PS4_Tools.RCO.ReadRco(@"C:\Users\3deEchelon\Desktop\PS4\RCO\Sce.Cdlg.GameCustomData.rco");
        //testing time
        //write a file to server or whatever
        //we can dump them all if we want 2

        //example how to write all files out you can also display them as you wish using this
        //var image = file.FileTable.PNGFiles[0].FileBytes;
        //System.IO.File.WriteAllBytes(@"C: \Users\3deEchelon\Desktop\PS4\RCO\img0.png", image);

        #endregion << RCO >>

        #region << Save Data >>


        //PS4_Tools.SaveData.LoadSaveData(@"C:\Users\3deEchelon\Desktop\PS4\RE\Ps4 Save Data Backup\10000000\savedata\CUSA01656\sdimg_SAVEDATA00", @"C:\Users\3deEchelon\Desktop\PS4\RE\Ps4 Save Data Backup\10000000\savedata\CUSA01656\SAVEDATA00.bin");


        #endregion << Save Data >>

        #region << RIF >>

        // PS4_Tools.PKG.Official.RIF rifitem = PS4_Tools.PKG.Official.ReadRif(@"C:\Users\3deEchelon\Downloads\RifTest.rif");
        PS4_Tools.PKG.Official.RIF rifitem = PS4_Tools.PKG.Official.ReadRif(@"C:\Users\3deEchelon\Desktop\PS4\LM\Sc0\license.dat");
        /*Rif Loaded*/
        // string Content_ID = System.Text.Encoding.ASCII.GetString(rifitem.Content_ID);


        #endregion << RIF >>

        #region << Updates and DLC checking >>
        try{
            var updateitem = PS4_Tools.PKG.Official.CheckForUpdate("CUSA07708");
            var storeitems = PS4_Tools.PKG.Official.Get_All_Store_Items("CUSA07708");
        }
        catch (Exception ex)
        {
        }

        #endregion << Updates and DLC Checking >>

        #endregion << PS4 Tools >>
    }