Giter Site home page Giter Site logo

noahc3 / pegascape Goto Github PK

View Code? Open in Web Editor NEW
67.0 8.0 28.0 7.53 MB

A user-friendly public frontend for common PegaSwitch scripts including Nereba, Caffeine, HBL and more.

Home Page: https://pegascape.sdsetup.com

License: ISC License

Emacs Lisp 0.06% JavaScript 98.62% HTML 1.29% Batchfile 0.04%
pegaswitch cfw entrypoint custom-firmware caffeine homebrew switch-booting

pegascape's Introduction

https://pegascape.sdsetup.com/
for user-friendly details

What is PegaScape?

PegaScape is a user-friendly public frontend for common PegaSwitch scripts including Nereba, Caffeine, HBL and more.

What can PegaScape be used for?

With PegaScape, you can easily reboot from a stock Switch console running firmwares between 1.0.0-3.0.0 and 4.0.1-4.1.0 into full custom firmware and emuMMC. You can also install the Fake News entrypoint to make accessing PegaScape easier, and access the Homebrew Menu without running full custom firmware if you prefer.

This means an easy-to-use entrypoint to fully featured CFW on 4.1.0 IPATCHED units.

Which scripts are supported on what firmware versions?

Fake News Installer Reboot to RCM Nereba HBL Caffeine
1.0.0
2.0.0-3.0.0
4.0.0 ✗†
4.0.1-4.1.0
Other

† nvcore offsets missing for 4.0.0

Demo

1.0.0 Switch booting into emuMMC 8.0.1

4.1.0 Switch booting into Atmosphere CFW

Usage

Follow https://switch.homebrew.guide for an easy to follow noob guide for going from stock 1.0.0 - 3.0.0 and 4.0.1 - 4.1.0 with PegaScape. Otherwise, if you want to jump in...

Public DNS IP Addresses

We provide a public DNS IP for each common browser entrypoint present on the Switch:

Webapplet (Fake News, 1.0 JP Puyo Puyo Tetris): 163.172.181.170

Wifi Authentication Prompt: 51.15.245.41

Note that these public DNS servers run the 90DNS configuration. This means that the connection test will pass (for the Webapplet server) and you can use homebrew with internet functionality, but you will not be able to connect to Nintendo services.

You can install Fake News with Fake News Injector

Self Hosting

You can also self-host PegaScape yourself:

  1. Install NodeJS and NPM.
  2. Clone the repo.
  3. Open cmd/terminal in the cloned directory.
  4. Run npm install.
  5. Run [sudo] node start.js [--webapplet] [--ip <html_server_ip_override>] [--host <dns_server_ip_override] [--disable-dns].
    • --webapplet: To enable fake internet, allowing the Switch to pass the connection test and load things like Fake News.
    • --ip <html_server_ip_override> if the detected IP address for the HTML server is not preffered.
    • --host <dns_server_ip_override if the detected IP address for the DNS server is not preffered.
    • --disable-dns if you want to disable the internal DNS server and use something else (dnsmasq, bind, etc).
    • Root privileges are usually required on Linux to bind to port 80 and 53.

Changes from PegaSwitch

  • Logging is disabled by default (enable with "debug": true).
  • Homepage is used to select exploits. Can be configured in config.json, and are automatically appended to index.html based on the connecting clients firmware version and the firmware requirements specified for each exploit.
  • All device switching logic is removed/disabled.
  • Websockets are never stored anywhere and are kicked off after the initial connection process completes.
  • minmain.js is not run until an exploit is picked, rather than immediately when the page loads.
  • You cannot interface with Switches through the CLI.
  • Gadgetcache writes are disabled by default (enable with "debug": true).
  • Endpoints not fit for a public server were removed.
  • Some functionality which could be exploited on the server was removed or tweaked.
  • Probably other stuff.

Liability

Nobody is responsible if you lose your data, brick your Switch, get banned, drop your Switch into the toilet, have your Switch stolen by ninjas, etc, except yourself. By using PegaScape or any form of homebrew in any capacity you understand the risks involved with running unsigned code on your Switch.

Credits

  • ReSwitched, hexkyz and other contributors for PegaSwitch.
  • Everyone who worked on smhax, nvhax, nspwn, etc.
  • liuervehc for Caffeine, bringing the first CFW to IPATCHED Switches, and dealing with my random support DMs.
  • stuck_pixel for Nereba and reboot_to_rcm.
  • Switchbrew for nx-hbloader.
  • bernv3 for the sexy background art.

pegascape's People

Contributors

3daniel avatar annsanns avatar azure-agst avatar crowell avatar d3m3vilurr avatar daeken avatar dazjo avatar dependabot[bot] avatar dwood15 avatar govanify avatar hexkyz avatar hikari-chin avatar inarius avatar jam1garner avatar kgsws avatar maschell avatar misson20000 avatar n4n0byte avatar noahc3 avatar normmatt avatar ns-mkusper avatar pixel-stuck avatar qyriad avatar rajkosto avatar roblabla avatar sciresm avatar someoneweird avatar tuxsh avatar wchill avatar yupferris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pegascape's Issues

No-node version?

Do you know if anybody's made a version that runs without node.js? Running on any http server would make it easier to self-host.

Specifically, I'm looking to use caffeine on a local temporary wlan with no internet access.

I checked all the forks and googled, but didn't find anything.

Support for ESP8266 module?

Looks like someone has done it, but with a rather outdated version that doesn't contain caffeine or 4.1.0 support.

If you guys could produce an ESP8266 flashable binary, for self-hosting the exploit, that would be swell. It would be more of a black-box solution (than let's say hosting it on a Raspberry Pi, where more things can go wrong from an abrupt loss of power) which can be utilized by less-experienced users, after it's been properly set up.

Thanks!

How to delete fake news?

Hi,

How can I remove fake news after successfully setup emunand?
We should only need fake news in stock sysnand.

Thanks

I can't reboot into CFW from caffeine exploit via PegaScape on 4.0.0 in last two days with ~60 tries so far, even though I had it working for ~2 years before

I started to have following problem: after running pegascape via reswitched news applet and tapping that text control and waiting 5 full seconds to power tap instead of the boot I just get screen turned off just like normal power tap behaviour is. While I understand that this is normal and had problems like this before, it always went away after few tries. I am right now on about 60 tries on 2 different sd cards:

  1. 64 gb FAT32, EMUmmc RAW with 12 v. firmware on EMUmmc, hekate+atmo package from sdsetup site that was working before with no problem for two weeks
  2. new 400gb FAT32 that has todays setup from sdsetup site and later changed to deepsea package.

On both I get same things. my screen goes black, I can normally unblock my screen and I have to close my switch by holding power button for ~15secs. rinse and repeat.

the thing I did that directly precedes my problems and looks like a cause of it was me trying to run faulty backup. What I did was that on my new sd card (I put new atmo and hekate combo. so far good. did emummc (2x29gb - the most I could allocate and created RAW 1 partition). after that emuMMC properly booted into copy of my SYS one. then I tried to use 'backup' I did from my failing old card, which wasnt created by hekate tools but by just copying emummc folder from sd to my harddrive. Then on new sd removed existing emummc folder and copied 'backuped' one. After I copied that folder, did migration of emummc via tools on hekate to let it find that existing partition which went correctly and tried to boot into it. which didn't work as I only got black screen, on which I waited like 15-20 minutes and just powered off. after that it booted me straight into SYSmmc without exploit and that is where I started to have problems with restarting into hekate from pegascape.

I am long time atmo+hekate user using caffeine via pegascape option running mostly via EMUmmc. My SYSMMC is still at 4.0.0 although have few nsp installed there. My DNS is working because I have pegascape working correctly and it is the same configuration for quite a while. I was working with PegaScape without a hitch for a ~2 years with several firmware updates on emuMMC up to 12v . so far.

While it looks like my fault, can I do something about this to make it bootable into cfw again? Even something unusual like upgrading via game card to 4.0.1 or 4.1.0 or am I out of luck and have to forget about using CFWs?

Any help or even confirmation of being OOL is super appreciated!

PegaScape not working???

I cant seems to get mine to load properly since today hmmm...
load the fake news and then and it goes to a blog page: http://pegaswitch.com/
i configure the dns properly, system seting still 4.1.0 (no update)
the pegascape/pegaswitch fake news redirect to that page ^ hmmmm...
any idea why?

*cant remember when the last time i restart and work properly (probably last month)

help with caffeine on 3.0.0 error 2207-0248

after two years that I launched caffeine from 3.0.0 with pegascape, today it doesn't work anymore I made many attempts, the exploit starts but when I press on the empty box to wait 3 seconds, an error 2207-0248 instantly occurs and I am forced to reboot the switch. I checked dns and updated all the files on the SD I have the latest version of hekate and atmosphere, until a few days ago I had no problems, can you help me?

PegaScape closing when run as a daemon?

I am trying to get PegaScape to run on startup on a Linux system. Calling start.js manually in a terminal works a treat, but when it's called by cron, rc.local or systemd it refuses to stay open. It outputs the IP and DNS address, and then quits with no errors.
The same thing happens on Raspbian and OpenWRT. This is driving me crazy.

Any ideas? :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.