Skip to content

Commit 229fb36

Browse files
committed
Disable wait-after-pin under web page
1 parent 0815b5b commit 229fb36

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ Supplement:
5858

5959
1. For `--timeout`, waiting for `PADI` is not included, which allows you to start `pppwn_cpp` before the ps4 is launched.
6060
2. For `--no-wait-padi`, by default, `pppwn_cpp` will wait for two `PADI` request, according to [TheOfficialFloW/PPPwn/pull/48](https://github.com/TheOfficialFloW/PPPwn/pull/48) this helps to improve stability. You can turn off this feature with this parameter if you don't need it.
61-
3. For `--wait-after-pin`, according to [SiSTR0/PPPwn/pull/1](https://github.com/SiSTR0/PPPwn/pull/1) set this parameter to `20` helps to improve stability (not work for me).
61+
3. For `--wait-after-pin`, according to [SiSTR0/PPPwn/pull/1](https://github.com/SiSTR0/PPPwn/pull/1) set this parameter to `20` helps to improve stability (not work for me), this option not used in web interface.
6262
4. For `--groom-delay`, This is an empirical value. The Python version of pppwn does not set any wait at Heap grooming, but if the C++ version does not add some wait, there is a probability of kernel panic on my ps4. You can set any value within 1-4097 (4097 is equivalent to not doing any wait).
6363
5. For `--buffer-size`, When running on low-end devices, this value can be set to reduce memory usage. I tested that setting it to 10240 can run normally, and the memory usage is about 3MB. (Note: A value that is too small may cause some packets to not be captured properly)
6464

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ int main(int argc, char *argv[]) {
145145
"Use CPU for more precise sleep time (Only used when execution speed is too slow)" %
146146
option("-rs", "--real-sleep").set(real_sleep), \
147147
"start a web page" % option("--web").set(web_page), \
148-
"url" % option("--url") & value("url", web_url)
148+
"custom web page url (default: 0.0.0.0:7796)" % option("--url") & value("url", web_url)
149149
) | \
150150
"list interfaces" % command("list").call(listInterfaces)
151151
);

src/web.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ void WebPage::startExploit() {
104104
exploit->stop();
105105
if (exploitThread.joinable())
106106
exploitThread.join();
107+
exploit->setWaitAfterPin(1);
107108
exploitThread = std::thread([this]() {
108109
return exploit->run();
109110
});

0 commit comments

Comments
 (0)