Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add homoglyph map + remove IDN regexp
- Loading branch information
thomas.labarussias
committed
May 26, 2020
1 parent
963c05e
commit 466fd94
Showing
8 changed files
with
39 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
SlackWebhookURL: "" #Slack Webhook URL | ||
SlackIconURL: "" #Slack Icon (Avatar) URL | ||
SlackUsername: "" #Slack Username | ||
Regexp: ".*\\.fr$" #Regexp to match. Can't be empty. It uses Golang regexp format | ||
DomainName: test | ||
Workers: 20 #Number of workers for consuming stream from CertStream | ||
DisplayErrors: false #Enable/Disable display of errors in logs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package lib | ||
|
||
import ( | ||
"github.com/picatz/homoglyphr" | ||
) | ||
|
||
func getHomoglyphMap() map[string]string { | ||
alphabet := []string{"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"} | ||
homoglyph := map[string]string{} | ||
for _, letter := range alphabet { | ||
for i := range homoglyphr.StreamAllRelatedCharacters(letter) { | ||
homoglyph[i] = letter | ||
} | ||
} | ||
return homoglyph | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters