\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /var/www/html/tool-ob/ToolsPortal/node_modules/.bin/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : /var/www/html/tool-ob/ToolsPortal/node_modules/.bin/dns |
#!/usr/bin/env node
(function () {
var fs = require('fs'),
path = require('path'),
opts = require('node-options'),
rootPath = path.join(path.dirname(fs.realpathSync(__filename)), '..'),
config = JSON.parse(fs.readFileSync(path.join(rootPath, 'package.json'))).configuration,
version = JSON.parse(fs.readFileSync(path.join(rootPath, 'package.json'))).version;
///////////////////////////////////////////////////////////////////////////
//
config = opts.mergeEnvironment(config);
///////////////////////////////////////////////////////////////////////////
//
// The "options" parameter is an object read from the package.json file.
// Every property of that object can be overwritten through the command
// line argument (e.g. --"property"=newValue)
var result = opts.parse(process.argv.slice(2), config);
///////////////////////////////////////////////////////////////////////////
//
var winston = require('winston'),
meta = {
"module" : config.name || "DNS",
"pid" : process.pid
},
logger = new (winston.Logger)({ transports: [
new (winston.transports.Console)({
"level" : config.level || "info",
"json" : false,
"colorize" : true
})
]});
///////////////////////////////////////////////////////////////////////////
//
// If an argument was passed on the command line, but was not defined in
// the "configuration" property of the package.json, lets print the USAGE.
if (result.errors) {
logger.log('error', opts.usage(config), meta);
logger.log('error', opts.error(result.errors), meta);
process.exit(-1);
} else if (result.args.length > 0) {
logger.log('error', opts.usage(config), meta);
logger.log('error', opts.error(result.args), meta);
process.exit(-1);
}
///////////////////////////////////////////////////////////////////////////
//
// make our logger, version and meta info available to Tomahawk
//
config.logger = logger;
config.version = version;
config.meta = meta;
///////////////////////////////////////////////////////////////////////////
//
// Configure Tomahawk routes and body parser
//
config.www = path.join(rootPath, "/public");
config.routes = path.join(rootPath, "lib/routes");
require('tomahawk').create(config).start();
require(path.join(rootPath, "lib/dns")).create(config).start();
}).call();