众所周知,当今是大数据时代,大规模数据泄露事情一直在发生,从未停止过,但有些人不知道的是很多时候一些敏感信息的泄露其实是我们自己无意中造成的,然而一个小疏忽,往往却造成一系列连锁反应……
Github上敏感信息的泄露,就是一个典型的例子,Github虽然方便开发者,但其中也埋藏着一些安全隐患。
各种姿势:
site:Github.com smtp site:Github.com smtp @qq.com site:Github.com smtp @126.com site:Github.com smtp @163.com site:Github.com smtp @sina.com.cn site:Github.com smtp password site:Github.com String password smtp……
我们也可以锁定域名搜索结合厂商域名灵活运用
例如搜百度的
site:Github.com smtp @baidu.com
各种姿势:
site:Github.com sa password site:Github.com root password site:Github.com User ID='sa';Password
各种姿势:
site:Github.com svn site:Github.com svn username site:Github.com svn password site:Github.com svn username password
各种姿势:
site:Github.cominurl:sql
……
这个往往能收到不少好东西一个数据库备份文件从而找到后台管理员账号密码 找到地址登陆后台这样的例子有不少
各种姿势:
site:Github.com password site:Github.com ftp ftppassword site:Github.com 密码 site:Github.com 内部
regex_matches.py
to_match =[ {'match_regex' : r'password', 'match_type': 'PasswordMatch'}, {'match_regex': r'\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}', 'match_type':'IPMatch'}, {'match_regex': r'username', 'match_type': 'UsernameMatch'}, {'match_regex': r'\b[\w.]*@[\w]*\.[\w.]*\b', 'match_type': 'EmailMatch'} ]
r_whitelist = [{'regex':r'\b[A-Za-z][a-z]+([A-Z][a-z]*)+\b'}] # Camel Case
环境要求:
Python3.6+Pipfor Python3GitMySQL8.0
wget-c https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.debsudo dpkg -i mysql-apt-config_0.8.12-1_all.deb#select version 8.0sudo apt updatesudo apt install mysql-serversudo mysql_secure_installation
Ubuntu18.04 安装步骤
git clone https://github.com/deepdivesec/GitMAD.gitcd GitMAD
pip3 install -r requirements.txt
$sudo mysql -u username -pmysql> source /<path-to-gitmad>/GitMAD/github_search_db.sql
python3 /<path-to-gitmad>/GitMAD/main.py -q <keyword-to-search> [seeother options below]
python3 /<path-to-gitmad>/GitMAD/web_home.py6)(可选)下载并安装MySQLWorkbench与结果直接进行交互。
Ubuntu安装动图请在此处查看:https://github.com/deepdivesec/GitMAD/tree/master/GitMAD-install
weakfilescan
Python开发,多线程,猪猪侠开发中文注释,个性化定制,需要beautifulsoup4用于渗透人员在对网站进行网站渗透时查找敏感文件(配置文件、临时文件)、敏感目录,会首先爬取目标站点的三层目录资源,生成目录FUZZ和文件FUZZ
https://github.com/ring04h/weakfilescan
GitPrey
Python开发,国人开发中文支持,用于企业搜索关键词,及时发现潜在的敏感信息,需要登录https://github.com/repoog/GitPrey