Merge pull request #318 from hydroflame/darkweb-autolink

added autolink to darkweb
This commit is contained in:
danielyxie 2018-06-22 15:13:48 -05:00 committed by GitHub
commit 343d474702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

@ -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) {