add the --spoof-email toggle

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2025-08-23 10:50:02 +02:00
parent 6b11b26678
commit 7037ec0864
3 changed files with 8 additions and 3 deletions
+1
View File
@@ -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
```
+5 -3
View File
@@ -25,7 +25,9 @@ func email(settings github_recon_settings.Settings, datetime string) {
result.Commits = recon.Commits(settings)
printStruct(settings, result.Commits, 0)
printTitle(settings.Silent, "🎭 Spoofing test")
result.Spoofing = recon.Spoofing(settings)
printStruct(settings, result.Spoofing, 0)
if settings.SpoofEmail {
printTitle(settings.Silent, "🎭 Spoofing test")
result.Spoofing = recon.Spoofing(settings)
printStruct(settings, result.Spoofing, 0)
}
}
+2
View File
@@ -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")