Live data from Hacker News

Osgint – OSINT tool to find information about GitHub user

github.com

21–28 of 28 posts

Re: Osgint – OSINT tool to find information about GitHub user

#21
Uh couldn't you use the Events API to more efficiently go through someone's recent commits?

    def findEmailFromContributor(username, repo, contributor):
        response = requests.get('https://github.com/%s/%s/commits?author=%s' % (username, repo, contributor), auth=HTTPBasicAuth(username, '')).text
        latestCommit = re.search(r'href="/%s/%s/commit/(.*?)"' % (username, repo), response)
        if latestCommit:
            latestCommit = latestCommit.group(1)
        else:
            latestCommit = 'dummy'
        commitDetails = requests.get('https://github.com/%s/%s/commit/%s.patch' % (username, repo, latestCommit), auth=HTTPBasicAuth(username, '')).text
        email = re.search(r'', commitDetails)

Re: Osgint – OSINT tool to find information about GitHub user

#25
post #20

You may not be the creator, but the intent of this repo appears to be at odds with GitHub's acceptable use policies. For anyone else dealing with recruiters or companies spamming you from your github commit email, it's reportable under information usage restrictions and privacy. https://docs.github.com/en/site-policy/acceptable-use-polici...

as a non-user, I'm not bound by their policies :3

also, don't they have an email masking option? i remember seeing some generated @github.com email in commit logs

Re: Osgint – OSINT tool to find information about GitHub user

#27
Correct me if I'm wrong, but isn't this feature already in Github API Tools?Project dashboards and contributors' e-mail addresses can already be seen in the free Github API Tools.At this point, the only advantage may be to compile all the information together.When data is requested in Json format, Github shares most of the data for free.

Re: Osgint – OSINT tool to find information about GitHub user

#28
post #20

You may not be the creator, but the intent of this repo appears to be at odds with GitHub's acceptable use policies. For anyone else dealing with recruiters or companies spamming you from your github commit email, it's reportable under information usage restrictions and privacy. https://docs.github.com/en/site-policy/acceptable-use-polici...

as a non-user, I'm not bound by their policies :3 also, don't they have an email masking option? i remember seeing some generated @github.com email in commit logs

That's right, you can enable that email by checking "Keep my email addresses private" at https://github.com/settings/emails#toggle_visibility_note
Post reply on HN