mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c460e5c24f | ||
|
|
e572d1326a | ||
|
|
0017d649d3 |
@@ -82,7 +82,7 @@ func DeepScan(s github_recon_settings.Settings) (response DeepScanResult) {
|
||||
}
|
||||
|
||||
repositories = append(repositories, Repositorie{
|
||||
Repository: repo.GetCloneURL(),
|
||||
Repository: repo.GetHTMLURL(),
|
||||
Owner: repo.GetOwner().GetLogin(),
|
||||
Name: repo.GetName(),
|
||||
Size: repo.GetSize(),
|
||||
|
||||
@@ -39,6 +39,9 @@ func Username(settings github_recon_settings.Settings) (result UsernameResult, e
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
if result.User == (UserResult{}) {
|
||||
return
|
||||
}
|
||||
utils.PrintAvatar(settings, result.User.AvatarURL)
|
||||
utils.PrintStruct(settings, result.User, 0)
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ func Orgs(s github_recon_settings.Settings) (response OrgsResult) {
|
||||
for _, org := range orgs {
|
||||
o := OrgResult{
|
||||
Name: org.GetLogin(),
|
||||
URL: org.GetURL(),
|
||||
URL: org.GetHTMLURL(),
|
||||
Description: org.GetDescription(),
|
||||
}
|
||||
response = append(response, o)
|
||||
|
||||
@@ -34,7 +34,7 @@ type UserResult struct {
|
||||
func User(s github_recon_settings.Settings) (response UserResult, err error) {
|
||||
user, resp, err := s.Client.Users.Get(s.Ctx, s.Target)
|
||||
if resp.StatusCode == 404 {
|
||||
return UserResult{}, fmt.Errorf("user not found with username: %s", s.Target)
|
||||
return UserResult{}, nil
|
||||
}
|
||||
if err != nil {
|
||||
return UserResult{}, fmt.Errorf("failed to fetch user's information")
|
||||
|
||||
Reference in New Issue
Block a user