github-email:通過github帳號查某人可能的郵箱

https://github.com/paulirish/github-email/

Retrieve a GitHub user’s email even though it’s not public

Emails from recent commits

每一個commit都會生成event,可以在github的api查到。(即便刪除那個commit,event裏依然有。。。

curl https://api.github.com/users/$user/events|sed -nE 's#^.*"(email)": "([^"]+)",.*$#\2#p'|sort -u

Emails from owned-repo recent activity

最近的擁有的項目,中的參與人的郵箱。

curl "https://api.github.com/users/$user/repos?type=owner&sort=updated" -s \
        | sed -nE 's#^.*"name": "([^"]+)",.*$#\1#p' \
        | head -n1

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章