()
| 47 | } |
| 48 | |
| 49 | func (match MatchFile) CanCheckEntropy() bool { |
| 50 | if match.Filename == "id_rsa" { |
| 51 | return false |
| 52 | } |
| 53 | |
| 54 | for _, skippableExt := range session.Config.BlacklistedEntropyExtensions { |
| 55 | if match.Extension == skippableExt { |
| 56 | return false |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | return true |
| 61 | } |
| 62 | |
| 63 | func GetMatchingFiles(dir string) []MatchFile { |
| 64 | fileList := make([]MatchFile, 0) |
no outgoing calls
no test coverage detected