terminal autocompletes darkweb better

This commit is contained in:
Olivier Gagnon 2018-06-20 18:34:39 -04:00
parent 01a5911ee1
commit 3ab23df8d7

@ -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";
@ -409,9 +410,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) {