Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Significantly speed up textarea spray #1

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
This repository contains [Synacktiv's PS4 WebKit exploit](https://github.com/synacktiv/PS4-webkit-exploit-6.XX), adapted for 7.02 firmware.
This repository contains [Synacktiv's PS4 WebKit exploit](https://github.com/synacktiv/PS4-webkit-exploit-6.XX), adapted for 7.xx firmware.
The WebKit exploit execution speed has been increased by roughly 40% between attempts, making jailbreaking noticeably faster.
4 changes: 1 addition & 3 deletions ps4.js
Original file line number Diff line number Diff line change
@@ -418,11 +418,9 @@ function sprayHTMLTextArea() {
let textarea_div_elem = g_textarea_div_elem = document.createElement("div");
document.body.appendChild(textarea_div_elem);
textarea_div_elem.id = "div1";
textarea_div_elem.style.visibility = "hidden";
var element = document.createElement("textarea");

/* Add a style to avoid textarea display */
element.style.cssText = 'display:block-inline;height:1px;width:1px;visibility:hidden;';

/*
* This spray is not perfect, "element.cloneNode" will trigger a fastMalloc
* allocation of the node attributes and an IsoHeap allocation of the