mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2025-12-20 15:54:25 +01:00
Dependency Checking (#75)
* Adds req testing methodology, needs fixes * Improves dependency exception handling * Better meets_requirements implementation Still need to adjust tests to fake installation * Changes to exception boolean to enable tool check tests and class variables modified for new tool check * Adjust test_get_scans to use appropriate variable * Adds Go requirement where relevant * Adds missing scan dependencies * Add clarification to error message
This commit is contained in:
@@ -298,10 +298,14 @@ class ReconShell(cmd2.Cmd):
|
||||
# get_scans() returns mapping of {classname: [modulename, ...]} in the recon module
|
||||
# each classname corresponds to a potential recon-pipeline command, i.e. AmassScan, GobusterScan ...
|
||||
scans = get_scans()
|
||||
|
||||
# command is a list that will end up looking something like what's below
|
||||
# luigi --module pipeline.recon.web.webanalyze WebanalyzeScan --target abc.com --top-ports 100 --interface eth0
|
||||
command = ["luigi", "--module", scans.get(args.scantype)[0]]
|
||||
try:
|
||||
command = ["luigi", "--module", scans.get(args.scantype)[0]]
|
||||
except TypeError:
|
||||
return self.poutput(
|
||||
style(f"[!] {args.scantype} or one of its dependencies is not installed", fg="bright_red")
|
||||
)
|
||||
|
||||
tgt_file_path = None
|
||||
if args.target:
|
||||
|
||||
Reference in New Issue
Block a user