mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 19:08:24 +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)
|
-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)
|
-m, --max-distance int Maximum Levenshtein distance for matching usernames & emails (only for deep scan) (default 20)
|
||||||
-S, --silent Suppress all non-essential output
|
-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
|
-h, --hide-avatar Hide the avatar in the output
|
||||||
-j, --json string Write results to specified JSON file
|
-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)
|
result.Commits = recon.Commits(settings)
|
||||||
printStruct(settings, result.Commits, 0)
|
printStruct(settings, result.Commits, 0)
|
||||||
|
|
||||||
|
if settings.SpoofEmail {
|
||||||
printTitle(settings.Silent, "🎭 Spoofing test")
|
printTitle(settings.Silent, "🎭 Spoofing test")
|
||||||
result.Spoofing = recon.Spoofing(settings)
|
result.Spoofing = recon.Spoofing(settings)
|
||||||
printStruct(settings, result.Spoofing, 0)
|
printStruct(settings, result.Spoofing, 0)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ type Settings struct {
|
|||||||
DeepScan bool
|
DeepScan bool
|
||||||
MaxDistance int
|
MaxDistance int
|
||||||
HideAvatar bool
|
HideAvatar bool
|
||||||
|
SpoofEmail bool
|
||||||
|
|
||||||
// Internal
|
// Internal
|
||||||
Client *github.Client
|
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.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.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")
|
flag.StringVarP(&settings.JsonOutput, "json", "j", "", "Write results to specified JSON file")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user