00:00
上午
周一
1月1日
枫-WIKI

LinkFinder

YOUZAI2023/06/21脚本探测安全工具

简介

LinkFinder 是一个 python 脚本,用于在 JavaScript 文件中发现端点及其参数。

下载

https://github.com/GerbenJavado/LinkFinderopen in new window

使用 kali 下载:

git clone https://github.com/GerbenJavado/LinkFinder.git
cd LinkFinder
python setup.py install

安装

pip3 install -r requirements.txt

参数

Short FormLong FormDescription
-i--inputInput a: URL, file or folder. For folders a wildcard can be used (e.g. '/*.js').
-o--output"cli" to print to STDOUT, otherwise where to save the HTML file Default: output.html
-r--regexRegEx for filtering purposes against found endpoints (e.g. ^/api/)
-d--domainToggle to use when analyzing an entire domain. Enumerates over all found JS files.
-b--burpToggle to use when inputting a Burp 'Save selected' file containing multiple JS files
-c--cookiesAdd cookies to the request
-h--helpshow the help message and exit

使用示例

  • 在线 JavaScript 文件中查找端点并将 HTML 结果输出到 results.HTML
python linkfinder.py -i https://example.com/1.js -o results.html
  • CLI/STDOUT 输出(不使用js美化程序,加快速度)
python linkfinder.py -i https://example.com/1.js -o cli
  • 分析整个域及其 JS 文件
python linkfinder.py -i https://example.com -d
  • Burp 输入(在目标中选择要保存的文件,右键单击“保存所选项目”,将该文件作为输入)
python linkfinder.py -i burpfile -b
  • 枚举 JavaScript 文件的整个文件夹,同时查找以 /api/ 开头的端点,最后将结果保存到 results.html
python linkfinder.py -i 'Desktop/*.js' -r ^/api/ -o results.html

Docker 部署

搭建镜像:

docker build -t linkfinder

启动容器:

docker run --rm -v $(pwd):/linkfinder/output linkfinder -i http://example.com/1.js -o /linkfinder/output/output.html

注意

请确保在输出路径中使用路径/linkfinder/output,否则容器退出时输出将丢失。


Last Updated 2023/6/23 23:07:00