updated botnet manager help language
This commit is contained in:
parent
c17e0d8d84
commit
f628a5f1d0
@ -7,6 +7,7 @@ class Manager {
|
|||||||
workers = [];
|
workers = [];
|
||||||
|
|
||||||
constructor(ns, device, port, config = '/conf/botnet.txt') {
|
constructor(ns, device, port, config = '/conf/botnet.txt') {
|
||||||
|
ns.disableLog('ALL');
|
||||||
this.ns = ns;
|
this.ns = ns;
|
||||||
this.config = config;
|
this.config = config;
|
||||||
this.device = device;
|
this.device = device;
|
||||||
@ -154,7 +155,7 @@ export async function main(ns) {
|
|||||||
// Run command
|
// Run command
|
||||||
if(args['_command'] == 'start') { // Start botnet manager
|
if(args['_command'] == 'start') { // Start botnet manager
|
||||||
ns.tprint(`Starting swarm manager: ${hostname}`);
|
ns.tprint(`Starting swarm manager: ${hostname}`);
|
||||||
ns.tprint(`Connect a worker with: run botnet-manager.js --join ${hostname}`);
|
ns.tprint(`Connect a worker with: run botnet-manager.js join`);
|
||||||
await new Manager(ns, hostname, portNum).start();
|
await new Manager(ns, hostname, portNum).start();
|
||||||
} else if(args['_command'] == 'copy') { // Issue copy command
|
} else if(args['_command'] == 'copy') { // Issue copy command
|
||||||
await ns.writePort(portNum, JSON.stringify({
|
await ns.writePort(portNum, JSON.stringify({
|
||||||
|
Loading…
Reference in New Issue
Block a user