mirror of
https://github.com/partofmyid/register.git
synced 2026-06-05 18:46:50 +07:00
update node ver and (possible) script vulnerability
This commit is contained in:
parent
4d8c7716fb
commit
d8b02125b7
2 changed files with 11 additions and 6 deletions
6
dbgen.js
6
dbgen.js
|
|
@ -1,9 +1,11 @@
|
|||
const fs = require('fs');
|
||||
|
||||
console.log(
|
||||
JSON.stringify(
|
||||
require('fs').readdirSync('./domains').map(f =>
|
||||
fs.readdirSync('./domains').map(f =>
|
||||
[
|
||||
f.split('.').slice(0, -1).join('.'), // subdomain
|
||||
require(`./domains/${f}`).owner.username // owner
|
||||
JSON.parse(fs.readFileSync(`./domains/${f}`, 'utf8')).owner.username // owner
|
||||
]
|
||||
)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue