mirror of
https://github.com/Hopiu/webapi-eca.git
synced 2026-03-17 06:20:23 +00:00
18 lines
714 B
JavaScript
18 lines
714 B
JavaScript
log.print('TT', 'action testing.js');
|
|
log.obj('exports', exports);
|
|
log.obj('this', this);
|
|
/*
|
|
// Hacking my own system...
|
|
console.log(module.parent.parent.children[0].exports.getEventModuleAuth('probinder',
|
|
function(err, obj) {console.log(obj);}));
|
|
*/
|
|
|
|
//FIXME do not try to delete a file and rely on it to exist, rather try to create it first! o check for its existance and then delete it
|
|
try {
|
|
fs.unlinkSync(path.resolve(__dirname, 'event_modules', 'malicious', 'test.json'));
|
|
log.error('VERY BAD! NEVER START THIS SERVER WITH A USER THAT HAS WRITE RIGHTS ANYWHERE!!!');
|
|
} catch (err) {
|
|
log.print('VERY GOOD! USERS CANNOT WRITE ON YOUR DISK!');
|
|
|
|
}
|
|
throw new Error('Testing your error handling');
|