Hacking Filesystem access via PegaSwitch?

krion64

Well-Known Member
OP
Newcomer
Joined
Oct 6, 2007
Messages
49
Trophies
1
XP
679
Country
United States
Is it possible to access the Switch's file system via PegaSwitch command line or would a file browsing program have to be written first? I ask because the place where saves are stored on the Switch is documented but I don't know how to read from it or write to it. Anybody have any ideas?
 

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
37
XP
283
Country
United States
I take it I asked a stupid question. Regardless that is no reason to be rude.

Good on you dude, agreed 100%

Take a look at the some of the example javascript files, you will have to get used to/understand return based programming, but the SetRtc example is a good start as it is documented pretty well.

I was looking at the dumpArchives.js Friday and tried creating a modified version of it in order to pull the applets, but unfortunately it isn't as simple as changing the title ID's :)

The Title ID's for applets are in the 1000's, which throws an error if you incorporate titles that are NOT 8XX based...

I also tried doing something like IDirectory.DirList(), but that isn't a valid command it seems... maybe I am calling it wrong, how do you use the methods in those files? Anybody have any ideas? I tried looking into other scripts but they don't have any good indications.
 
Last edited by SocraticBliss,

RednaxelaNnamtra

Well-Known Member
Member
Joined
Dec 8, 2011
Messages
1,256
Trophies
2
XP
3,754
Country
Germany
If I understod it correctly it should be possible to access many files using smhax.
I tried getting a handle for the service which manages the fs permissions(fsp-pr) and use it to give the browser applet full file system access, but after sending the command, one part of the system always seams be crashing.
I think it didn't work because of wrong params, but I'm not completely sure.
 
  • Like
Reactions: peteruk

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
37
XP
283
Country
United States
If I understod it correctly it should be possible to access many files using smhax.
I tried getting a handle for the service which manages the fs permissions(fsp-pr) and use it to give the browser applet full file system access, but after sending the command, one part of the system always seams be crashing.
I think it didn't work because of wrong params, but I'm not completely sure.

That's a good point, I haven't tried using any other service besides the fsp-srv, maybe I could try messing with the permissions for those system applets... I tried to list the directories but I don't think I have the correct command syntax, do you (or anyone else) know how to use the IFile/IFileSystem/IDirectory methods?

Especially the GetDir method...
 

yahoo

G͝B͢A͜t͞em҉p̡ R̨e͢g̷ul̨aŗ
Member
Joined
Aug 4, 2014
Messages
345
Trophies
0
XP
532
Country
United States
The ReSwitched team that built pegaswitch have privately accessed the file system and can transfer saves from one console to another. This ability is not public yet, as it relies on more exploits beyond sm:h that they don't want Nintendo to be aware of yet.
 
  • Like
Reactions: lordelan
D

Deleted User

Guest
That's a good point, I haven't tried using any other service besides the fsp-srv, maybe I could try messing with the permissions for those system applets... I tried to list the directories but I don't think I have the correct command syntax, do you (or anyone else) know how to use the IFile/IFileSystem/IDirectory methods?

Especially the GetDir method...
A prefix of "I" before any object or class denotes that it's an interface, which means you have to create a class that defines its implementation yourself (or wait until an implementation is available)
 
Last edited by ,
  • Like
Reactions: SocraticBliss

SocraticBliss

Well-Known Member
Member
Joined
Jun 3, 2017
Messages
130
Trophies
0
Age
37
XP
283
Country
United States
A prefix of "I" before any object or class denotes that it's an interface, which means you have to create a class that defines its implementation yourself (or wait until an implementation is available)

Thanks for that, I didn't want to make any assumptions about the implementation, this makes a lot more sense now.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    It's been discontinued but you can find em second hand. It's the FiiO model K1.
  • Sicklyboy @ Sicklyboy:
    @SylverReZ nice. I've been using my BTR5 pretty much daily, got it in late 2020. Mostly use it as a desktop DAC though and the battery has already swelled up in it once, so I had to replace it. Some day I gotta grab a proper desktop DAC that doesn't have a battery lol
    +1
  • SylverReZ @ SylverReZ:
    @K3Nv3, Yeah, cheap and nasty earbuds don't deliver the best mids, they end up sounding really muddy.
  • SylverReZ @ SylverReZ:
    @Sicklyboy, I got mine around 2022 (iirc) and it was brand new, never opened, and for £15 too compared to paying nearly £30 elsewhere.
  • SylverReZ @ SylverReZ:
    @Sicklyboy, That sucks when the battery already begins to swell up. You considering on a desktop replacement, and if so, which one?
  • Sicklyboy @ Sicklyboy:
    @SylverReZ damn 15 is shockingly cheap for that. Even 30 feels like a good price just given what a bunch of other FiiO stuff costs. Granted, not familiar with what those were originally selling for, so who knows lol
    +1
  • Sicklyboy @ Sicklyboy:
    As far as a replacement for my BTR5, I don't really have my eyes set on anything specific yet but it'll likely be from either Fiio or Schiit Audio.
    +1
  • K3Nv3 @ K3Nv3:
    Better than tree fiddy
  • SylverReZ @ SylverReZ:
    @Sicklyboy, Originally when it came out, they sold for around $40 USD according to FiiO's news bulletin. https://www.fiio.com/newsinfo/54677.html
    +1
  • SylverReZ @ SylverReZ:
    @Sicklyboy, I would prefer FiiO as the better brand for a USB DAC.
    +1
  • K3Nv3 @ K3Nv3:
    I feel like headphones reached a peak even ones from ten years ago sound better than new ones
  • Sicklyboy @ Sicklyboy:
    @K3Nv3, all depends how much money you wanna spend. I had skullcandy headphones and shit way back when but I never liked anything as much as the headphones (and earbuds) I use nowadays
    +1
  • Sicklyboy @ Sicklyboy:
    @SylverReZ yeah fwiw I've been quite happy with my FiiO BTR5 so I don't have any specific reason to not a FiiO again. Just gotta see what's available and how much I'm trying to spend lol
    +1
  • realtimesave @ realtimesave:
    O GOD I see @BigOnYa
  • Jayro @ Jayro:
    I have the FiiO X1-ii, and love what it does, but the battery life is kinda ass and the sluggish, unresponsive menu makes me regret my purchase a little.
  • NinStar @ NinStar:
    has anyone here played botw randomizer for switch?
  • NinStar @ NinStar:
    (not the wii u version, specifically the switch version)
  • SylverReZ @ SylverReZ:
    Frankly not. That's like a 'cheat engine' for BoTW, right?
  • Skelletonike @ Skelletonike:
    good morrow
  • Skelletonike @ Skelletonike:
    I love Gundam but seed is not among my favourite series. Great gundams and soundtrack, but the characters... Ugh
  • Skelletonike @ Skelletonike:
    Still better than the latest trash like Witch of Mercury
  • Skelletonike @ Skelletonike:
    Damn, my play asia order will take a while.
    Skelletonike @ Skelletonike: