From 786e61fcaa71da7d4bba97ee91b2d290cf8f43ac Mon Sep 17 00:00:00 2001 From: gilfoyle97 Date: Fri, 11 Feb 2022 19:59:21 +0100 Subject: [PATCH] Update extensions.go --- scanner/extensions.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scanner/extensions.go b/scanner/extensions.go index 2d4348c..d7e7422 100644 --- a/scanner/extensions.go +++ b/scanner/extensions.go @@ -24,21 +24,27 @@ along with this program. If not, see http://www.gnu.org/licenses/. package scanner //FileType struct +// Extension = the file extension (doc, txt ..etc..) +// Severity = the 'importance' of the file found. Higher is better type FileType struct { Extension string Severity int } //FileTypeMatched struct +// Filetype = Filetype struct +// Url = url of the file found type FileTypeMatched struct { Filetype FileType Url string } -//GetExtensions returns the useful extensions +//GetExtensions returns all the extension structs func GetExtensions() []FileType { //extensions contains a list of known extensions //and the TYPICAL (also say `in general`) associated severity. + //Why in general? Because a python file can be anything, it can + //contain secret data or not. var extensions = []FileType{ {"key", 1}, {"env", 1},