Giter VIP home page Giter VIP logo

esp32-server-900u's Introduction

ESP32 Server 9.00u


This is a project designed for the ESP32-S2, *ESP32-S3 and ESP32 boards to provide a wifi http server, dns server and *USB storage emulation.

it is for the PS4 9.00 OOB Exploit which is now combined with PsFree.


the only files required on the storage of the esp32 are the .bin payloads, everything else is handled internally including generating a list of payloads.

you can still modify the html by uploading your own index.html, if there is no index.html on the storage the internal pages will be used.

if you have problems compiling the sketch make sure the ESP32 library version is not above 2.0.14.

the firmware is updatable via http and the payload files can be managed via http.
if you select a No OTA partition the firmware update via http will not be available.

you can access the main page from the userguide or the consoles webbrowser using any hostname.


ESP32 Boards

if your board is a ESP32 the usb emulation will not be available so you will need to wire a usb drive up to it like this project PS4-Server-900u or you can manually plug and unplug a usb drive for exfathax.
this is a wiring diagram for the ESP32 boards.

ESP32-S2 Boards

if your board is a ESP32-S2 you do not need a usb drive with this project as it emulates a usb mass storage device to the console and triggers a filesystem bug to leverage the exploit(exfathax).

ESP32-S3 Boards

if your board is a ESP32-S3 you do not need a usb drive with this project as it emulates a usb mass storage device to the console and triggers a filesystem bug to leverage the exploit(exfathax).


Libraries

the project is built using ESPAsyncWebServer and AsyncTCP so you need to add these libraries to arduino

ESPAsyncWebServer
AsyncTCP


install or update the ESP32 core by adding this url to the Additional Boards Manager URLs section in the arduino "Preferences".

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

then goto the "Boards Manager and install or update the "esp32" core, do not update above version 2.0.14.


if you have problems with the board being identified/found in windows then you might need to install the USB to UART Bridge drivers.


Dongles

these dongles have been tested and work, they are a great way to have a compact exploit tool

πŸ†— LILYGO T-Dongle-S3
πŸ†— ESP32-S2 Dongle


Tested Boards

these ESP32-S2 boards can be used for a plug and play setup(no wiring)

4MB boards

πŸ†— S2 Mini
πŸ†— TinyS2
πŸ†— Adafruit QT Py ESP32-S2
πŸ†— ESP32-S2-DevKitC-1
πŸ†— LILYGO TTGO T8 ESP32-S2 WOOR
πŸ†— LILYGO TTGO T8 TF Card Slot

16MB boards
πŸ†— FeatherS2



these ESP32-S2 boards will need a usb A plug wired up to them.

4MB boards

πŸ†— ESP32-S2-DevKitM-1 Wiring Diagram
πŸ†— ESP32-S2-Saola-1 Wiring Diagram
πŸ†— Ai-thinker ESP 12K Wiring Diagram



these ESP32-S3 boards can be used for a plug and play setup(no wiring)

πŸ†— ESP32-S3-DevKitC-1


Uploading to board

installation is simple you just use the arduino ide to flash the sketch/firmware to the esp32 board.

next you connect to the wifi access point with a pc/laptop, PS4_WEB_AP is the default SSID and password is the default password.
then use a webbrowser and goto http://10.1.1.1/admin.html 10.1.1.1 is the defult webserver ip or http://ps4.local
on the side menu of the admin page select File Uploader and then click Select Files and locate the data folder inside the ESP32_Server_900u folder in this repo and select all the files inside the data folder and click Upload Files you can then goto Config Editor and change the password for the wifi ap.

alternatively if you install this plugin to the arduino ide you can upload the files to the board storage with the arduino ide by selecting Tools > ESP32 Sketch Data Upload

Arduino ESP32-S2 filesystem uploader



the files uploaded using this method are found in the data folder inside the ESP32_Server_900u folder.


Internal pages

  • admin.html - the main landing page for administration.

  • index.html - if no index.html is found the server will generate a simple index page and list the payloads automatically.

  • info.html - provides information about the esp board.

  • upload.html - used to upload files(.bin) to the esp board for the webserver.

  • update.html - used to update the firmware on the esp board (fwupdate.bin).

  • fileman.html - used to view / download / delete files on the internal storage of the esp board.

  • config.html - used to configure wifi ap and ip settings.

  • format.html - used to format the internal storage of the esp board.

  • reboot.html - used to reboot the esp board



Cases

i have created some basic printable cases for the following boards.
these cases can be printed in PLA without supports.

ESP32-S2 Boards

Adafruit QT Py
UM FeatherS2
UM TinyS2
Wemos S2 Mini
DevKitM-1
ESP32-S2-Saola-1
LILYGO-TTGO-T8-TF-Card-Slot
LILYGO-TTGO-T8-WOOR

ESP32-S3 Boards

S3_DevKitC_1

ESP32 Boards

NodeMCU-32


if you wish to edit the cases you can import the .stl files into Tinkercad and edit them to suit your needs.


esp32-server-900u's People

Contributors

stooged 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

esp32-server-900u's Issues

Uploading Files With FatFs

only got about 3mb of files using feathers2 but its just keeps saying error failed to open

error

_>error: failed to open "/spiflash/CUSA11229_01.03.json.gz" for writing
->Pack file, dir_s: C:\Users\EchoStretch\Desktop\ESP32-Server-900u-main\ESP32_Server_900u\data\CUSA11229_01.03.json.gzdir_d: /spiflash/CUSA11229_01.03.json.gz file name: CUSA11229_01.03.json.gz
_>error: failed to open "/spiflash/CUSA11253.jpg.gz" for writing
->Pack file, dir_s: C:\Users\EchoStretch\Desktop\ESP32-Server-900u-main\ESP32_Server_900u\data\CUSA11253.jpg.gzdir_d: /spiflash/CUSA11253.jpg.gz file name: CUSA11253.jpg.gz
_>error: failed to open "/spiflash/CUSA11253_01.17.json.gz" for writing
->Pack file, dir_s: C:\Users\EchoStretch\Desktop\ESP32-Server-900u-main\ESP32_Server_900u\data\CUSA11253_01.17.json.gzdir_d: /spiflash/CUSA11253_01.17.json.gz file name: CUSA11253_01.17.json.gz
->Pack file, dir_s: C:\Users\EchoStretch\Desktop\ESP32-Server-900u-main\ESP32_Server_900u\data\CUSA11260.jpg.gzdir_d: /spiflash/CUSA11260.jpg.gz file name: CUSA11260.jpg.gz
_>error: failed to open "/spiflash/CUSA11260.jpg.gz" for writing
_>error: failed to open C:\Users\EchoStretch\Desktop\ESP32-Server-900u-main\ESP32_Server_900u\data\CUSA11260_01.12.json.gz for reading
_>error adding file!
_>
->g_flashmem[0]: οΏ½size: 12513280

FatFS Create Failed!

Problem With My esp32 Board

Hi Stooged. I hope you always healthy and good.I have a problem with my esp32 board (i using ai thinker). How to turn off usb emulation because my pin board that explain in the digram is broken. So i can jailbreak the ps4 with flashdisk exfathax. Thanks

'USBMSC' does not name a type

hi stooged,

ive got this error at compiling. i have the doit esp32 devkit v1

ESP32_Server_900u:25:1: error: 'USBMSC' does not name a type
USBMSC dev;
^~~~~~
C:\Users\xxx\Downloads\ESP32-Server-900u-main\ESP32-Server-900u-main\ESP32_Server_900u\ESP32_Server_900u.ino: In function 'void setup()':
ESP32_Server_900u:576:3: error: 'USB' was not declared in this scope
USB.begin();
^~~
C:\Users\xxx\Downloads\ESP32-Server-900u-main\ESP32-Server-900u-main\ESP32_Server_900u\ESP32_Server_900u.ino: In function 'void enableUSB()':
ESP32_Server_900u:583:3: error: 'dev' was not declared in this scope
dev.vendorID("USB");
^~~
C:\Users\xxx\Downloads\ESP32-Server-900u-main\ESP32-Server-900u-main\ESP32_Server_900u\ESP32_Server_900u.ino:583:3: note: suggested alternative: 'div'
dev.vendorID("USB");
^~~
div
C:\Users\xxx\Downloads\ESP32-Server-900u-main\ESP32-Server-900u-main\ESP32_Server_900u\ESP32_Server_900u.ino: In function 'void disableUSB()':
ESP32_Server_900u:600:3: error: 'dev' was not declared in this scope
dev.end();
^~~
C:\Users\xxx\Downloads\ESP32-Server-900u-main\ESP32-Server-900u-main\ESP32_Server_900u\ESP32_Server_900u.ino:600:3: note: suggested alternative: 'div'
dev.end();
^~~
div
Multiple libraries were found for "WiFi.h"
Used: C:\Users\xxx\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries\WiFi
Not used: C:\Users\xxx\Downloads\arduino-1.8.19-windows\arduino-1.8.19\libraries\WiFi
exit status 1
'USBMSC' does not name a type

when i try to upload the code...

when i try to upload the code i get this error


Multiple libraries were found for "WiFi.h"

sketch_feb17b:19:10: fatal error: Loader.h: No such file or directory

compilation terminated.

exit status 1

Loader.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

powersave mode?

Playing for hours, the chip pick up some heat.
Is it worthy to implement some kind of sleep mode?

Compiling errors

Cannot compile a updated version February 22/

Settings are following
#define USEFAT false
#define INTHEN true
#define AUTOHEN true
#define FANMOD false

Error log:
~ESP32_Server_900u\ESP32_Server_900u.ino: In lambda function: ESP32_Server_900u:912:43: error: 'autohenData' was not declared in this scope request->send(200, "text/html", autohenData); ^~~~~~~~~~~ ~ESP32_Server_900u\ESP32_Server_900u.ino:912:43: note: suggested alternative: 'autohen_gz' request->send(200, "text/html", autohenData); ^~~~~~~~~~~ autohen_gz 'autohenData' was not declared in this scope

However, when i choose AUTOHEN false. No errors

Still Can't Trigger FeatherS2

Someone just mentioned repartition the flash might work. Doesn't it do that automatically tho? If not then how? Sorry to post again even tho you closed it. But I still can't get it to work even with Karo new release.

Move to LittleFS for better performance?

From my test result, LittleFS has better average performance than SPIFFS on ESP32S2.

Three cases were tested with wrk:

  1. 404-notfound
  2. LICENSE: MIT LICENSE file, around 1k
  3. merged-flash.bin: arduino binary file, around 1MB

Test cli: wrk -t6 -c6 -d30s http://10.1.1.1/404-notfound && wrk -t6 -c6 -d30s http://10.1.1.1/LICENSE && wrk -t1 -c1 -d30s http://10.1.1.1/merged-flash.bin

LittleFS:

Running 30s test @ http://10.1.1.1/404-notfound
  6 threads and 6 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    46.20ms   26.03ms 372.25ms   89.03%
    Req/Sec    18.15      7.99    50.00     55.66%
  2385 requests in 30.10s, 279.49KB read
  Socket errors: connect 0, read 13, write 0, timeout 0
  Non-2xx or 3xx responses: 2385
Requests/sec:     79.23
Transfer/sec:      9.28KB
Running 30s test @ http://10.1.1.1/LICENSE
  6 threads and 6 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    51.30ms   14.44ms  96.26ms   64.77%
    Req/Sec    16.20      6.31    40.00     71.95%
  2325 requests in 30.09s, 2.70MB read
  Socket errors: connect 0, read 12, write 0, timeout 0
Requests/sec:     77.26
Transfer/sec:     91.98KB
Running 30s test @ http://10.1.1.1/merged-flash.bin
  1 threads and 1 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     1.89s    91.78ms   1.97s    85.71%
    Req/Sec     0.00      0.00     0.00    100.00%
  15 requests in 30.04s, 15.79MB read
  Socket errors: connect 0, read 0, write 0, timeout 8
Requests/sec:      0.50
Transfer/sec:    538.43KB

SPIFFS:

Running 30s test @ http://10.1.1.1/404-notfound
  6 threads and 6 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   323.40ms  297.55ms 912.69ms   76.67%
    Req/Sec     4.78      3.29    10.00     44.44%
  90 requests in 30.09s, 10.55KB read
  Socket errors: connect 0, read 1, write 0, timeout 0
  Non-2xx or 3xx responses: 90
Requests/sec:      2.99
Transfer/sec:     358.94B
Running 30s test @ http://10.1.1.1/LICENSE
  6 threads and 6 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    32.91ms   21.99ms 343.58ms   94.29%
    Req/Sec    21.64      7.33    50.00     60.57%
  2980 requests in 30.10s, 3.46MB read
  Socket errors: connect 0, read 11, write 0, timeout 0
Requests/sec:     99.00
Transfer/sec:    117.86KB
Running 30s test @ http://10.1.1.1/merged-flash.bin
  1 threads and 1 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     0.00us    0.00us   0.00us     nan%
    Req/Sec     0.00      0.00     0.00    100.00%
  11 requests in 30.08s, 11.92MB read
  Socket errors: connect 0, read 0, write 0, timeout 11
Requests/sec:      0.37
Transfer/sec:    405.98KB

small request

can you make a light version with no website or goldhen fan and just add default stuff like spiff partition with webserver and exfathax. need it as small as you can get it.lol

ESP32-S2-SAOLA WIFI

after uploading sketch to the board, connected wifi with default password.
went to 10.1.1.1\admin.html =>config =>changed Home_wifi to My wifi SSID and password to Mine. later unchecked AP check box.
checked connect to wifi box. => config saved => reboot

but problem is esp 32 s2 not showing in the wlan clients list
where it went wrong ?

How to build bin file to flash

Sorry not an issue but no where else to ask. Ok so I am able to upload and sketch now. So after sketch I go to temp folder and like I do on the esp8266……what files do I need? And do I build same as I do with esp8266?
5CB79524-B405-425F-A5FC-61F0D58B1DA8

Problems uploading/running sketch

Hi,

Could you please post a description on how exactly you flashed the Wemos S2 mini please? Especially the settings for Arduino IDE.
Also, did you setup any driver in Windows? When booting to DFU mode, I see an unknown device "ESP32-S2" in Device Manager.

The sketch itself compiles fine, all required libraries are there.
I took all settings from https://www.wemos.cc/en/latest/tutorials/s2/get_started_with_arduino_s2.html ("Serial Connected to: USB CDC" now is named "USB CDC on boot: Enabled", I guess), put the chip into DFU mode as described there, then flashed it without any error messages except that no reset was possible.

Since then it no longer boots normally (after 10 seconds Windows reports a USB device that did not send a device ID, I waited several minutes), DFU mode works still. Tried flashing the sketch and then the data files directly after, didn't help either.

With the PS4-Server-900u, I had absolutely no problems flashing a Wemos D1 mini Pro with the same general software setup.
Normally I'd claim to be rather computer literate, but now I am absolutely stumped.

Thank you.

Help

hello good day, sorry for the inconvenience, is there a way to convert goldhen.bin to goldhen.h or any payload, so that when a new hen comes out, include it myself?, thanks in advance

admin menu

hello when i use the fatfs the with the debug core in debug mode !!! menu admin takes only half of the page

problem running hen

sorry for bothering you.
now i successfully upload your original code with no changes to my esp32 and now i get this error every time i run hen
20220218180203
tried with restarting and power off but no changes same error

Problem Uploading Files on File Manager

U have an suggestion for error upload file.bin using the sketch data upload (success but file not appear in file manager). I use file upload its not appear in file manager too.

ESPAsyncWebServer-master.zip

Arduino: 1.8.19 (Windows 10), Board: "ESP32S2 Dev Module, Disabled, Disabled, Disabled, UART0, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), QIO, 80MHz, 4MB (32Mb), 921600, None"

java.io.IOException: Zip doesn't contain a library

esp32 Version 2. 0.2

It worked when first time, but uninstalled yesterday, now I installed again and now It throwing this error when I trying to add library

ErrorReport

How to add host

Sorry I know but where can I get help adding my host? Is there a forum or something? Do I just copy same data folder that I flash my esp8266 with?

Maybe you can help

website works great on feather S2 and using 12.5mb fat but when I flash the combine bin I created It doesnt show the wifi and im using the correct offsets.

Maby a working board

AI Thinker ESP 12K wiring

This is the wiring

image

This board cannot be powered by connected to 5V and GND. It s supposed to be output as my test

Diagram is here

image

If we want to advoid 2 USB connection, more wiring task need to be done by connecting red and black of USB data to power cable

wifi on esp32

first of all thanks to @stooged for your help
i successfully setup my esp32 with USB working now i have a new problem.
when i set my wifi SSID,esp does not connect to my wifi.
i try this wifi example sketch from the esp32 library and on this one esp connect to wifi scssesfully

Not issue, some guidance please

I usually use OS X, Installed Windows as OS X would not detect my ESP32-S2 Mini (little purple one).

Having the same issue.
I have downloaded and installed everything mentioned, as its a clean install of windows, is there any other drivers you would recommended? I don't use Windows so im unsure what to grab sorry.

Once I have tested I can let you know if this board is 100% compatible to add a green tick for others.

missing FS.h

ESP32_Server_900u:1:10: fatal error: FS.h: No such file or directory
#include <FS.h>
^~~~~~
compilation terminated.
exit status 1
FS.h: No such file or directory

Issue with SDCard & files?

Im having a weird issue when i upload files to the board it will do all uploads fine but crashes at the end. once rebooted i can go to admin menu fine and it displays the correct filesystem size and storage used but when i click on file manager or main it will crash

Request

Hi master, if I may request, inthen (internal hen) use goldhen.bin, the reason is for example if there is a new update we can upload it to ESP without reprogramming and the size of goldhen.bin is also smaller.

Thank you.

Flash FeatherS2

there must be a special way to flash this one cuz I did usb test and it worked but when I flash all i get is failed exploit trigger.

Issues Compiling.

Sorry to bother again.

I was wondering, as the exfathax now has a pico image 6kb rather than 4.1mb, could it now be possible to to add USB Emulation to this ESP? like what the Raspberry Pi Zero W has had made.
My thinking was instead of the USB stick connected, the cable powering the ESP could also send the data to the PS4?

This would be a game changer as the Zeros are out of stock everywhere and ESPs are not.

Not an issue :)

I have made a case for the S2 Mini, wondered if you would like the STL?

It does however have the PS Logo on it, if this is an issue, I can remove it if you would like the file.

File Manager

When you hit download on index.html it just sends you to index.html

Also can you scroll to file manager as you cant scroll if you have alot of files

ESP32-S3-DevKitC-1

does it work on ESP32-S3-DevKitC-1 since s2 are out of stock in my region

Wiring diagram?

Hi,
I plan on getting two Wemos/Lolin S2 mini soon to implement this, once you confirmed it working fine.

Do you have a wiring diagram available for this setup, similar to the ones you posted for the PS4-Server-900u (which I'm going to build this weekend)?

Thank you very much :)
Regards

Firmware Update, Magic byte wrong.

Is firmware update enabled for S2's? I tried updating via the admin page, I get this error message.
Magic byte is wrong
Expected: 0xE9
Found: 0xFF.
Im wondering if it because the board is not in DFU mode? I put the board into DFU but it loses Wifi connectivity to update.

Thanks.

Sketch

Now I get this error. Please help this is impossible

FatFS Error: mkfatfs.exe not found!
Where is it located?

esp32-s2-saola

Board : esp32-s2-saola
Soldered :
20220211_161620
Issue : after flashing with arudino IDE, no wifi is showing ( flash was successful )

How to sketch and build

Can someone please tell/show me how to flash/sketch/and build a bin file. Cuz I’m all confused. There is a sketch tab and a tools tab. With esp8266 I would always first under sketch tab upload. 2nd step would be under Tools tab sketch data upload. Is this still the steps for ESP32? Cuz I don’t feel like it’s working correctly. And to then build a bin file for a FeatherS2 I’m clueless cuz anything I try just spits out a 98kb bin file. Please help I’m so frustrated with this.

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.