mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
skip email spoofing if no token provided
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -26,8 +26,12 @@ func email(settings github_recon_settings.Settings, datetime string) {
|
|||||||
printStruct(settings, result.Commits, 0)
|
printStruct(settings, result.Commits, 0)
|
||||||
|
|
||||||
if settings.SpoofEmail {
|
if settings.SpoofEmail {
|
||||||
|
if settings.Token == "null" {
|
||||||
|
settings.Logger.Warn("Skipping email spoofing test, please provide a Github token")
|
||||||
|
} else {
|
||||||
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)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user