Editing Talk:Dumping Bootldr
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 45: | Line 45: | ||
===The bootldr exploit=== | ===The bootldr exploit=== | ||
If you see the log | If you see the log you'll see a lot of data exchanging between the spu and the syscon. graf had described it on his bible so it was known... but the log also said that the data was read twice once to read the header and once to read header + data. | ||
On the header was a variable length. So I decided to change the len between both reads.... didn't work until i corrected also the chksum... and then BINGO! unexpected behavior... a possible exploit was found. | On the header was a variable length. So I decided to change the len between both reads.... didn't work until i corrected also the chksum... and then BINGO! unexpected behavior... a possible exploit was found. | ||
Line 112: | Line 112: | ||
* https://mega.co.nz/#!Ygt0kSiA!0LoR9-_6BJMT_6rHDW5EPrVpUhEgv6dezfXSnNd9CKo | * https://mega.co.nz/#!Ygt0kSiA!0LoR9-_6BJMT_6rHDW5EPrVpUhEgv6dezfXSnNd9CKo | ||
* https://mega.co.nz/#!05d0CAZR!jU-XmR2CDr-3bg9XDDcKJWB2_CC8xc71nKufnoWiylA | * https://mega.co.nz/#!05d0CAZR!jU-XmR2CDr-3bg9XDDcKJWB2_CC8xc71nKufnoWiylA | ||
== Porting to NAND == | == Porting to NAND == | ||
Problems / needed changes: | Problems / needed changes: | ||
* NAND offsets differ from NOR : http://www.ps3devwiki.com/wiki/Flash | * NAND offsets differ from NOR : http://www.ps3devwiki.com/wiki/Flash | ||
* NAND / FLASH controller doesn't have MMIO regions : www. | * NAND / FLASH controller doesn't have MMIO regions : http://www.ps3devwiki.com/wiki/Talk:Hypervisor_Reverse_Engineering#MMIO_.2F_Memorymap | ||
=== Solution 1 === | === Solution 1 === | ||
Line 131: | Line 130: | ||
== Logs == | == Logs == | ||
[[http://pastebin.com/LLWSbAQT 0x2F130 bootldr | [[http://pastebin.com/LLWSbAQT 0x2F130 bootldr log]] | ||
== Analysing bootloader Dumps in Ida Pro == | == Analysing bootloader Dumps in Ida Pro == | ||
Line 140: | Line 138: | ||
2. load this script via file >>> load script https://github.com/techbliss/Bootloader-PS3, to get the functions visible. | 2. load this script via file >>> load script https://github.com/techbliss/Bootloader-PS3, to get the functions visible. | ||
Note: you need to change the function analyze_area to AnalyzeArea if you're using | Note: you need to change the function analyze_area to AnalyzeArea if you're using IDA 6.5 (17 Dec 2013) or 6.6 (04 Jun 2014) or higher. in case you're still using 6.1, keep the script as it is. presumably this script also works on metldr dumps as well, since it's also an spu binary dump. | ||