Hacking PegaSwitch 3.0, libtransistor, and more

Daeken

Well-Known Member
OP
Newcomer
Joined
Aug 20, 2017
Messages
45
Trophies
0
Age
36
XP
576
Country
United States
ReSwitched is proud to announce that a large portion of our development, previously done behind closed doors, is moving to the open. From the beginning, we have strived to be as transparent as is possible; today’s shift follows through on that commitment.

PegaSwitch 3.0 is an extensive exploitation toolkit for Switch OS 2.0.0-3.0.0. With complete support for IPC, a brand new API, and automatic gadget hunting, it gives us a new window into the Switch platform. https://github.com/reswitched/Pegaswitch

libtransistor is our open-source SDK for the Switch. Designed from the ground-up to make use of the LLVM+Clang stack, we intend for it to be a highly-accessible, community-driven platform for homebrew development. https://github.com/reswitched/libtransistor

Mephisto is a high-performance emulator for non-game Switch binaries. Mephisto features a high degree of determinism, GDB debugging support (even allowing source-level debugging of sysmodules in IDA), and compatibility with a large number of Switch OS features. To clarify again: Mephisto is not for and will never be for games. But it is an invaluable tool for development. https://github.com/reswitched/Mephisto

SwIPC is our project to define a canonical specification for IPC messages. Covering the majority of the system, we are able to automatically generate both client and server code. This means that improvements to SwIPC automatically improve all our other projects.https://github.com/reswitched/SwIPC

The development of all of these projects will now be happening 100% in public, with the entire community encouraged to contribute. While private development has its place, there are a lot of very capable individuals in our community – we want to work with all of you.

To that end, we’re also announcing that we have a mechanism, which we are calling ROhan, for userland arbitrary code execution on Switch OS3.0.0. The development of the requisite exploit is not complete and will now be shifting into public. For the nitty-gritty technical details, please see ROhan.

None of what we’re releasing today is ready for anyone but the most dedicated hackers. However, we know that by shifting development into the public where anyone can contribute, this will be ready for end users far faster than if we were to continue our work in private.

Thank you for your continued support and we can’t wait to work with all of you.
- Team ReSwitched
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,824
Trophies
2
XP
7,887
Country
United Kingdom
@Daeken forgive my noobness but I thought SMHAX (which ROhan is?) gave full access to the switch, not just userland?

Either way, good to see the Switch Scene start to advance :)
 

Daeken

Well-Known Member
OP
Newcomer
Joined
Aug 20, 2017
Messages
45
Trophies
0
Age
36
XP
576
Country
United States
@Daeken forgive my noobness but I thought SMHAX (which ROhan is?) gave full access to the switch, not just userland?

Either way, good to see the Switch Scene start to advance :)

sm:h only allows service access/registration/unregistration. It doesn't allow for any kind of code execution, which ROhan does.
 

ploggy

WAKA! WAKA!
Member
Joined
Aug 29, 2007
Messages
4,824
Trophies
2
XP
7,887
Country
United Kingdom
sm:h only allows service access/registration/unregistration. It doesn't allow for any kind of code execution, which ROhan does.
Ahh ok, Thanks. Exciting times ahead and thank you for making this a public project. :) I'll be keeping an eye on developments for sure. :-)
 
  • Like
Reactions: Masterwin

Kilim

ReiNX Official Dad™
Member
Joined
May 14, 2017
Messages
220
Trophies
0
Age
31
XP
1,630
Country
United States
i noticed that there's really nothing for 1.0.0, which is what my switch is currently on (2.0.0 - 3.0.0 is where the meat of everything is)

would you recommend i cart update to 2.x now? i just want to know now before (or if they ever) decide to reprint carts with higher FWs shipped
 

Daeken

Well-Known Member
OP
Newcomer
Joined
Aug 20, 2017
Messages
45
Trophies
0
Age
36
XP
576
Country
United States
i noticed that there's really nothing for 1.0.0, which is what my switch is currently on (2.0.0 - 3.0.0 is where the meat of everything is)

would you recommend i cart update to 2.x now? i just want to know now before (or if they ever) decide to reprint carts with higher FWs shipped
Get Pokken, upgrade to 3.0. There's really no reason to be on any other fw, IMO.
 

Kilim

ReiNX Official Dad™
Member
Joined
May 14, 2017
Messages
220
Trophies
0
Age
31
XP
1,630
Country
United States
Get Pokken, upgrade to 3.0. There's really no reason to be on any other fw, IMO.
gotcha man, thanks so much for all your work and the fact that you communicate with all of us, it's always super awesome when one of the devs gives us some closure

wish you all the best and most importantly, have fun with the hacks!!
 

catlover007

Developer
Developer
Joined
Oct 23, 2015
Messages
722
Trophies
1
XP
3,958
Country
Germany
I really hope the Switch homebrew development community doesn't break in half(or is already). Beside the reswitched team, there are also some people, who were already active in the 3ds homebrew scene(and to some parts the Wii and DS the, as far as I know), which are related to the devkitPro working on documenting the hardware and building a toolkit.
There already is the switchbrew wiki(http://switchbrew.org/index.php?title=Main_Page) and there the reswitched wiki(https://reswitched.tech/start). There's libtransistor(https://github.com/reswitched/libtransistor) and there's libnx(https://github.com/switchbrew/libnx).
It isn't the end of the world and because everything is made open source, everybody will benefit from each others progress. Nevertheless, this does mean that future homebrew developers will eventually have to decide which toolkit they should use. Homebrew applications, libraries and launchers might be less compatible and there's less(theoretical) man power behind a more complete documentation and toolkit.

But what can I say, I don't know the full backgrounds behind these decisions and it are and will be the decision other people have to make.

Anyway, I hope you continue to make such progress. One question from me, about Switches hardware: Direct screenbuffer access isn't possible like one the 3ds, so to draw something you have to have atleast a basic gpu interface, right?
 

V-Temp

Well-Known Member
Member
Joined
Jul 20, 2017
Messages
1,227
Trophies
0
Age
34
XP
1,342
Country
United States
Excellent. Thanks for the public ( ;) ) release.

I really hope the Switch homebrew development community doesn't break in half(or is already). Beside the reswitched team, there are also some people, who were already active in the 3ds homebrew scene(and to some parts the Wii and DS the, as far as I know), which are related to the devkitPro working on documenting the hardware and building a toolkit.
There already is the switchbrew wiki(http://switchbrew.org/index.php?title=Main_Page) and there the reswitched wiki(https://reswitched.tech/start). There's libtransistor(https://github.com/reswitched/libtransistor) and there's libnx(https://github.com/switchbrew/libnx).
It isn't the end of the world and because everything is made open source, everybody will benefit from each others progress. Nevertheless, this does mean that future homebrew developers will eventually have to decide which toolkit they should use. Homebrew applications, libraries and launchers might be less compatible and there's less(theoretical) man power behind a more complete documentation and toolkit.

But what can I say, I don't know the full backgrounds behind these decisions and it are and will be the decision other people have to make.

Anyway, I hope you continue to make such progress. One question from me, about Switches hardware: Direct screenbuffer access isn't possible like one the 3ds, so to draw something you have to have atleast a basic gpu interface, right?

This was inevitable with such a hot scene. I don't think that will be too big of an issue unless it starts spats, the bigger problem is that there's a hardbreak on interest due to 3.0.1. A lot people have moved on and we're going to be short on newblood from this point forward. Either you already had a compliant switch and are in the scene, or you didn't and aren't.
 
  • Like
Reactions: Masterwin

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    Going with that right now with a dental claim morons put the wrong company name and rejected claims been on hold an hour for the claims department
  • K3Nv2 @ K3Nv2:
    @Sicklyboy, BTW is it better to go usb or bt for these mini Pcs figure you may know since you play with rack systems so much
  • Sicklyboy @ Sicklyboy:
    Counting my blessings that my insurance hasn't caused me really any headache (yet, at least) despite the fact that I've been getting way more appointments and what not recently due
  • Sicklyboy @ Sicklyboy:
    @K3Nv2, what do you mean, what are you trying to do?
  • K3Nv2 @ K3Nv2:
    Just looking at a built in mouse pad keyboard combo
  • K3Nv2 @ K3Nv2:
    I loose the dongle constantly but they may have better connection with usb frequency
  • Sicklyboy @ Sicklyboy:
    Imo Bluetooth is always a option of last resort for me
  • Sicklyboy @ Sicklyboy:
    Except for phones because it tends to be pretty reliable there
  • K3Nv2 @ K3Nv2:
    I got a bad habit of taking out usb transmitter and loosing it because they can't you know print names on the damn things
  • Sicklyboy @ Sicklyboy:
    But any desktop OS, I've never had anything but frustration trying to get Bluetooth devices to work reliably and stable. It might pair and connect once, and then next time I go to use it I have to delete and re-pair it again
  • K3Nv2 @ K3Nv2:
    5.3 has been so good I think 6 is really going to make it stable
  • K3Nv2 @ K3Nv2:
    I remember how shit 3 was
  • Sicklyboy @ Sicklyboy:
    Ptouch labeler aren't terribly expensive, label shit yourself fam. This is the one I own and there are cheaper ones too https://www.amazon.com/Brother-P-Touch-PTH110BP-Portable-included/dp/B09QXYND6S
  • Sicklyboy @ Sicklyboy:
    Solves part of the problem, mixing up which dongle is which. Then you just have to not lose them lol
  • K3Nv2 @ K3Nv2:
    Double D would be proud
    +1
  • Sicklyboy @ Sicklyboy:
    Even my Xbox One controller I have it paired to my desktop over Bluetooth, it USUALLY works but sometimes it refuses to connect and I have to delete and re-pair it. Maddening
  • K3Nv2 @ K3Nv2:
    Gigabytes built in mobo bt/wifi pairs pretty decent
  • Sicklyboy @ Sicklyboy:
    That's what I'm using :(
  • K3Nv2 @ K3Nv2:
    Ran a driver update in device manager?
  • Sicklyboy @ Sicklyboy:
    Not recently but I think it's less a driver issue and more just Windows having a garbage Bluetooth stack
  • K3Nv2 @ K3Nv2:
    Could be I was having issues when I first upgraded it and didn't realiser gigabyte has specific driver revisions which is stupid
  • K3Nv2 @ K3Nv2:
    Which is married to the boards revision
  • Xdqwerty @ Xdqwerty:
    Made my first review
  • RedColoredStars @ RedColoredStars:
    I've gone years without ever removing a logitech usb transmitter. Across several replacements of keyboards and mice. It just stays put.
  • Sicklyboy @ Sicklyboy:
    tldr usb > bluetooth imo
    Sicklyboy @ Sicklyboy: tldr usb > bluetooth imo