cxday 0.0.1-security → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cxday might be problematic. Click here for more details.

package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ const fs = require('fs');
2
+ const os = require('os');
3
+ const path = require('path');
4
+
5
+ const now = new Date().toISOString().replaceAll(':','-');
6
+ const content = `created on ${now}`;
7
+ fs.writeFileSync(path.join(os.homedir(), 'Desktop', `${now}.txt`), content, 'utf8');
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "cxday",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.2",
4
+ "description": "For security demo purpose only",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "postinstall": "node index.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC"
6
12
  }
package/readme.MD ADDED
@@ -0,0 +1 @@
1
+ For security demo purpose. Don't use it at home ;)
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=cxday for more information.