【笔记】Glass学习笔记

前言

Glass为s7ck Team 红队武器库F-Box里的一款信息收集工具。(Github

下载项目

1
2
git clone https://github.com/s7ckTeam/Glass
cd Glass

下载依赖

1
pip3 install -r requirements.txt

去除Python版本检测

  • 确保Python版本大于等于3.7.3
  • 注释console.py文件的23~25行代码
console.py
1
2
3
4
# if pyVersion < "3.7.3":
# logger.error(
# "此Python版本 ('{0}') 不兼容,成功运行Glass你必须使用版本 >= 3.7.3 (访问 ‘https://www.python.org/downloads/’)".format(pyVersion))
# exit(0)

配置API Key

config/config.py
1
2
3
4
5
6
7
8
9
zoomeyeApi = ""

fofaApi = {
"email": "",
"key": "",
}

quakeApi = ""
shodanApi = ""

信息收集

-s <terrace>:指定搜索引擎

fofa:缺省值,Fofa
eye:钟馗之眼
qk:Quake

指定ip

1
python3 Glass.py -i 127.0.0.1
1
python3 Glass.py -i 127.0.0.0/24

指定ip列表

<filename>.txt:ip列表文件,每行一个ip地址

1
python3 Glass.py -f <filename>.txt

指定url

1
python3 Glass.py -u https://example.com/

指定url列表

<filename>.txt:url列表文件,每行一个url链接

1
python3 Glass.py -w <filename>.txt

完成

参考文献

哔哩哔哩——逆风微笑的代码狗