| 1 | package filterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/ |
| 2 | |
| 3 | import ( |
| 4 | "fmtscip-go gomod github.com/golang/go/src go1.18 fmt/" |
| 5 | "syncscip-go gomod github.com/golang/go/src go1.18 sync/" |
| 6 | |
| 7 | "github.com/ffuf/ffuf/v2/pkg/ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/" |
| 8 | ) |
| 9 | |
| 10 | // MatcherManager handles both filters and matchers. |
| 11 | type MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager# struct { |
| 12 | IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#IsCalibrated. bool |
| 13 | Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex. syncscip-go gomod github.com/golang/go/src go1.18 sync/.Mutexscip-go gomod github.com/golang/go/src go1.18 sync/Mutex# |
| 14 | Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers. map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider# |
| 15 | Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters. map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider# |
| 16 | PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters. map[string]*PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter# |
| 17 | } |
| 18 | |
| 19 | type PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter# struct { |
| 20 | IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#IsCalibrated. bool |
| 21 | Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters. map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider# |
| 22 | } |
| 23 | |
| 24 | func NewPerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewPerDomainFilter().(globfilters map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#) *PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter# { |
| 25 | return &PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#{IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#IsCalibrated.: false, Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters.: globfilters} |
| 26 | } |
| 27 | |
| 28 | func (p *PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#) SetCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#SetCalibrated().(value bool) { |
| 29 | p.IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#IsCalibrated. = value |
| 30 | } |
| 31 | |
| 32 | func NewMatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewMatcherManager().() ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/MatcherManager# { |
| 33 | return &MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#{ |
| 34 | IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#IsCalibrated.: false, |
| 35 | Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers.: make(map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#), |
| 36 | Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.: make(map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#), |
| 37 | PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.: make(map[string]*PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#), |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) SetCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#SetCalibrated().(value bool) { |
| 42 | f.IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#IsCalibrated. = value |
| 43 | } |
| 44 | |
| 45 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) SetCalibratedForHostscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#SetCalibratedForHost().(host string, value bool) { |
| 46 | if f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[host] != nil { |
| 47 | f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[host].IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#IsCalibrated. = value |
| 48 | } else { |
| 49 | newFilter := NewPerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewPerDomainFilter().(f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.) |
| 50 | newFilter.IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#IsCalibrated. = true |
| 51 | f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[host] = newFilter |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | func NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name string, value string) (ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#, error) { |
| 56 | if name == "status" { |
| 57 | return NewStatusFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewStatusFilter().(value) |
| 58 | } |
| 59 | if name == "size" { |
| 60 | return NewSizeFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewSizeFilter().(value) |
| 61 | } |
| 62 | if name == "word" { |
| 63 | return NewWordFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewWordFilter().(value) |
| 64 | } |
| 65 | if name == "line" { |
| 66 | return NewLineFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewLineFilter().(value) |
| 67 | } |
| 68 | if name == "regexp" { |
| 69 | return NewRegexpFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewRegexpFilter().(value) |
| 70 | } |
| 71 | if name == "time" { |
| 72 | return NewTimeFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewTimeFilter().(value) |
| 73 | } |
| 74 | return nil, fmtscip-go gomod github.com/golang/go/src go1.18 fmt/.Errorfscip-go gomod github.com/golang/go/src go1.18 fmt/Errorf().("Could not create filter with name %s", name) |
| 75 | } |
| 76 | |
| 77 | //AddFilter adds a new filter to MatcherManager |
| 78 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) AddFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#AddFilter().(name string, option string, replace bool) error { |
| 79 | f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Lockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Lock().() |
| 80 | defer f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Unlockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Unlock().() |
| 81 | newf, err := NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name, option) |
| 82 | if err == nil { |
| 83 | // valid filter create or append |
| 84 | if f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.[name] == nil || replace { |
| 85 | f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.[name] = newf |
| 86 | } else { |
| 87 | newoption := f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.[name].Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + "," + option |
| 88 | newerf, err := NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name, newoption) |
| 89 | if err == nil { |
| 90 | f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.[name] = newerf |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | return err |
| 95 | } |
| 96 | |
| 97 | //AddPerDomainFilter adds a new filter to PerDomainFilter configuration |
| 98 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) AddPerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#AddPerDomainFilter().(domain string, name string, option string) error { |
| 99 | f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Lockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Lock().() |
| 100 | defer f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Unlockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Unlock().() |
| 101 | var pdFilters *PerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter# |
| 102 | if filter, ok := f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[domain]; ok { |
| 103 | pdFilters = filter |
| 104 | } else { |
| 105 | pdFilters = NewPerDomainFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewPerDomainFilter().(f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters.) |
| 106 | } |
| 107 | newf, err := NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name, option) |
| 108 | if err == nil { |
| 109 | // valid filter create or append |
| 110 | if pdFilters.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters.[name] == nil { |
| 111 | pdFilters.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters.[name] = newf |
| 112 | } else { |
| 113 | newoption := pdFilters.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters.[name].Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + "," + option |
| 114 | newerf, err := NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name, newoption) |
| 115 | if err == nil { |
| 116 | pdFilters.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters.[name] = newerf |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[domain] = pdFilters |
| 121 | return err |
| 122 | } |
| 123 | |
| 124 | //RemoveFilter removes a filter of a given type |
| 125 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) RemoveFilterscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#RemoveFilter().(name string) { |
| 126 | f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Lockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Lock().() |
| 127 | defer f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Unlockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Unlock().() |
| 128 | delete(f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters., name) |
| 129 | } |
| 130 | |
| 131 | //AddMatcher adds a new matcher to Config |
| 132 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) AddMatcherscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#AddMatcher().(name string, option string) error { |
| 133 | f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Lockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Lock().() |
| 134 | defer f.Mutexscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Mutex..Unlockscip-go gomod github.com/golang/go/src go1.18 sync/Mutex#Unlock().() |
| 135 | newf, err := NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name, option) |
| 136 | if err == nil { |
| 137 | // valid filter create or append |
| 138 | if f.Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers.[name] == nil { |
| 139 | f.Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers.[name] = newf |
| 140 | } else { |
| 141 | newoption := f.Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers.[name].Reprscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider#Repr.() + "," + option |
| 142 | newerf, err := NewFilterByNamescip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/NewFilterByName().(name, newoption) |
| 143 | if err == nil { |
| 144 | f.Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers.[name] = newerf |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | return err |
| 149 | } |
| 150 | |
| 151 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) GetFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#GetFilters().() map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider# { |
| 152 | return f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters. |
| 153 | } |
| 154 | |
| 155 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) GetMatchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#GetMatchers().() map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider# { |
| 156 | return f.Matchersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Matchers. |
| 157 | } |
| 158 | |
| 159 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) FiltersForDomainscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#FiltersForDomain().(domain string) map[string]ffufscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/.FilterProviderscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/ffuf`/FilterProvider# { |
| 160 | if f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[domain] == nil { |
| 161 | return f.Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Filters. |
| 162 | } |
| 163 | return f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[domain].Filtersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#Filters. |
| 164 | } |
| 165 | |
| 166 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) CalibratedForDomainscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#CalibratedForDomain().(domain string) bool { |
| 167 | if f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[domain] != nil { |
| 168 | return f.PerDomainFiltersscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#PerDomainFilters.[domain].IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/PerDomainFilter#IsCalibrated. |
| 169 | } |
| 170 | return false |
| 171 | } |
| 172 | |
| 173 | func (f *MatcherManagerscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#) Calibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#Calibrated().() bool { |
| 174 | return f.IsCalibratedscip-go gomod github.com/ffuf/ffuf/v2 . `github.com/ffuf/ffuf/v2/pkg/filter`/MatcherManager#IsCalibrated. |
| 175 | } |