mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
@@ -114,6 +114,7 @@ github-recon [--flags value] target_username_or_email
|
||||
-s, --show-source Show where the information (authors, emails, etc) were found (only for deep scan)
|
||||
-m, --max-distance int Maximum Levenshtein distance for matching usernames & emails (only for deep scan) (default 20)
|
||||
-S, --silent Suppress all non-essential output
|
||||
--spoof-email Spoof email (only for email mode) (default true)
|
||||
-h, --hide-avatar Hide the avatar in the output
|
||||
-j, --json string Write results to specified JSON file
|
||||
```
|
||||
|
||||
@@ -25,7 +25,9 @@ func email(settings github_recon_settings.Settings, datetime string) {
|
||||
result.Commits = recon.Commits(settings)
|
||||
printStruct(settings, result.Commits, 0)
|
||||
|
||||
if settings.SpoofEmail {
|
||||
printTitle(settings.Silent, "🎭 Spoofing test")
|
||||
result.Spoofing = recon.Spoofing(settings)
|
||||
printStruct(settings, result.Spoofing, 0)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,7 @@ type Settings struct {
|
||||
DeepScan bool
|
||||
MaxDistance int
|
||||
HideAvatar bool
|
||||
SpoofEmail bool
|
||||
|
||||
// Internal
|
||||
Client *github.Client
|
||||
@@ -94,6 +95,7 @@ func GetSettings() (settings Settings) {
|
||||
)
|
||||
|
||||
flag.BoolVarP(&settings.Silent, "silent", "S", false, "Suppress all non-essential output")
|
||||
flag.BoolVarP(&settings.SpoofEmail, "spoof-email", "", true, "Spoof email (only for email mode)")
|
||||
flag.BoolVarP(&settings.HideAvatar, "hide-avatar", "h", false, "Hide the avatar in the output")
|
||||
flag.StringVarP(&settings.JsonOutput, "json", "j", "", "Write results to specified JSON file")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user