mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
+1
-1
@@ -10,7 +10,7 @@ type EmailResult struct {
|
|||||||
Target string
|
Target string
|
||||||
TargetType github_recon_settings.TargetType
|
TargetType github_recon_settings.TargetType
|
||||||
|
|
||||||
Commit recon.EmailsResult
|
Commit recon.CommitsResult
|
||||||
}
|
}
|
||||||
|
|
||||||
func email(settings github_recon_settings.Settings, datetime string) {
|
func email(settings github_recon_settings.Settings, datetime string) {
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ import (
|
|||||||
"github.com/google/go-github/v72/github"
|
"github.com/google/go-github/v72/github"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EmailsResult []EmailResult
|
type CommitsResult []CommitResult
|
||||||
|
|
||||||
type EmailResult struct {
|
type CommitResult struct {
|
||||||
Name string
|
Name string
|
||||||
Email string
|
Email string
|
||||||
Username string
|
Username string
|
||||||
@@ -18,8 +18,8 @@ type EmailResult struct {
|
|||||||
FirstFoundIn string
|
FirstFoundIn string
|
||||||
}
|
}
|
||||||
|
|
||||||
func Email(s github_recon_settings.Settings) (response EmailsResult) {
|
func Email(s github_recon_settings.Settings) (response CommitsResult) {
|
||||||
results := make(map[string]EmailResult)
|
results := make(map[string]CommitResult)
|
||||||
|
|
||||||
collect := func(date string) error {
|
collect := func(date string) error {
|
||||||
for page := 1; page <= 10; page++ {
|
for page := 1; page <= 10; page++ {
|
||||||
@@ -50,7 +50,7 @@ func Email(s github_recon_settings.Settings) (response EmailsResult) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if _, seen := results[name+" - "+email+" - "+login]; !seen {
|
if _, seen := results[name+" - "+email+" - "+login]; !seen {
|
||||||
author := EmailResult{
|
author := CommitResult{
|
||||||
Name: name,
|
Name: name,
|
||||||
Email: email,
|
Email: email,
|
||||||
Username: login,
|
Username: login,
|
||||||
|
|||||||
Reference in New Issue
Block a user