Hacking Filesystem access via PegaSwitch?

krion64

Well-Known Member
OP
Newcomer
Joined
Oct 6, 2007
Messages
49
Trophies
1
XP
678
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
36
XP
273
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,210
Trophies
1
XP
3,368
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
36
XP
273
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
522
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
36
XP
273
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
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
  • BakerMan @ BakerMan:
    imagine not having hands, cringe
    +1
  • AncientBoi @ AncientBoi:
    ESPECIALLY for things I do to myself :sad:.. :tpi::rofl2: Or others :shy::blush::evil:
    +1
  • The Real Jdbye @ The Real Jdbye:
    @SylverReZ if you could find a v5 DS ML you would have the best of both worlds since the v5 units had the same backlight brightness levels as the DS Lite unlockable with flashme
  • The Real Jdbye @ The Real Jdbye:
    but that's a long shot
  • The Real Jdbye @ The Real Jdbye:
    i think only the red mario kart edition phat was v5
  • BigOnYa @ BigOnYa:
    A woman with no arms and no legs was sitting on a beach. A man comes along and the woman says, "I've never been hugged before." So the man feels bad and hugs her. She says "Well i've also never been kissed before." So he gives her a kiss on the cheek. She says "Well I've also never been fucked before." So the man picks her up, and throws her in the ocean and says "Now you're fucked."
    +2
  • BakerMan @ BakerMan:
    lmao
  • BakerMan @ BakerMan:
    anyways, we need to re-normalize physical media

    if i didn't want my games to be permanent, then i'd rent them
    +1
  • BigOnYa @ BigOnYa:
    Agreed, that why I try to buy all my games on disc, Xbox anyways. Switch games (which I pirate tbh) don't matter much, I stay offline 24/7 anyways.
  • AncientBoi @ AncientBoi:
    I don't pirate them, I Use Them :mellow:. Like I do @BigOnYa 's couch :tpi::evil::rofl2:
    +1
  • cearp @ cearp:
    @BakerMan - you can still "own" digital media, arguably easier and better than physical since you can make copies and backups, as much as you like.

    The issue is DRM
  • cearp @ cearp:
    You can buy drm free games / music / ebooks, and if you keep backups of your data (like documents and family photos etc), then you shouldn't lose the game. but with a disk, your toddler could put it in the toaster and there goes your $60

    :rofl2:
  • cearp @ cearp:
    still, I agree physical media is nice to have. just pointing out the issue is drm
  • rqkaiju2 @ rqkaiju2:
    i like physical media because it actually feels like you own it. thats why i plan on burning music to cds
  • cearp @ cearp:
    It's nice to not have to have a lot of physical things though, saves space
    +1
  • AncientBoi @ AncientBoi:
    Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D
    AncientBoi @ AncientBoi: Nor clothes 🤮 . Saves on time, soap, water and money having to wash them. :D