Skip to content

Commit

Permalink
Merge pull request #67 from edoardottt/devel
Browse files Browse the repository at this point in the history
v1.1.8
  • Loading branch information
edoardottt authored Sep 4, 2022
2 parents 5aae4d9 + 9b6cef5 commit 70aa7da
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crawler/colly.go
Original file line number Diff line number Diff line change
Expand Up @@ -480,8 +480,7 @@ func huntExtensions(target string, severity int) scanner.FileTypeMatched {
target = target[:firstIndex]
}

i := strings.LastIndex(target, ".")
if i >= 0 && strings.ToLower(target[i:]) == "."+ext.Extension {
if strings.ToLower(target[len(target)-len("."+ext.Extension):]) == "."+ext.Extension {
extension = scanner.FileTypeMatched{Filetype: ext, URL: copyTarget}
}
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
==========
Cariddi v1.1.7
Cariddi v1.1.8
==========
This program is free software: you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion output/beautify.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func Beautify() {
banner2 := " ___ __ _ _ __(_) __| | __| (_)\n"
banner3 := " / __/ _` | '__| |/ _` |/ _` | |\n"
banner4 := " | (_| (_| | | | | (_| | (_| | |\n"
banner5 := " \\___\\__,_|_| |_|\\__,_|\\__,_|_| v1.1.7\n"
banner5 := " \\___\\__,_|_| |_|\\__,_|\\__,_|_| v1.1.8\n"
banner6 := ""
banner7 := " > github.com/edoardottt/cariddi\n"
banner8 := " > edoardoottavianelli.it\n"
Expand Down
4 changes: 4 additions & 0 deletions scanner/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ func GetExtensions() []FileType {
{"json", 3},
{"zip", 3},
{"tar", 3},
{"tar.bz2", 3},
{"tar.gz", 3},
{"rar", 3},
{"7z", 3},
{"gz", 3},
{"dochtml", 3},
{"doc", 4},
Expand Down

0 comments on commit 70aa7da

Please sign in to comment.