Page 1 of 6 12 ... LastLast
Results 1 to 10 of 56

Thread: PS3 CFW Folder Checker Homebrew App and Source Code Arrive

  1. #1
    Join Date
    Apr 2005
    Posts
    23,636

    PS3 CFW Folder Checker Homebrew App and Source Code Arrive

    This weekend PlayStation 3 developer PsDev has released a homebrew application called PS3 CFW Folder Checker along with the source code as well, followed by Check_PKG and HashCalc by eminem451 with details below.

    Download: PS3 CFW Folder Checker Homebrew App and Source Code / check_pkg.zip / check_pkg.zip (Updated) / hashcalc-simple.exe by eminem451

    From the included ReadMe file: Just place the .exe file in your flash drive where you have your folders and cfw setup run it and it will tell you if there is a typo, the foldername correct, the pup name correct and then if so it tell you your ready to go.

    Took me 5 min.

    Follow me on twitter at RealPsDev

    Source Code:
    Code:
    #include <Windows.h>
    #include <direct.h>
    #include <iostream>
    #include <fstream>
    #include <string>
    
    #pragma comment(lib, "shlwapi.lib")
    #include <shlwapi.h>
    
    using namespace std;
    typedef unsigned int u32;
    
    /*******************************************************************************
     * Check if a file or a folder exists
     ******************************************************************************/
    bool Exists(string Path)
    {
    	return GetFileAttributes(Path.c_str()) != INVALID_FILE_ATTRIBUTES;
    }
    
    /*******************************************************************************
     * Quit the application with a message
     ******************************************************************************/
    void Quit(string Message)
    {
    	cout << Message.c_str() << "\r\nPress any key to continue...";
    	cin.get();
    	exit(0);
    }
    
    /*******************************************************************************
     * Entry Point
     ******************************************************************************/
    int main(int argc, char* argv[])
    {
    	// - Show banner
    	cout << "*****************************************************\r\n";
    	cout << "**\r\n";
    	cout << "** \tCFW Checker\r\n";
    	cout << "**\tFollow me on twitter @ RealPsDev\r\n";
    	cout << "**\tI was bored made in 5min\r\n";
    	cout << "**\r\n";
    	cout << "*****************************************************\r\n\r\n";
    
    	// - Get CFW Path
    	char ExePath[MAX_PATH];
    	GetModuleFileName(NULL, ExePath, MAX_PATH);
    
    	string SourcePath = string(ExePath);
    	SourcePath.erase(SourcePath.rfind("\\"));
    
    	// - Verify 'Cfw' folder
    	SourcePath += "\\PS3\\UPDATE\\PS3UPDAT.PUP";
    	cout << "- Checking see if Folders For CFW are correct" << endl;
    
    	if (!Exists(SourcePath))
    		Quit("Error: Folders are not correct(" + SourcePath + ")\r\n");
    
    	
    	Quit("\r\nYou are now ready to the USB into the ps3!\r\n");
    	return 0;
    }
    Finally, from PsDev on PS3 lv0: http://pastie.org/2967339
    Code:
    From PsDev. Nothing Important Just some lv0 stuff / whistle 
    
    SELF header
      elf #1 offset:  00000000_00000090
      header len:     00000000_00000500
      meta offset:    00000000_000001e0
      phdr offset:    00000000_00000040
      shdr offset:    00000000_000e7830
      file size:      00000000_000e7640
      auth id:        1ff00000_01000001 (Unknown)
      vendor id:      ff000000
      info offset:    00000000_00000070
      sinfo offset:   00000000_00000140
      version offset: 00000000_00000180
      control info:   00000000_00000190 (00000000_00000070 bytes)
      app version:    4.0.0
      SDK type:       Retail (Type 0)
      app type:       level 0
    
    Control info
      control flags:
         00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
      file digest:
         6e bc 16 e2 38 12 18 df d0 02 18 e1 66 2b fe 5b 65 50 f7 5a
    
    Section header
        offset             size              compressed unk1     unk2     encrypted
        00000000_00010500  00000000_00000c70 [NO ]      00000000 00000000 [YES]
        00000000_00020500  00000000_000c7380 [NO ]      00000000 00000000 [YES]
    
    Encrypted Metadata
      unable to decrypt metadata
    
    ELF header
      type:                                 Executable file
      machine:                              PowerPC64
      version:                              1
      phdr offset:                          00000000_00000040
      shdr offset:                          00000000_000e73c0
      entry:                                00000000_00000c60
      flags:                                00000000
      header size:                          00000040
      program header size:                  00000038
      program headers:                      2
      section header size:                  00000040
      section headers:                      10
      section header string table index:    9
    
    Program headers
        type  offset            vaddr             paddr
              memsize           filesize          PPU  SPE  RSX  align
         LOAD 00000000_00010000 00000000_00000000 00000000_00000000
              00000000_00000c70 00000000_00000c70 rwx  ---  ---  00000000_00010000
         LOAD 00000000_00020000 00000000_08000000 00000000_08000000
              00000000_000cc250 00000000_000c7380 rwx  ---  ---  00000000_00010000
    
    Section headers
      [Nr] Name            Type      Addr              ES Flg Lk Inf Al
           Off                       Size
      [00] <no-name>       NULL      00000000_00000000 00     00 000 00
           00000000_00000000         00000000_00000000
      [01] <no-name>       PROGBITS  00000000_00000000 00 wae 00 000 08
           00000000_00010000         00000000_00000c70
      [02] <no-name>       PROGBITS  00000000_08000000 00 wa  00 000 04
           00000000_00020000         00000000_00017358
      [03] <no-name>       PROGBITS  00000000_08017360 00  a  00 000 16
           00000000_00037360         00000000_0002c748
      [04] <no-name>       PROGBITS  00000000_08043ab0 00  ae 00 000 16
           00000000_00063ab0         00000000_0007e5f8
      [05] <no-name>       PROGBITS  00000000_080c20b0 00  ae 00 000 08
           00000000_000e20b0         00000000_00004200
      [06] <no-name>       PROGBITS  00000000_080c62b0 00  ae 00 000 08
           00000000_000e62b0         00000000_00000080
      [07] <no-name>       PROGBITS  00000000_080c6330 00  ae 00 000 08
           00000000_000e6330         00000000_00001050
      [08] <no-name>       NOBITS    00000000_080c7380 00  ae 00 000 128
           00000000_000e7380         00000000_00004ed0
      [09] <no-name>       STRTAB    00000000_00000000 00     00 000 01
           00000000_000e7380         00000000_0000003d
    From eminem451 also comes Check_PKG (linked above), who states the following:

    Hi, a quick tool to check if your PKG is not altered. This will verify a single PKG file or a whole directory.
    Code:
    usage: check_pkg.exe <path>[options]
    Options:
    Code:
    -c: check full header hash (CMAC/ECDSA/SHA1)
    -h: check SHA1 footer hash from PKG
    -s: check hash values from PKG (Header + data SHA1)
    -x: check full data hash from PKG (CMAC/ECDSA/SHA1)
    -i: check full PKG infos hash (CMAC/ECDSA/SHA1)
    -z: check all known hashes
    
    default: check SHA1 footer only.
    There are x86 and x64 version in the zip, use the one you need.
    • check_pkg: only return a code (0 = OK, anything else = ERROR), more usefull for dev using other app calling it.
    • check_pkg_dbg: same as "check_pkg" but outputs messages.
    • check_pkg_dbgc: same as check_pkg_dbg but PAUSES after any errors when checking directory and has a progress bar, better of the 3 releases for common user.

    Check_pkg_dbgc is recommended for common user. Use this after downloading a PKG to be sure it is not corrupted.

    Update: I updated my software, it now handles debug PKG better, and can check ECDSA signature from retails one.

    HashCalc

    Hi, I made a little app (linked above) to calculate hash from files. i limited it to a few algo for this edition, let me know what you think of it.

    Info: Drag and drop file on it will save time.
    • If you are on win8.1, right click on hashcalc.exe, unlock.
    • This app handle mode than 200 hashing algos; i locked it for this edition (SHA3, MD6, BLAKE...), making it easier for everyone.
    • With this app, you can compute MD5 or SHA1 of any files, it may help you checking PUP's MD5 for example.

    HMAC is available on full version, tell me if you need it.

    Info: Not all algos are listed alphabetically, it's normal, i sort them myself, sometimes alphabetically and sometimes by genre, there is no problems with it.

    On 21/12/2014, removed French version, removed X64 Version, this way, there only is one version. A few bug fixed.

    Version 1.1.3: Unlocked PS Debug PKG Hash, there are many hashes in debug PKGs, first one is stored at offset 0x80, use my app with this algo and set size to 0x80, check then hash in file at offset 0x80, if it matches, PKG is OK, else it wasnt built correctly or was altered.

    I noted that, debug PKG made by proper tools (SDK ones) have good hashes, a few others, i think made by that ugly python script dont. Any PKG made by make_pkg_npdrm (official) has these hashes correct.

    EAHash Unlocked too, a md5 derivation used in some game saves.

    Update 1.1.3 Changelog:
    • Added PS3 Debug PKG Hash algo, EAHash, and a few UI bug fixes.

    [imglink=http://www.ps4news.com/images/ps3-cfw-folder-checker-homebrew-app-and-source-code-arrive-28930-1.jpg|PS3 CFW Folder Checker Homebrew App and Source Code Arrive]http://www.ps4news.com/images.php?sm=1&f=ps3-cfw-folder-checker-homebrew-app-and-source-code-arrive-28930-1.jpg&w=500&h=400[/imglink]
    More PlayStation 3 News...

  2. #2
    barrybarryk Guest
    What a ridiculous ploy to get twitter followers. Is he really that needy?

  3. #3
    Tidusnake666 Guest
    Well, I hoped there'll be at least some CRC/MD5 checks on the CFW versions, so the user wouldn't occasionally install OFW... Oh well, pathetic

  4. #4
    meistermacher1 Guest
    nice idea

  5. #5
    niwakun Guest
    hmmm... to be short
    Code:
    if PS3UPDAT=EXIST{printf("CFW Found!!")}
    its not really that great app, plus if you place a OFW, it tells that CFW is there, no checking of actual files has been done.

  6. #6
    mod632 Guest
    I really can't believe on what RealPsDev wasting they his time (even if it is 5min lol), pointless app that we don't need and now someone will say *you should be grateful* and i am but not with something like this.

    He even posted thread on how to dump LV0 but of course, others have to do it but no Dev who thinks he knows how.. basically same as math's walkthrough.

    sorry if this sound disrespectful but we all hoping.

  7. #7
    Tidusnake666 Guest
    Quote Originally Posted by niwakun View Post
    hmmm... to be short
    Code:
    if PS3UPDAT=EXIST{printf("CFW Found!!")}
    its not really that great app, plus if you place a OFW, it tells that CFW is there, no checking of actual files has been done.
    100%. IIRC, some dev had an app that cheks Update.pup for the version.

    If someone really needs this, anyone can write such app for path checks and identifying CFW version, even me (just say so, it's half an hour job in any programming language, except assembler ).

    But I really do not get involved in this, because I can see this PsDev tweeting over the world that I've stolen his "idea", etc, etc, all this PS3 scene drama, you know the drill.

  8. #8
    niwakun Guest
    Quote Originally Posted by Tidusnake666 View Post
    If someone really needs this, anyone can write such app for path checks and identifying CFW version, even me (just say so, it's half an hour job in any programming language, except assembler ).
    you can already get the code for it on MFW source. Not really that hard to integrate it to this, but anyway it's pointless.

  9. #9
    adrianc1982 Guest
    but you are going to post the midget fight right?

  10. #10
    Join Date
    Apr 2005
    Posts
    23,636
    Sure, the micro one with Hulk Hogan in it.

Page 1 of 6 12 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •