Closed Bad3r closed 4 years ago
Thanks for the report!
Looking at your traceback, the following line jumps out at me.
...
Error: open None/providers-data.csv: no such file or directory
...
The None
preceeding your csv path leads me to believe there's something hinky with the tool definition.
The line where we lookup the csv location is here.
In a good install, we should see the csv here
.local/recon-pipeline/tools/pipeline-go-workspace/src/github.com/anshumanbh/tko-subs/providers-data.csv
You found a snag introduced a few commits ago. git_dir
was removed from tko-subs.yaml, but we didn't update subdomain_takeover.py to reflect that change.
can you make the following two changes and let me know how it works out?
pipeline/tools/tko-subs.yaml
(add providers
line)
installed: false
dependencies: [go]
go: &gotool !get_tool_path "{go[path]}"
path: !join_path [!get_default "{gopath}", bin/tko-subs]
environ: {"GOPATH": !get_default "{gopath}"}
providers: !join_path [!get_default "{gopath}", src/github.com/anshumanbh/tko-subs/providers-data.csv]
commands:
!join [*gotool, get, github.com/anshumanbh/tko-subs]
pipeline/recon/web/subdomain_takeover.py
- modify -data
line (line 126)
command = [
tools.get("tko-subs").get("path"),
f"-domain={','.join(domains)}",
f"-data={tools.get('tko-subs').get('providers')}",
f"-output={self.output_file}",
]
that fixed it thanks!
Thanks for checking the fix! I'm going to reopen this in order to track the problem until i get a PR in to fix it.
Describe the bug The
TKOSubsScan
scan fails due to the fileproviders-data.csv
being missingTo Reproduce Steps to reproduce the behavior:
TKOSubsScan
Expected behavior the file
providers-data.csv
should exist before theTKOSubsScan
startsEnvironment (please complete the following information):
Additional context I am not sure why the parent directory shows as
None
initially i noticed the error while running a
FullScan