mirror of
https://github.com/aljazceru/recon-pipeline.git
synced 2025-12-19 23:34:27 +01:00
Add scan tests (#12) - tests of current codebase complete
* recon.targets tests added * restructured tests logically * fixed yaml error * fixed job names * recon.__init__ tests added * recon.config tests added * recon.amass.ParseAmassScan tests added * fixed test destined to fail on CI pipeline * testing amass partially complete * Changed the dir layout (#6) and fixed paths (#8) this commit closes #6 and #8 updated existing tests to utilize new paths * tests of current codebase complete * added is_kali check to searchsploit test * added test_web action to pipeline
This commit is contained in:
@@ -97,9 +97,7 @@ class GobusterScan(luigi.Task):
|
||||
try:
|
||||
self.threads = abs(int(self.threads))
|
||||
except TypeError:
|
||||
return logging.error(
|
||||
"The value supplied to --threads must be a non-negative integer."
|
||||
)
|
||||
return logging.error("The value supplied to --threads must be a non-negative integer.")
|
||||
|
||||
commands = list()
|
||||
|
||||
@@ -108,9 +106,7 @@ class GobusterScan(luigi.Task):
|
||||
target = target.strip()
|
||||
|
||||
try:
|
||||
if isinstance(
|
||||
ipaddress.ip_address(target), ipaddress.IPv6Address
|
||||
): # ipv6
|
||||
if isinstance(ipaddress.ip_address(target), ipaddress.IPv6Address): # ipv6
|
||||
target = f"[{target}]"
|
||||
except ValueError:
|
||||
# domain names raise ValueErrors, just assume we have a domain and keep on keepin on
|
||||
|
||||
Reference in New Issue
Block a user