mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
Init v2, rewrite
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
github_recon_settings "github.com/anotherhadi/github-recon/settings"
|
||||
)
|
||||
|
||||
func main() {
|
||||
settings := github_recon_settings.GetSettings()
|
||||
datetime := time.Now().String()
|
||||
|
||||
if !settings.Silent {
|
||||
header()
|
||||
|
||||
printStruct(settings, struct {
|
||||
Target string
|
||||
TargetType string
|
||||
DateTime string
|
||||
}{
|
||||
Target: settings.Target,
|
||||
TargetType: string(settings.TargetType),
|
||||
DateTime: datetime,
|
||||
}, 0)
|
||||
}
|
||||
|
||||
if settings.TargetType == github_recon_settings.TargetUsername {
|
||||
username(settings, datetime)
|
||||
} else {
|
||||
email(settings, datetime)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user