Skip to content

A tiny batch web site screenshot tool -- 批量网站截图工具

Notifications You must be signed in to change notification settings

imp0wd3r/Screenshots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshots

A tiny batch web site screenshot tool -- 批量网站截图工具

使用无界面浏览器引擎批量地对页面进行渲染并截图,辅助渗透测试人员进行网站指纹识别。

Installation

安装puppeteer及其相关依赖:https://github.com/GoogleChrome/puppeteer

git clone https://github.com/imp0wd3r/Screenshots

Usage

*nix

bash screenshot.sh /tmp/urls.txt result

Windows ( powershell )

Set-ExecutionPolicy Bypass -Scope Process
 .\screenshot.ps1 -Targets C:\Users\p0wd3r\Desktop\urls.txt -Result result

-Targets参数的值需为绝对路径

执行上述命令后,结果会保存在result目录中

Example

example

Technical details

通过puppeteer调用Headless Chrome对页面进行渲染并截图,直接使用screenshot.js对单个文件中的多目标进行截图会大量消耗资源,所以通过bash/powershell脚本将目标文件分割成多个小文件再调用screenshot.js对其进行渲染。

Reference

https://github.com/GoogleChrome/puppeteer

https://www.reddit.com/r/PowerShell/comments/6h86xn/how_to_split_file_by_of_lines_in_text_file/

About

A tiny batch web site screenshot tool -- 批量网站截图工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published