-
Notifications
You must be signed in to change notification settings - Fork 3
/
ps4_jb900_esp8266.ino
51 lines (37 loc) · 1.21 KB
/
ps4_jb900_esp8266.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
const char* WIFISSID = "ESP8266 PS4 9.00 jailbreak";
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
digitalWrite(LED_BUILTIN, HIGH);
Serial.begin(115200);
delay(500);
Serial.println("\n\n");
Serial.println(WIFISSID);
if (!SPIFFS.begin()) {
Serial.println("SPIFFS Init failed. System halted");
while (true) {
digitalWrite(LED_BUILTIN, LOW);
delay(250);
digitalWrite(LED_BUILTIN, HIGH);
delay(250);
}
}
WiFi.mode(WIFI_AP);
WiFi.softAP(WIFISSID);
static AsyncWebServer server(80);
server.serveStatic("/", SPIFFS, "/").setDefaultFile("index.html");
server.onNotFound([]( AsyncWebServerRequest * request) {
Serial.printf("Not found http://%s%s\n", request->host().c_str(), request->url().c_str());
request->send(404);
});
server.begin();
Serial.printf("\n\n1. Connect your PS4 to '%s' WiFi access point.\n", WIFISSID);
Serial.printf("2. Browse to '%s' to jailbreak your PS4.", WiFi.softAPIP().toString());
Serial.println();
digitalWrite(LED_BUILTIN, LOW);
}
void loop() {
delay(10);
}