mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-23 08:03:48 +01:00
Merge pull request #318 from hydroflame/darkweb-autolink
added autolink to darkweb
This commit is contained in:
commit
343d474702
@ -109,6 +109,7 @@ const DarkWebItems = {
|
|||||||
SQLInjectProgram: new DarkWebItem(Programs.SQLInjectProgram, 250000000, "Opens up SQL Ports"),
|
SQLInjectProgram: new DarkWebItem(Programs.SQLInjectProgram, 250000000, "Opens up SQL Ports"),
|
||||||
DeepscanV1: new DarkWebItem(Programs.DeepscanV1, 500000, "Enables 'scan-analyze' with a depth up to 5"),
|
DeepscanV1: new DarkWebItem(Programs.DeepscanV1, 500000, "Enables 'scan-analyze' with a depth up to 5"),
|
||||||
DeepscanV2: new DarkWebItem(Programs.DeepscanV2, 25000000, "Enables 'scan-analyze' with a depth up to 10"),
|
DeepscanV2: new DarkWebItem(Programs.DeepscanV2, 25000000, "Enables 'scan-analyze' with a depth up to 10"),
|
||||||
|
AutolinkProgram: new DarkWebItem(Programs.AutoLink, 1000000, "Enables direct connect via 'scan-analyze'"),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,8 @@ import {substituteAliases, printAliases,
|
|||||||
import {CONSTANTS} from "./Constants.js";
|
import {CONSTANTS} from "./Constants.js";
|
||||||
import {Programs} from "./CreateProgram.js";
|
import {Programs} from "./CreateProgram.js";
|
||||||
import {executeDarkwebTerminalCommand,
|
import {executeDarkwebTerminalCommand,
|
||||||
checkIfConnectedToDarkweb} from "./DarkWeb.js";
|
checkIfConnectedToDarkweb,
|
||||||
|
DarkWebItems} from "./DarkWeb.js";
|
||||||
import {Engine} from "./engine.js";
|
import {Engine} from "./engine.js";
|
||||||
import {FconfSettings, parseFconfSettings,
|
import {FconfSettings, parseFconfSettings,
|
||||||
createFconf} from "./Fconf.js";
|
createFconf} from "./Fconf.js";
|
||||||
@ -408,9 +409,12 @@ function determineAllPossibilitiesForTabCompletion(input, index=0) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (input.startsWith ("buy ")) {
|
if (input.startsWith ("buy ")) {
|
||||||
return [Programs.BruteSSHProgram, Programs.FTPCrackProgram, Programs.RelaySMTPProgram,
|
let options = [];
|
||||||
Programs.HTTPWormProgram, Programs.SQLInjectProgram, Programs.DeepscanV1,
|
for(const i in DarkWebItems) {
|
||||||
Programs.DeepscanV2].concat(Object.keys(GlobalAliases));
|
const item = DarkWebItems[i]
|
||||||
|
options.push(item.program);
|
||||||
|
}
|
||||||
|
return options.concat(Object.keys(GlobalAliases));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (input.startsWith("scp ") && index == 1) {
|
if (input.startsWith("scp ") && index == 1) {
|
||||||
|
Loading…
Reference in New Issue
Block a user