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,208
Trophies
1
XP
3,334
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.
  • The Real Jdbye @ The Real Jdbye:
    the vram is one advantage when it comes to AI but ends up being slower even with that and really AI is the only use case that needs more than 12gb vram right now
  • Psionic Roshambo @ Psionic Roshambo:
    Interesting lol
  • Psionic Roshambo @ Psionic Roshambo:
    I think I watched a video where two games at 4K where eating just over 16GB of RAM and it's the one case where the 7900XT and XTX pulled ahead (minus RTX of course)
  • Psionic Roshambo @ Psionic Roshambo:
    So my opinion is that they could age a bit better in the future, and maybe AMD will continue improving them via drivers like they tend to do. No guarantee there but they have done it in the past. Just a feeling I have.
  • The Real Jdbye @ The Real Jdbye:
    cyberpunk at 4k without DLSS/fidelityfx *might* exceed 12gb
    +1
  • The Real Jdbye @ The Real Jdbye:
    but that game barely runs at native 4k
  • Psionic Roshambo @ Psionic Roshambo:
    I think it was some newer games and probably poorly optimized PS4 or PS5 ports
  • The Real Jdbye @ The Real Jdbye:
    they definitely will age better but i feel dlss might outweigh that since it looks about as good as native resolution and much less demanding
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    When I played Cyberpunk on my old 2080 Ti it sucked lol
  • The Real Jdbye @ The Real Jdbye:
    AMD could introduce something comparable to DLSS but nvidia's got a lot more experience with that
  • The Real Jdbye @ The Real Jdbye:
    least amd 7xxx has tensor cores which the previous generations didn't so there is the potential for AI upscaling
  • Psionic Roshambo @ Psionic Roshambo:
    They have FSR or whatever it's called and yeah it's still not great
  • The Real Jdbye @ The Real Jdbye:
    so AMD seem to finally be starting to take AI seriously
  • Psionic Roshambo @ Psionic Roshambo:
    Oh yeah those new 8000 CPUs have AI cores built in that's interesting
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe they plan on offloading to the CPU?
  • Psionic Roshambo @ Psionic Roshambo:
    Would be kinda cool to have the CPU and GPU working in random more
  • Psionic Roshambo @ Psionic Roshambo:
    Tandem even
  • The Real Jdbye @ The Real Jdbye:
    i think i heard of that, it's a good idea, shouldn't need a dedicated GPU just to run a LLM or video upscaling
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
  • The Real Jdbye @ The Real Jdbye:
    LLMs can be run on cpu anyway but it's quite slow
  • BakerMan @ BakerMan:
    Have you ever been beaten by a wet spaghetti noodle by your girlfriend because she has a twin sister, and you got confused and fucked her dad?
  • Psionic Roshambo @ Psionic Roshambo:
    I had a girlfriend who had a twin sister and they would mess with me constantly.... Until one chipped a tooth then finally I could tell them apart.... Lol
  • Psionic Roshambo @ Psionic Roshambo:
    They would have the same hair style the same clothes everything... Really messed with my head lol
  • Psionic Roshambo @ Psionic Roshambo:
    @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to maybe close the gap a bit with Nvidia. Plus it would kinda put Nvidia at a future disadvantage since Nvidia can't make X86/64 CPUs? Intel and AMD licensing issues... I wonder how much that has held back innovation.
    Psionic Roshambo @ Psionic Roshambo: @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to...