mirror of
https://github.com/anotherhadi/github-recon.git
synced 2026-10-05 10:58:25 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
53dd8ea2d5 | ||
|
|
832e996708 | ||
|
|
8528fe5732 | ||
|
|
85ee3a6333 | ||
|
|
cb694d896d | ||
|
|
1dfa0c1620 | ||
|
|
ef0240fd65 | ||
|
|
d88bc6ae1e | ||
|
|
c460e5c24f | ||
|
|
e572d1326a |
@@ -195,8 +195,9 @@ privacy and security:
|
|||||||
information.
|
information.
|
||||||
- **Manage email exposure**: Use GitHub's settings to control which email
|
- **Manage email exposure**: Use GitHub's settings to control which email
|
||||||
addresses are visible on your profile and in commit history. You can also use
|
addresses are visible on your profile and in commit history. You can also use
|
||||||
a no-reply email address for commits. Delete/modify any sensitive information
|
a no-reply email address for commits, and an
|
||||||
in your commit history.
|
[alias email](https://proton.me/support/addresses-and-aliases) for your
|
||||||
|
account. Delete/modify any sensitive information in your commit history.
|
||||||
- **Be Mindful of Repository Content**: Avoid including sensitive information in
|
- **Be Mindful of Repository Content**: Avoid including sensitive information in
|
||||||
your repositories, such as API keys, passwords, emails or personal data. Use
|
your repositories, such as API keys, passwords, emails or personal data. Use
|
||||||
`.gitignore` to exclude files that contain sensitive information.
|
`.gitignore` to exclude files that contain sensitive information.
|
||||||
|
|||||||
Generated
+3
-3
@@ -2,11 +2,11 @@
|
|||||||
"nodes": {
|
"nodes": {
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756787288,
|
"lastModified": 1758427187,
|
||||||
"narHash": "sha256-rw/PHa1cqiePdBxhF66V7R+WAP8WekQ0mCDG4CFqT8Y=",
|
"narHash": "sha256-pHpxZ/IyCwoTQPtFIAG2QaxuSm8jWzrzBGjwQZIttJc=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "d0fc30899600b9b3466ddb260fd83deb486c32f1",
|
"rev": "554be6495561ff07b6c724047bdd7e0716aa7b46",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
(system: f system (import nixpkgs {inherit system;}));
|
(system: f system (import nixpkgs {inherit system;}));
|
||||||
|
|
||||||
pname = "github-recon";
|
pname = "github-recon";
|
||||||
version = "2.1.0";
|
version = "1.5.3";
|
||||||
|
|
||||||
ldflags = ["-s" "-w"];
|
ldflags = ["-s" "-w"];
|
||||||
in {
|
in {
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
cp $GOPATH/bin/cmd $out/bin/github-recon
|
cp $GOPATH/bin/cmd $out/bin/github-recon
|
||||||
'';
|
'';
|
||||||
|
|
||||||
vendorHash = "sha256-AD0h0k2n8gPqSBz5qqb0ZON/jWiSEWpeO97xR7cYSy8=";
|
vendorHash = "sha256-16mRhQyoyY3M98cWBURsEvvwVT6aR3JWk8YfAFNfm/A=";
|
||||||
|
|
||||||
meta = with pkgs.lib; {
|
meta = with pkgs.lib; {
|
||||||
description = "Retrieves and aggregates public OSINT data about a Github user using Go and the Github API. Finds hidden emails in commit history, previous usernames, friends, other Github accounts, and more.";
|
description = "Retrieves and aggregates public OSINT data about a Github user using Go and the Github API. Finds hidden emails in commit history, previous usernames, friends, other Github accounts, and more.";
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ func DeepScan(s github_recon_settings.Settings) (response DeepScanResult) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories = append(repositories, Repositorie{
|
repositories = append(repositories, Repositorie{
|
||||||
Repository: repo.GetCloneURL(),
|
Repository: repo.GetHTMLURL(),
|
||||||
Owner: repo.GetOwner().GetLogin(),
|
Owner: repo.GetOwner().GetLogin(),
|
||||||
Name: repo.GetName(),
|
Name: repo.GetName(),
|
||||||
Size: repo.GetSize(),
|
Size: repo.GetSize(),
|
||||||
|
|||||||
@@ -39,6 +39,9 @@ func Username(settings github_recon_settings.Settings) (result UsernameResult, e
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if result.User == (UserResult{}) {
|
||||||
|
return
|
||||||
|
}
|
||||||
utils.PrintAvatar(settings, result.User.AvatarURL)
|
utils.PrintAvatar(settings, result.User.AvatarURL)
|
||||||
utils.PrintStruct(settings, result.User, 0)
|
utils.PrintStruct(settings, result.User, 0)
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ func Orgs(s github_recon_settings.Settings) (response OrgsResult) {
|
|||||||
for _, org := range orgs {
|
for _, org := range orgs {
|
||||||
o := OrgResult{
|
o := OrgResult{
|
||||||
Name: org.GetLogin(),
|
Name: org.GetLogin(),
|
||||||
URL: org.GetURL(),
|
URL: org.GetHTMLURL(),
|
||||||
Description: org.GetDescription(),
|
Description: org.GetDescription(),
|
||||||
}
|
}
|
||||||
response = append(response, o)
|
response = append(response, o)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module github.com/anotherhadi/github-recon
|
module github.com/anotherhadi/github-recon
|
||||||
|
|
||||||
go 1.24.5
|
go 1.25.0
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/charmbracelet/lipgloss v1.1.0
|
github.com/charmbracelet/lipgloss v1.1.0
|
||||||
@@ -26,6 +26,6 @@ require (
|
|||||||
github.com/rivo/uniseg v0.4.7 // indirect
|
github.com/rivo/uniseg v0.4.7 // indirect
|
||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
|
||||||
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
|
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
|
||||||
golang.org/x/image v0.28.0 // indirect
|
golang.org/x/image v0.38.0 // indirect
|
||||||
golang.org/x/sys v0.30.0 // indirect
|
golang.org/x/sys v0.30.0 // indirect
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -48,8 +48,8 @@ github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e h1:JVG44RsyaB9T2KIHavM
|
|||||||
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e/go.mod h1:RbqR21r5mrJuqunuUZ/Dhy/avygyECGrLceyNeo4LiM=
|
||||||
golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI=
|
golang.org/x/exp v0.0.0-20231006140011-7918f672742d h1:jtJma62tbqLibJ5sFQz8bKtEM8rJBtfilJ2qTU199MI=
|
||||||
golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo=
|
golang.org/x/exp v0.0.0-20231006140011-7918f672742d/go.mod h1:ldy0pHrwJyGW56pPQzzkH36rKxoZW1tw7ZJpeKx+hdo=
|
||||||
golang.org/x/image v0.28.0 h1:gdem5JW1OLS4FbkWgLO+7ZeFzYtL3xClb97GaUzYMFE=
|
golang.org/x/image v0.38.0 h1:5l+q+Y9JDC7mBOMjo4/aPhMDcxEptsX+Tt3GgRQRPuE=
|
||||||
golang.org/x/image v0.28.0/go.mod h1:GUJYXtnGKEUgggyzh+Vxt+AviiCcyiwpsl8iQ8MvwGY=
|
golang.org/x/image v0.38.0/go.mod h1:/3f6vaXC+6CEanU4KJxbcUZyEePbyKbaLoDOe4ehFYY=
|
||||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||||
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
|
golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc=
|
||||||
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ func GetSettings() (settings Settings, err error) {
|
|||||||
settings = GetDefaultSettings()
|
settings = GetDefaultSettings()
|
||||||
//// Flag settings
|
//// Flag settings
|
||||||
flag.Usage = func() {
|
flag.Usage = func() {
|
||||||
fmt.Fprintf(os.Stderr, "Usage of %s:\n", os.Args[0])
|
fmt.Fprintf(os.Stderr, "Usage:\n", os.Args[0])
|
||||||
fmt.Fprintf(os.Stderr, "github-recon [flags] <target username or email>\n")
|
fmt.Fprintf(os.Stderr, "github-recon [flags] <target username or email>\n")
|
||||||
fmt.Fprintf(os.Stderr, "\n")
|
fmt.Fprintf(os.Stderr, "\n")
|
||||||
fmt.Fprintf(os.Stderr, "Flags:\n")
|
fmt.Fprintf(os.Stderr, "Flags:\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user