Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
Agile Vector
May 21, 2007

scrum bored



Sagebrush posted:

well yeah, no way a windows xp computer could handle all those screens. there's probably at least like eight separate computers there

seems like a good km toggle setup but i respect the ergo setup and the

FMguru posted:

as is the cheapest possible metal folding chair

is a real head scratcher especially because i missed it before!

Adbot
ADBOT LOVES YOU

Agile Vector
May 21, 2007

scrum bored



i have a similar desk lamp but with three pillars and its cool to have an old style proper lamp

Chris Knight
Jun 5, 2002

me @ ur posts


Fun Shoe

echinopsis posted:

I hate the new paradigm where you select the folder to save from and THEN a save file dialogue box comes up (where you can change the folder)

yeah it's loving bullshit

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.
xbox S X: memory cards are back in a big way, for some reason


Suspicious Dish
Sep 24, 2011

2020 is the year of linux on the desktop, bro
Fun Shoe
the lovely print job on that memory card makes it say sexgate

theadder
Dec 30, 2011


i wish

Jenny Agutter
Mar 18, 2009


dang, going back to the days of the insane markup on xbox360 hard drives. feels nostalgic

pram
Jun 10, 2001
so its literally a regular x86 pc and yet you cant run normal applications on it

cool

Cybernetic Vermin
Apr 18, 2005

pram posted:

so its literally a regular x86 pc and yet you cant run normal applications on it

cool

three out of four xboxs has been pc's, and none of them has run photoshop.

Cybernetic Vermin fucked around with this message at 08:58 on Mar 17, 2020

Last Chance
Dec 31, 2004

xbox 360 was a mac clone lol

pram
Jun 10, 2001

Cybernetic Vermin posted:

three out of four xboxs has been pc's, and none of them has run photoshop.

edited and it’s still loving wrong

Lambert
Apr 15, 2018

by Fluffdaddy
Fallen Rib

Jenny Agutter posted:

dang, going back to the days of the insane markup on xbox360 hard drives. feels nostalgic

You could use your own drive prepared with hddhackr, the shells were available for cheap on Ebay. After that, you had to copy over the Xbox emulation partition if you wanted Ogxbox emulation to work.

Plenty of vendors also sold drives that came pre-prepared, but with the Xbox emulation partition missing (in order to avoid lawsuits, I assume).

Shaggar
Apr 26, 2006

pram posted:

so its literally a regular x86 pc and yet you cant run normal applications on it

cool

Ya it's like a mac

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles


lol I am sure that exposing the PCI NVMe interface to the user won't ensure more rapid jailbreaking or anything

Cybernetic Vermin
Apr 18, 2005

pram posted:

edited and it’s still loving wrong

forgot about the 360 since it was uncharacteristic in how successful it was. the og, the one and whatever the new one if called are all within a hair of being a pc though.

The_Franz
Aug 8, 2003

BangersInMyKnickers posted:

lol I am sure that exposing the PCI NVMe interface to the user won't ensure more rapid jailbreaking or anything

does anyone even care about jailbreaking consoles anymore? it has no real purpose anymore outside of piracy since there are hundreds of living room media players and a raspberry pi will let you play all the old games you want without risk of your console being banned from going online

a hacked og xbox was the best living room appliance of the 00s though

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

The_Franz posted:

does anyone even care about jailbreaking consoles anymore? it has no real purpose anymore outside of piracy since there are hundreds of living room media players and a raspberry pi will let you play all the old games you want without risk of your console being banned from going online

a hacked og xbox was the best living room appliance of the 00s though

I suspect it will be big for loading in undetectable cheats on consoles, its a big enough business on PCs these days

Best Bi Geek Squid
Mar 25, 2016
bold of m$ to make another console even after steammachines made them obsolete

akadajet
Sep 14, 2003

Shaggar posted:

Ya it's like a mac

classic

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.

BangersInMyKnickers posted:

lol I am sure that exposing the PCI NVMe interface to the user won't ensure more rapid jailbreaking or anything

i'm pretty excited to see the hacks around this, because i'd bet they have some hilariously complex security mechanism that gets defeated in months

Cybernetic Vermin
Apr 18, 2005

presumably leverages virtualization isolation bits in the amd soc, so depends on how competent amd is on that stuff. i mean, at least its not intel.

if microsoft can keep it at a level where it is some process where you must not connect it to the internet and then downgrade firmware with some procedure i suspect they're fine with it breaking, the kind of people who are willing to jump through hoops are rare enough to not worry about.

Cybernetic Vermin fucked around with this message at 16:19 on Mar 17, 2020

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.

Cybernetic Vermin posted:

i mean, at least its not intel.

i had forgotten

pram
Jun 10, 2001

The_Franz posted:

does anyone even care about jailbreaking consoles anymore? it has no real purpose anymore outside of piracy since there are hundreds of living room media players and a raspberry pi will let you play all the old games you want without risk of your console being banned from going online

a hacked og xbox was the best living room appliance of the 00s though

this guy obv


Lambert posted:

You could use your own drive prepared with hddhackr, the shells were available for cheap on Ebay. After that, you had to copy over the Xbox emulation partition if you wanted Ogxbox emulation to work.

Plenty of vendors also sold drives that came pre-prepared, but with the Xbox emulation partition missing (in order to avoid lawsuits, I assume).

Lambert
Apr 15, 2018

by Fluffdaddy
Fallen Rib
I mean, I'm not paying double for the same hard drive just because it comes in MS packaging.

Sagebrush
Feb 26, 2012

BangersInMyKnickers posted:

I suspect it will be big for loading in undetectable cheats on consoles, its a big enough business on PCs these days

the biggest cheat you could possibly use on a competitive xbox game would be to plug in a mouse and keyboard

Shaggar
Apr 26, 2006

Sagebrush posted:

the biggest cheat you could possibly use on a competitive xbox game would be to plug in a mouse and keyboard

they added cross platform play to one of the new cods and gave the console players aimbot to make up for the controller disadvantage

Chris Knight
Jun 5, 2002

me @ ur posts


Fun Shoe

Shaggar posted:

Ya it's like a mac

heh

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.

Shaggar posted:

Ya it's like a mac

no, they make games for this

BangersInMyKnickers
Nov 3, 2004

I have a thing for courageous dongles

Shaggar posted:

they added cross platform play to one of the new cods and gave the console players aimbot to make up for the controller disadvantage

lol

theadder
Dec 30, 2011


pram posted:

this guy obv

lol

Beamed
Nov 26, 2010

Then you have a responsibility that no man has ever faced. You have your fear which could become reality, and you have Godzilla, which is reality.


Shaggar posted:

Ya it's like a mac

lol

Chumbawumba4ever97
Dec 31, 2000

by Fluffdaddy

The_Franz posted:

does anyone even care about jailbreaking consoles anymore? it has no real purpose anymore outside of piracy since there are hundreds of living room media players and a raspberry pi will let you play all the old games you want without risk of your console being banned from going online

a hacked og xbox was the best living room appliance of the 00s though

do you really have to ponder if people care about the ability to play free games on a console?

Notorious b.s.d.
Jan 25, 2003

by Reene

BangersInMyKnickers posted:

lol I am sure that exposing the PCI NVMe interface to the user won't ensure more rapid jailbreaking or anything

it is almost certainly equipped with an iommu, a special mmu for pcie devices. many modern PCs are

with an iommu the device can only make dma writes/reads to and from the areas permitted by by the kernel

The_Franz
Aug 8, 2003

Chumbawumba4ever97 posted:

do you really have to ponder if people care about the ability to play free games on a console?

when the price is not being able to go online and having to janitor it with hacked updates that have a non-zero chance of bricking it to run newer titles, it's not so clear cut. we're long past the days of hacked once, hacked forever

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.

The_Franz posted:

when the price is not being able to go online and having to janitor it with hacked updates that have a non-zero chance of bricking it to run newer titles, it's not so clear cut. we're long past the days of hacked once, hacked forever

i don't think that's really been a thing since the ps2 era.

Chumbawumba4ever97
Dec 31, 2000

by Fluffdaddy

The_Franz posted:

when the price is not being able to go online and having to janitor it with hacked updates that have a non-zero chance of bricking it to run newer titles, it's not so clear cut. we're long past the days of hacked once, hacked forever

agreed, but people are relentless when it comes to trying to pirate console games. the amount of inventions and innovations and economies it spurs is incredible. Remember XBox 360 optical disk emulators when it looked like the system couldn't be hacked?

lol i had a 2.5" hard drive in the disc slot of my Wii because it was the only way to run gamecube games at the time (hackers said it would never be possible to run gamecube games through the USB port because Gamecube mode turns off the USB ports, and hell, even that got figured out)

Notorious b.s.d.
Jan 25, 2003

by Reene

Chumbawumba4ever97 posted:

agreed, but people are relentless when it comes to trying to pirate console games. the amount of inventions and innovations and economies it spurs is incredible. Remember XBox 360 optical disk emulators when it looked like the system couldn't be hacked?

as far as i know the x360 was never really "hacked," in that no one ever penetrated the security mechanisms

the "hacks" that existed used either poisoned drive firmware, or a jtag port that was mistakenly left enabled on the motherboard.

(that is to say, the security measures worked but incompetence in other areas allowed people to do weird stuff anyway)

Chumbawumba4ever97 posted:

lol i had a 2.5" hard drive in the disc slot of my Wii because it was the only way to run gamecube games at the time (hackers said it would never be possible to run gamecube games through the USB port because Gamecube mode turns off the USB ports, and hell, even that got figured out)

nintendo didn't hire a security team until literally a year ago

the gc and the wii and the switch all got pwnt almost immediately

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.

quote:

***************************************
* The Xbox 360 reset glitch hack *
***************************************

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.

Notorious b.s.d.
Jan 25, 2003

by Reene

well this is super cool and also goes in through the front door

gently caress you, microsoft security

Adbot
ADBOT LOVES YOU

infernal machines
Oct 11, 2012

we monitor many frequencies. we listen always. came a voice, out of the babel of tongues, speaking to us. it played us a mighty dub.

Notorious b.s.d. posted:

well this is super cool and also goes in through the front door

gently caress you, microsoft security

tbf, it took six years to come up with

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply