Close

Page 1 of 2 12 LastLast
Results 1 to 20 of 25
  1. #1
    DF Founder Raptor's Avatar
    Join Date
    Nov 1999
    Location
    USA
    Posts
    95,488
    Thanks
    482
    Thanked:        1,885
    Karma Level
    4958

    Xbox 360 The Xbox 360 reset glitch hack - New Homebrew Hack!

    From the readme/nfo:

    Introduction / some important facts
    ===================================

    tmbinc said it himself, software based approaches of running unsigned code on the 360 mostly don't work, it was designed to be secure from a software point of view.

    The processor starts running code from ROM (1bl) , which then starts loading a RSA signed and RC4 crypted piece of code from NAND (CB).

    CB then initialises the processor security engine, its task will be to do real time encryption and hash check of physical DRAM memory. From what we found, it's using AES128 for crypto and strong (Toeplitz ?) hashing. The crypto is different each boot because it is seeded at least from:
    - A hash of the entire fuseset.
    - The timebase counter value.
    - A truly random value that comes from the hardware random number generator the processor embeds. on fats, that RNG could be electronically deactivated, but there's a check for "apparent randomness" (merely a count of 1 bits) in CB, it just waits for a seemingly proper random number.

    CB can then run some kind of simple bytecode based software engine whose task will mainly be to initialise DRAM, CB can then load the next bootloader (CD) from NAND into it, and run it.

    Basically, CD will load a base kernel from NAND, patch it and run it.

    That kernel contains a small privileged piece of code (hypervisor), when the console runs, this is the only code that would have enough rights to run unsigned code.
    In kernel versions 4532/4548, a critical flaw in it appeared, and all known 360 hacks needed to run one of those kernels and exploit that flaw to run unsigned code.
    On current 360s, CD contains a hash of those 2 kernels and will stop the boot process if you try to load them.
    The hypervisor is a relatively small piece of code to check for flaws and apparently no newer ones has any flaws that could allow running unsigned code.

    On the other hand, tmbinc said the 360 wasn't designed to withstand certain hardware attacks such as the timing attack and "glitching".

    Glitching here is basically the process of triggering processor bugs by electronical means.

    This is the way we used to be able to run unsigned code.

    The reset glitch in a few words
    ===============================

    We found that by sending a tiny reset pulse to the processor while it is slowed down does not reset it but instead changes the way the code runs, it seems it's very efficient at making bootloaders memcmp functions always return "no differences". memcmp is often used to check the next bootloader SHA hash against a stored one, allowing it to run if they are the same. So we can put a bootloader that would fail hash check in NAND, glitch the previous one and that bootloader will run, allowing almost any code to run.

    Details for the fat hack
    ========================

    On fats, the bootloader we glitch is CB, so we can run the CD we want.

    cjak found that by asserting the CPU_PLL_BYPASS signal, the CPU clock is slowed down a lot, there's a test point on the motherboard that's a fraction of CPU speed, it's 200Mhz when the dash runs, 66.6Mhz when the console boots, and 520Khz when that signal is asserted.

    So it goes like that:
    - We assert CPU_PLL_BYPASS around POST code 36 (hex).
    - We wait for POST 39 start (POST 39 is the memcmp between stored hash and image hash), and start a counter.
    - When that counter has reached a precise value (it's often around 62% of entire POST 39 length), we send a 100ns pulse on CPU_RESET.
    - We wait some time and then we deassert CPU_PLL_BYPASS.
    - The cpu speed goes back to normal, and with a bit of luck, instead of getting POST error AD, the boot process continues and CB runs our custom CD.

    The NAND contains a zero-paired CB, our payload in a custom CD, and a modified SMC image.
    A glitch being unreliable by nature, we use a modified SMC image that reboots infinitely (ie stock images reboot 5 times and then go RROD) until the console has booted properly.
    In most cases, the glitch succeeds in less than 30 seconds from power on that way.

    Details for the slim hack
    =========================

    The bootloader we glitch is CB_A, so we can run the CB_B we want.

    On slims, we weren't able to find a motherboard track for CPU_PLL_BYPASS.
    Our first idea was to remove the 27Mhz master 360 crystal and generate our own clock instead but it was a difficult modification and it didn't yield good results.
    We then looked for other ways to slow the CPU clock down and found that the HANA chip had configurable PLL registers for the 100Mhz clock that feeds CPU and GPU differential pairs.
    Apparently those registers are written by the SMC through an I2C bus.
    I2C bus can be freely accessed, it's even available on a header (J2C3).
    So the HANA chip will now become our weapon of choice to slow the CPU down (sorry tmbinc, you can't always be right, it isn't boring and it does sit on an interesting bus

    So it goes like that:
    - We send an i2c command to the HANA to slow down the CPU at POST code D8 .
    - We wait for POST DA start (POST DA is the memcmp between stored hash and image hash), and start a counter.
    - When that counter has reached a precise value, we send a 20ns pulse on CPU_RESET.
    - We wait some time and then we send an i2c command to the HANA to restore regular CPU clock.
    - The cpu speed goes back to normal, and with a bit of luck, instead of getting POST error F2, the boot process continues and CB_A runs our custom CB_B.

    When CB_B starts, DRAM isn't initialised so we chose to only apply a few patches to it so that it can run any CD, the patches are:
    - Always activate zero-paired mode, so that we can use a modified SMC image.
    - Don't decrypt CD, instead expect a plaintext CD in NAND.
    - Don't stop the boot process if CD hash isn't good.

    CB_B is RC4 crypted, the key comes from the CPU key, so how do we patch CB_B without knowing the CPU key?
    RC4 is basically:
    crypted = plaintext xor pseudo-random-keystream
    So if we know plaintext and crypted, we can get the keystream, and with the keystream, we can encrypt our own code. It goes like that:
    guessed-pseudo-random-keystream = crypted xor plaintext
    new-crypted = guessed-pseudo-random-keystream xor plaintext-patch
    You could think there's a chicken and egg problem, how did we get plaintext in the first place?
    Easy: we had plaintext CBs from fat consoles, and we thought the first few bytes of code would be the same as the new CB_B, so we could encrypt a tiny piece of code to dump the CPU key and decrypt CB_B!

    The NAND contains CB_A, a patched CB_B, our payload in a custom plaintext CD, and a modified SMC image.
    The SMC image is modified to have infinite reboot, and to prevent it from periodically sending I2C commands while we send ours.

    Now, maybe you haven't realised yet, but CB_A contains no checks on revocation fuses, so it's an unpatchable hack !

    Caveats
    =======

    Nothing is ever perfect, so there are a few caveats to that hack:
    - Even in the glitch we found is pretty reliable (25% success rate per try on average), it can take up to a few minutes to boot to unsigned code.
    - That success rate seems to depend on something like the hash of the modified bootloader we want to run (CD for fats and CB_B for slims).
    - It requires precise and fast hardware to be able to send the reset pulse.

    Our current implementation
    ==========================

    We used a Xilinx CoolRunner II CPLD (xc2c64a) board, because it's fast, precise, updatable, cheap and can work with 2 different voltage levels at the same time.
    We use the 48Mhz standby clock from the 360 for the glitch counter. For the slim hack, the counter even runs at 96Mhz (incremented on rising and falling edges of clock)
    The cpld code is written in VHDL.
    We need it to be aware of the current POST code, our first implementations used the whole 8 bits POST port for this, but we are now able to detect the changes of only 1 POST bit, making wiring easier.

    Conclusion
    ==========

    We tried not to include any MS copyrighted code in the released hack tools.
    The purpose of this hack is to run Xell and other free software, I (GliGli) did NOT do it to promote piracy or anything related, I just want to be able to do whatever I want with the hardware I bought, including running my own native code on it.

    Credits
    =======

    GliGli, Tiros: Reverse engineering and hack development.
    cOz: Reverse engineering, beta testing.
    Razkar, tuxuser: beta testing.
    cjak, Redline99, SeventhSon, tmbinc, anyone I forgot... : Prior reverse engineering and/or hacking work on the 360.
    Official Site:


    Thanks to Raptor

    Mystical_2K (29th August 2011)  


  2. #2
    DF VIP Member
    Mystical_2K's Avatar
    Join Date
    Jun 2002
    Location
    Sunnyvale
    Posts
    4,660
    Thanks
    1,192
    Thanked:        978
    Karma Level
    672

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    very cool but i wish i understood all that lol
    You know he grew up as a little shitspark from the old shitflint and then he turned into a shitbonfire and driven by the winds of his monumental ignorance he turned into a raging shitfirestorm. If I get to be married to Barb I'll have total control of Sunnyvale and then I can unleash the shitnami tidal wave that will engulf Ricky and extinguish his shitflames forever. And with any luck he'll drown in the undershit of that wave. Shitwaves.

  3. #3
    DF Super Moderator BIG-TED's Avatar
    Join Date
    May 2001
    Location
    Leics UK
    Posts
    2,022
    Thanks
    447
    Thanked:        881
    Karma Level
    423

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    this is good news it's saying a hack for the 360s past the older cb that is non exploitable, may soon have an add on chip available to make it hackable. happy dayz.

    Too add all those consoles that have lost the dvd key will soon be able to get it off the motherboard and restore functionality to the console.

    not for xenon/opus boards at the minute.

    Ted
    Last edited by BIG-TED; 29th August 2011 at 08:21 AM.
    Lots of my repairs and pictures of retro stuff on my twitter.

    https://twitter.com/Big_ted1?t=s9zEZ...Z-npEyeKA&s=09

    Thanks to BIG-TED

    4me2 (5th September 2011)  


  4. #4
    DF VIP Member garagekru's Avatar
    Join Date
    Jun 2001
    Location
    uk
    Posts
    1,419
    Thanks
    26
    Thanked:        14
    Karma Level
    366

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    The wiring looks a mission not for the faint hearted

  5. #5
    DF VIP Member
    TAR's Avatar
    Join Date
    May 2002
    Location
    My home
    Posts
    2,409
    Thanks
    284
    Thanked:        240
    Karma Level
    383

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!


  6. #6
    DF Super Moderator BIG-TED's Avatar
    Join Date
    May 2001
    Location
    Leics UK
    Posts
    2,022
    Thanks
    447
    Thanked:        881
    Karma Level
    423

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    link to The_Reset_Glitch_Hack_Xbox360_Tutorial_EN

    http://homepage.ntlworld.com/big.ted/reset.zip

    Ted
    Lots of my repairs and pictures of retro stuff on my twitter.

    https://twitter.com/Big_ted1?t=s9zEZ...Z-npEyeKA&s=09

    3 Thanks given to BIG-TED

    biggy7 (30th August 2011),  bobo06 (29th August 2011),  raelmadrid (29th August 2011)  


  7. #7
    DF VIP Member raelmadrid's Avatar
    Join Date
    Apr 2002
    Location
    Redmond, WA
    Posts
    4,561
    Thanks
    818
    Thanked:        703
    Karma Level
    536

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    omg sickness

  8. #8
    DF VIP Member
    bobo06's Avatar
    Join Date
    Feb 2007
    Location
    Béal Feirste
    Posts
    4,352
    Thanks
    475
    Thanked:        552
    Karma Level
    527

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Great news but what im dreading is the hacked call of duty lobbys every cunt will doing them


    J-Tag 360 RGH 360, PS3 Super Slim, Xbox 360 Slim, WDTV Live with CFW, Vu+ Solo 2, Dreambox 500HD Connected to 1M Motorised Dish.

  9. #9
    DF VIP Member raelmadrid's Avatar
    Join Date
    Apr 2002
    Location
    Redmond, WA
    Posts
    4,561
    Thanks
    818
    Thanked:        703
    Karma Level
    536

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Quote Originally Posted by bobo06 View Post
    Great news but what im dreading is the hacked call of duty lobbys every cunt will doing them
    live is disabled in the new freeboots

  10. #10
    DF VIP Member fanni's Avatar
    Join Date
    Feb 2008
    Location
    West London
    Posts
    2,717
    Thanks
    150
    Thanked:        313
    Karma Level
    361

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Nice looking forward to giving this a go

    got a slim sitting here doing nothing

  11. #11
    DF VIP Member
    Tim.Lad's Avatar
    Join Date
    May 2001
    Location
    The Badlands
    Posts
    2,066
    Thanks
    343
    Thanked:        244
    Karma Level
    403

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Check the video at 1:09 look at the reflection I'm sure he's naked then cracks one of on the sofa

  12. #12
    DF VIP Member
    bobo06's Avatar
    Join Date
    Feb 2007
    Location
    Béal Feirste
    Posts
    4,352
    Thanks
    475
    Thanked:        552
    Karma Level
    527

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    I'm sure that's a kick in the dick for that x360key or what ever you call it


    J-Tag 360 RGH 360, PS3 Super Slim, Xbox 360 Slim, WDTV Live with CFW, Vu+ Solo 2, Dreambox 500HD Connected to 1M Motorised Dish.

  13. #13
    DF Admin Teajunkie's Avatar
    Join Date
    Dec 2009
    Location
    Devon
    Posts
    4,228
    Thanks
    1,827
    Thanked:        1,826
    Karma Level
    569

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Quote Originally Posted by Tim.Lad View Post
    Check the video at 1:09 look at the reflection I'm sure he's naked then cracks one of on the sofa
    Thats both the funniest thing i have read today and the most concerning.
    Not only did you notice that you perv but i actually went to watch the fecking thing again
    Have you joined the DF discord server. https://discord.com/invite/YajVGQxDaw

    2 Thanks given to Teajunkie

    Mario87 (29th August 2011),  Tim.Lad (29th August 2011)  


  14. #14
    DF VIP Member Flat's Avatar
    Join Date
    Apr 2008
    Location
    /
    Posts
    808
    Thanks
    7
    Thanked:        47
    Karma Level
    228

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    that sounds good
    looking forward to some great tutorials

  15. #15
    DF VIP Member raelmadrid's Avatar
    Join Date
    Apr 2002
    Location
    Redmond, WA
    Posts
    4,561
    Thanks
    818
    Thanked:        703
    Karma Level
    536

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    got all the kit and a new 4gb slim on the way

  16. #16
    DF VIP Member Mario87's Avatar
    Join Date
    Jan 2002
    Location
    Sunny Aberdeen
    Posts
    7,228
    Thanks
    115
    Thanked:        92
    Karma Level
    691

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Quote Originally Posted by raelmadrid View Post
    got all the kit and a new 4gb slim on the way
    Where did you get the Digilent C-Mod & XILINX JTAG programmer cable? Digilents website sayd they are back ordered until October 1st and I can't find other suppliers who have it. As for the XILINX JTAG cable I have found schematics on how to make on, but no-where that just sells it.

    If I was still at uni I'd be able to get the programming cable no bother! lol Remember coding in Verilog....fucking hated it! Still got my XILINX kit somewhere, but it only has an FPGA ribbon programming cable, not JTAG. The software is still installed on my PC tho, which is handy.

  17. #17
    DF VIP Member raelmadrid's Avatar
    Join Date
    Apr 2002
    Location
    Redmond, WA
    Posts
    4,561
    Thanks
    818
    Thanked:        703
    Karma Level
    536

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Quote Originally Posted by HermaN View Post
    Where did you get the Digilent C-Mod & XILINX JTAG programmer cable? Digilents website sayd they are back ordered until October 1st and I can't find other suppliers who have it. As for the XILINX JTAG cable I have found schematics on how to make on, but no-where that just sells it.

    If I was still at uni I'd be able to get the programming cable no bother! lol Remember coding in Verilog....fucking hated it! Still got my XILINX kit somewhere, but it only has an FPGA ribbon programming cable, not JTAG. The software is still installed on my PC tho, which is handy.
    http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=190560970273&ssPageName=ADME:L:OC:GB:1123#ht_2741wt_905


    http://cgi.ebay.co.uk/ws/eBayISAPI.d...ht_1536wt_1139

    3 Thanks given to raelmadrid

    Armoured Hawk (29th August 2011),  Mario87 (29th August 2011),  Tim.Lad (30th August 2011)  


  18. #18
    DF VIP Member
    Tim.Lad's Avatar
    Join Date
    May 2001
    Location
    The Badlands
    Posts
    2,066
    Thanks
    343
    Thanked:        244
    Karma Level
    403

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Quote Originally Posted by Teajunkie View Post
    Thats both the funniest thing i have read today and the most concerning.
    Not only did you notice that you perv but i actually went to watch the fecking thing again
    Hang on who's the perv here, you looked knowing that theirs a possibility of some male reflectoporn, what concerns me is I spotted it before det !!!

  19. #19
    DF VIP Member
    Tim.Lad's Avatar
    Join Date
    May 2001
    Location
    The Badlands
    Posts
    2,066
    Thanks
    343
    Thanked:        244
    Karma Level
    403

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    Has anyone managed to get a coolrunner board yet ?

  20. #20
    DF VIP Member Flat's Avatar
    Join Date
    Apr 2008
    Location
    /
    Posts
    808
    Thanks
    7
    Thanked:        47
    Karma Level
    228

    Default Re: The Xbox 360 reset glitch hack - New Homebrew Hack!

    not yet.
    only the usb nand flasher arrived

Page 1 of 2 12 LastLast

Similar Threads

  1. anyway to hack Yahoo messenger?
    By biggy7 in forum System Security
    Replies: 3
    Last Post: 5th October 2002, 12:46 AM
  2. a workin hotmail hack?
    By Cam in forum The Dog and Duck
    Replies: 21
    Last Post: 12th September 2002, 01:52 PM
  3. Homebrew Monopoly On its way
    By Fett in forum Old Skool Gaming & Retro
    Replies: 0
    Last Post: 6th September 2002, 08:42 AM
  4. Key combo reset fro Xecutor?
    By Mr Blando in forum Microsoft Consoles
    Replies: 7
    Last Post: 5th September 2002, 03:05 PM
  5. Homebrew With PLCC Chip (PLEASE READ)
    By Hodr2k1 in forum Microsoft Consoles
    Replies: 0
    Last Post: 5th September 2002, 05:17 AM

Social Networking Bookmarks

Posting Permissions

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