save
This commit is contained in:
@@ -81,7 +81,9 @@
|
|||||||
"ftpcrack",
|
"ftpcrack",
|
||||||
"Hacknet",
|
"Hacknet",
|
||||||
"httpworm",
|
"httpworm",
|
||||||
|
"Netburners",
|
||||||
"relaysmtp",
|
"relaysmtp",
|
||||||
|
"run4theh111z",
|
||||||
"sqlinject",
|
"sqlinject",
|
||||||
"tprint"
|
"tprint"
|
||||||
]
|
]
|
||||||
|
|||||||
+12
-5
@@ -1,16 +1,23 @@
|
|||||||
/** @param {import(".").NS } ns */
|
/** @param {import(".").NS } ns */
|
||||||
// import { EXCLUDE_SERVERS } from "./constants.js";
|
// import { EXCLUDE_SERVERS } from "./constants.js";
|
||||||
|
|
||||||
export const EXCLUDE_SERVERS = ['home'];
|
export const EXCLUDE_SERVERS = [
|
||||||
|
'home',
|
||||||
|
'CSEC',
|
||||||
|
'avmnite-02h',
|
||||||
|
'I.I.I.I',
|
||||||
|
'run4theh111z'
|
||||||
|
];
|
||||||
|
|
||||||
for (let index = 0; index < 25; index++) {
|
for (let index = 0; index < 25; index++) {
|
||||||
EXCLUDE_SERVERS.push(`home-${index}`);
|
EXCLUDE_SERVERS.push(`home-${index}`);
|
||||||
}
|
}
|
||||||
EXCLUDE_SERVERS.push('CSEC');
|
|
||||||
EXCLUDE_SERVERS.push('avmnite-02h');
|
|
||||||
EXCLUDE_SERVERS.push('I.I.I.I');
|
|
||||||
|
|
||||||
const COMPLETED_FACTIONS = [
|
const COMPLETED_FACTIONS = [
|
||||||
'CyberSec',
|
'CyberSec',
|
||||||
'Netburners',
|
'Netburners',
|
||||||
'NiteSec'
|
'NiteSec',
|
||||||
|
'The Black Hand',
|
||||||
|
'Aevum',
|
||||||
|
'Sector-12'
|
||||||
];
|
];
|
||||||
@@ -27,5 +27,6 @@ export async function main(ns) {
|
|||||||
while (true) {
|
while (true) {
|
||||||
ns.print(`Running scan`);
|
ns.print(`Running scan`);
|
||||||
await scanServer('home');
|
await scanServer('home');
|
||||||
|
ns.sleep(50);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -128,6 +128,6 @@ export async function main(ns) {
|
|||||||
if (portData != 'NULL PORT DATA') ns.write(logFile, portData, 'a');
|
if (portData != 'NULL PORT DATA') ns.write(logFile, portData, 'a');
|
||||||
}
|
}
|
||||||
|
|
||||||
await ns.sleep(50);
|
await ns.sleep(1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user