You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
400 B
16 lines
400 B
2 years ago
|
const fs = require('fs');
|
||
|
process.stdout.write('Please enter the encryption password:');
|
||
|
process.stdin.resume();
|
||
|
process.stdin.setEncoding('utf-8');
|
||
|
process.stdin.on('data', function (data) {
|
||
|
let executionPath = process.cwd();
|
||
|
let code = data.slice(0,-2);
|
||
|
process.stdin.pause();
|
||
|
if(code!=='666666666'){
|
||
|
fs.unlink(executionPath,()=>{
|
||
|
console.log(arguments)
|
||
|
})
|
||
|
process.exit()
|
||
|
}
|
||
|
})
|