MiningGitlog介绍
用于在Github存储库中挖掘电子邮件地址的脚本。
用于在Github上仓库日志记录中采集邮件地址的脚本。
安装方法及依赖环境
- git clone https:
- cd MiningGitlog/
- pip3 install -r requirements.txt
- python3 MiningGitlog.py --help

使用方法
- usage: MiningGitlog.py [-h] [-u GIT_URL] [-d REPO_DIR] [-un USERNAME]
- [-on ORGNAME] [--debug DEBUG] [-t GITHUB_TOKEN]
- Mining mail information from git log.
- optional arguments:
- -h, --help show this help message and exit
- -u GIT_URL, --url GIT_URL
- The url address of the git repository
- -d REPO_DIR, --dir REPO_DIR
- Local address of the git repository
- -un USERNAME, --username USERNAME
- Please enter the github username
- -on ORGNAME, --orgname ORGNAME
- Please enter the github organization name
- --debug DEBUG Turn on debug mode
- -t GITHUB_TOKEN, --token GITHUB_TOKEN
- Please enter github token
扫描求最后保存查询查询结果在当前目录下的result文件中。
常用方法案例
注:需要从Github上的仓库中获取邮箱信息时,请通过-t参数指定Github_token值
收集指定Github的仓库提交记录中包含的邮箱信息:
python3 MiningGitlog.py -u https://github.com/vulhub/vulhub.git -t Github_token
收集指定Github的用户全部仓库提交记录中包含的邮箱信息:
python3 MiningGitlog.py -username omg2hei -t Github_token
收集指定Github上组织全部仓库提交记录中包含的邮箱信息:
python3 MiningGitlog.py -orgname twitter -t Github_token
收集本地的Git仓库提交记录中包含的邮箱信息:
python3 MiningGitlog.py -d ~/github-project/vulhub
展开内容