Hacking [Info] Xbox One - Getting somewhat started

  • Thread starter Deleted User
  • Start date
  • Views 133,238
  • Replies 87
  • Likes 12
D

Deleted User

Guest
OP
NOTE: This is not an exploit or breakthrough of any sort. It's simply taking advantage of provided debugging features in developer mode! This is for any one who may be curious and want to reverse engineer the Xbox One.

This is also mainly provided for anyone who wants to just have a go at reversing the system. There's a lot to utilize with the public features anyway.

Prerequisites:
- Must be in developer-mode (obviously)
- Have some form of SSH/telnet client. (PuTTy, etc)
- At least have Visual Studio 2015 or 2017

To get started without putting up with developing UWP applications we can instead utilize the open SSH connection provided by the console. This is only available in developer mode, just in case you get any ideas.

If you're using Windows and will be using standard command prompt for telnet then make sure you enable it first!
1. Control Panel -> Programs -> Turn Windows features on or off"
2. Tick "Telnet client"
3. Done

First open up whatever client you have for SSH, in this instance PuTTy, and connect using your console IP and default port.
There'll be a pop-up. Just hit yes.

Now it will ask for login details. Make sure you have Dev Home opened and hit "Show Visual Studio Pin". Keep note of this pin but also remember it will change after a small period of time!

Username: DevToolsUser
Password: The Visual Studio pin provided in Dev Home.

If all goes successfully then you can either stick with it or intialise telnet. Run the following command in order to do so (ignore quotes):
"devtoolslauncher LaunchForProfiling telnetd "cmd.exe 24""
Now you can connect over!
Open command prompt on Windows and run: telnet [consoleip] 24

(Example: telnet 192.168.1.5 24)

The telnet session will be running under the VSProfilingAccount privileges which is the same as what the VS debugger runs under when building UWP apps.

Keep in mind that there is not too much of a difference at this stage. It just allows a tiny bit more flexability.

Basic file system exploration:
You can do this by accessing the Xbox Device Portal on your computer and going to File Explorer tab. There will
be an option near the top right that is called Browse. Using this will show you credentials that can be used
to access the developer scratch. We can use the developer scratch to store our junctions to navigate throughout the mounted drives.

Using telnet or SSH, go to D:\DevelopmentFiles.
- >D:
- >cd DevelopmentFiles
- >mkdir Links

And run the following:
- >mklink /J "Links\System" C:\

If the result is successful then double check:
- >cd links\system
- >dir

If it gives you a directory listing then there you go!

You can get easier access by opening File Explorer on Windows and typing the following into the file path bar: \\[consoleip

It will prompt for login details. If you open the device portal and go to File Explorer tab then on right side hit browse; you will be given details to use. Once in then you can access most but not all volumes.

(Refer to "Mount points" to find out more)

So what now? Well, I'm going to provide a small "template" which you can use in order to write a standard "Win32" application. The only difference is that it will run on the Xbox One.

(Requires Windows 10 SDK compatible with Xbox One and probably Visual Studio 2017, at least 2015.)
XRF: Attached below.
Place anywhere on the console and run "xrf cinfo" for a basic spit of console info.

Additional information:
Basic introduction:
The Xbox One currently runs 3 separate operating systems with each prioritised with their own purpose.

These are known as:
• Host OS
• System OS
• Game OS

System and Game OS both reside in their own partition:
• Shared Resource Access - Runs apps and renders the UI experience.
• Exclusive Resource Access - Runs games and has more priority with resources.

These operations are stored in an Xbox Virtual Disk (XVD) with a small bootloader, currently assumed based on previous data dumps, that contains the kernel, HAL and other important system files. These get stored in the
User Data section of each.

• host.xvd | ExtHost.xvd
• System.xvd
• era.xvd

System and Host are stored in both the flash and on the console hard drive. The Game OS XVD is stored with each
packaged game that is released for the Xbox One. Although this requires another look; it appears that when a user
launches a game, System then initiates a call that mounts the package to the ERA partition which then boots into the Game OS before finally mounting and starting the game.
Mount points:
Within the SRA Partition, the following are mounted to each drive letter:
\\.\C:\ -> System.xvd
\\.\D:\ -> USB (typically for retail) (Development scratch for dev-mode)
\\.\J:\ -> SystemTools.xvd (dev-mode only)
\\.\L:\ -> en-%s (languages)
\\.\M:\ -> SystemMisc.xvd
\\.\P:\ -> Page file
\\.\S:\ -> Settings.xvd | Settings-devkit.xvd
\\.\T:\ -> Temp.xvd (or whatever)
\\.\U:\ -> user.xvd / user-devkit.xvd
\\.\X:\ -> SystemAux.xvd
\\.\Y:\ -> SystemAuxF.xvd
 

Attachments

  • XRF-Templ.zip
    269.2 KB · Views: 1,223
Last edited by ,

kingtut

Well-Known Member
Member
Joined
May 3, 2017
Messages
1,067
Trophies
0
Age
29
XP
1,354
Country
United States
Wait so if I understand you correctly, you can use this template to run win32 apps on xbox one? Can I use this to try and run something like dolphin on xbox one. if so, can you let me know where to start.
 

dominater01

Well-Known Member
Member
Joined
Mar 13, 2009
Messages
1,278
Trophies
1
Age
33
XP
2,897
Country
United States
Wait so if I understand you correctly, you can use this template to run win32 apps on xbox one? Can I use this to try and run something like dolphin on xbox one. if so, can you let me know where to start.
Wait so if I understand you correctly, you can use this template to run win32 apps on xbox one? Can I use this to try and run something like dolphin on xbox one. if so, can you let me know where to start.
hey kingtut welcome back did you read my message i sent you? i was just curious if you could compile ppsspp again
 
  • Like
Reactions: kingtut
D

Deleted User

Guest
OP
Wait so if I understand you correctly, you can use this template to run win32 apps on xbox one? Can I use this to try and run something like dolphin on xbox one. if so, can you let me know where to start.
The template can run console win32 apps, yes. There may not be a way to get any visuals unless you hook and alter the way they handle the window manager. I can't say yes or no since I never looked into the way that worked specifically.
 
  • Like
Reactions: jakibaki

kingtut

Well-Known Member
Member
Joined
May 3, 2017
Messages
1,067
Trophies
0
Age
29
XP
1,354
Country
United States
hey kingtut welcome back did you read my message i sent you? i was just curious if you could compile ppsspp again
Sorry, I missed it. yeah, I can try.

--------------------- MERGED ---------------------------

The template can run console win32 apps, yes. There may not be a way to get any visuals unless you hook and alter the way they handle the window manager. I can't say yes or no since I never looked into the way that worked specifically.

Huh, so what needs to change in the window manager for visuals?
 
D

Deleted User

Guest
OP
Sorry, I missed it. yeah, I can try.

--------------------- MERGED ---------------------------



Huh, so what needs to change in the window manager for visuals?
Probably the entire thing. Since the OS is a branch from Windows Core / OneCore, I don't think it has anything left for it fully work.
 

milkybar1983

Member
Newcomer
Joined
Nov 11, 2012
Messages
13
Trophies
1
Age
40
XP
311
Country
devtoolsuser@XBOXONE D:\DevelopmentFiles>xrf cinfo
[XRF] Hello!
Console Revision: Unknown
Console Flavour: DEVKIT SRA

xbox one X scorpio edition needs adding to the console revisions @XVMM
 
D

Deleted User

Guest
OP
devtoolsuser@XBOXONE D:\DevelopmentFiles>xrf cinfo
[XRF] Hello!
Console Revision: Unknown
Console Flavour: DEVKIT SRA

xbox one X scorpio edition needs adding to the console revisions @XVMM
Was added on the github. I can't link since new here but search for XRF on Github and you'll find it.
 
  • Like
Reactions: milkybar1983

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,834
Trophies
2
XP
7,911
Country
United Kingdom
Huh, GliGli is involved with this too? I saw on another site that he was one of the people working on this? If so thats good.. He was one of the guys who first hacked the 360 :)
 
  • Like
Reactions: wiired24

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,834
Trophies
2
XP
7,911
Country
United Kingdom
I could be totally wrong but my line of thinking is maybe if win32 can be loaded perhaps this could lead to running some arbitrary exploit code that could allow for serious homebrew :)
That would be great. We'll just have to play the waiting game now. :)
 

Pickle_Rick

I'm a pickle Morty!
Member
Joined
Aug 28, 2017
Messages
694
Trophies
0
Age
27
Location
Garage
XP
1,469
Country
United States
I could be totally wrong but my line of thinking is maybe if win32 can be loaded perhaps this could lead to running some arbitrary exploit code that could allow for serious homebrew :)
Yeah, like I said in your thread, it might be possible to pwn dev mode with a Windows 10 exploit.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I tell people I wrestled a 5 foot alligator and they get this smile like this guy is full of shit lol the reality is I am sad it got away.... I wanted a pet alligator lol
  • BigOnYa @ BigOnYa:
    You live in Florida, so I believe it, you guys are crazy.
  • Psionic Roshambo @ Psionic Roshambo:
    At the time I would have probably fed it people lol
  • Psionic Roshambo @ Psionic Roshambo:
    Seriously cocaine not even once lol
  • BigOnYa @ BigOnYa:
    Not even once, but 100's of times
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    My girlfriend at the time, she had me stay up with her all night because some how the crazy bitch had spent like 12 hours snorting 2 8 balls, didn't use any water (gotta clean your nose) so she had so much crusted in her nose I was sure she was gonna blow up her heart. I mean this was the stuff right off the boat so absolutely pure. ugghh so annoying
  • Psionic Roshambo @ Psionic Roshambo:
    Also doing like 320 dollars worth of coke in half a day lol damn it
  • Psionic Roshambo @ Psionic Roshambo:
    hmmm 360 even lol
  • Psionic Roshambo @ Psionic Roshambo:
    Well I was getting a discount so 320 is probably right
  • BigOnYa @ BigOnYa:
    That is cheap, I used to pay $100 for a tine.
  • Psionic Roshambo @ Psionic Roshambo:
    Tine? One gram?
  • BigOnYa @ BigOnYa:
    Sixteenth
  • Psionic Roshambo @ Psionic Roshambo:
    Also it was literally out of a kilo when I got it off the boat so absolutely pure
  • Psionic Roshambo @ Psionic Roshambo:
    Holy shiz that's a lot
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I was getting 3.5 Grams for 320 could have stepped on it and doubled my money easy lol
    +1
  • BigOnYa @ BigOnYa:
    I'd be afraid to it nowdays, my heart would explode prob. I just stick beers n buds nowdays.
  • Psionic Roshambo @ Psionic Roshambo:
    I would get to drive from tarpon springs to like Miami a thousand bucks lol do that twice a week and back in 92 that was good money
  • Xdqwerty @ Xdqwerty:
    @BigOnYa,
    @Psionic Roshambo what are you guys talking about?
  • Psionic Roshambo @ Psionic Roshambo:
    Blew it on women and muscle cars lol
    +1
  • BigOnYa @ BigOnYa:
    @Xdqwerty Hamster food, its pricey nowadays to keep PCs running.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    I don't do anything except cigarettes and gotta stop eventually lol
    +1
  • BigOnYa @ BigOnYa:
    I'd do shrooms again if could find, and I was outside camping/fishing, and had a cooler full of beer.
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I wouldn't mind some LSD, laughing until my face hurt sounds fun lol
    +1
    Psionic Roshambo @ Psionic Roshambo: I wouldn't mind some LSD, laughing until my face hurt sounds fun lol +1