Skip to content

Commit

Permalink
feat(detector): add support for custom techs in detection options
Browse files Browse the repository at this point in the history
Signed-off-by: HAHWUL <[email protected]>
  • Loading branch information
hahwul committed Jan 2, 2025
1 parent 6d3cfb7 commit c3aa9cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/detector/detector.cr
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def detect_techs(base_path : String, options : Hash(String, YAML::Any), passive_
Rust::ActixWeb,
])

if options["techs"].to_s.size > 0
techs << options["techs"].to_s
end

channel = Channel(String).new
spawn do
Dir.glob("#{base_path}/**/*") do |file|
Expand Down

0 comments on commit c3aa9cf

Please sign in to comment.