mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 19:08:24 +02:00
41 lines
888 B
Go
41 lines
888 B
Go
package main
|
|
|
|
import (
|
|
"log"
|
|
|
|
recon_email "github.com/anotherhadi/github-recon/github-recon/email"
|
|
recon_username "github.com/anotherhadi/github-recon/github-recon/username"
|
|
github_recon_settings "github.com/anotherhadi/github-recon/settings"
|
|
"github.com/anotherhadi/github-recon/utils"
|
|
)
|
|
|
|
func main() {
|
|
settings, err := github_recon_settings.GetSettings()
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
|
|
if !settings.Silent {
|
|
utils.Header()
|
|
|
|
utils.PrintStruct(settings, struct {
|
|
Target string
|
|
TargetType string
|
|
}{
|
|
Target: settings.Target,
|
|
TargetType: string(settings.TargetType),
|
|
}, 0)
|
|
}
|
|
|
|
if settings.TargetType == github_recon_settings.TargetUsername {
|
|
result, err := recon_username.Username(settings)
|
|
if err != nil {
|
|
log.Fatal(err)
|
|
}
|
|
writeJson(settings, result)
|
|
} else {
|
|
result := recon_email.Email(settings)
|
|
writeJson(settings, result)
|
|
}
|
|
}
|