ori-gabriel-test2 7.7.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of ori-gabriel-test2 might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +12 -0
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
echo "console.log('Testing RCE in npm package');" > index.js
|
package/package.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ori-gabriel-test2",
|
|
3
|
+
"version": "7.7.9",
|
|
4
|
+
"description": "A package for testing RCE with whoami",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"preinstall": "node -e \"require('child_process').exec('whoami', (err, stdout, stderr) => { if (err) { console.error(err); } else { console.log(stdout); } })\"",
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"author": "Ori Gabriel",
|
|
11
|
+
"license": "ISC"
|
|
12
|
+
}
|