JSFinder的使用說明
JSFinder是一款用作快速在網站的js檔案中提取URL,子域名的工具,
提取URL的正則部分使用的是LinkFinder
JSFinder獲取URL和子域名的方式:

Blog: https://threezh1.com/
用法:
簡單爬取
python JSFinder.py -u http://www.xx.com
這個命令會爬取 http://www.xx.com 這單個頁面的所有的js鏈接,并在其中發現url和子域名
回傳示例:

深度爬取
python JSFinder.py -u http://www.mi.com -d
深入一層頁面爬取JS,時間會消耗的更長,
建議使用-ou 和 -os來指定保存URL和子域名的檔案名, 例如:
python JSFinder.py -u http://www.mi.com -d -ou mi_url.txt -os mi_subdomain.txt
回傳示例:

批量指定URL/指定JS
指定URL:
python JSFinder.py -f text.txt
指定JS:
python JSFinder.py -f text.txt -j
可以用brupsuite爬取網站后提取出URL或者JS鏈接,保存到txt檔案中,一行一個,
指定URL或JS就不需要加深度爬取,單個頁面即可,
其他
-c 指定cookie來爬取頁面 例:
python JSFinder.py -u http://www.mi.com -c "session=xxx"
-ou 指定檔案名保存URL鏈接 例:
python JSFinder.py -u http://www.mi.com -ou mi_url.txt
-os 指定檔案名保存子域名 例:
python JSFinder.py -u http://www.mi.com -os mi_subdomain.txt
注意:
url 不用加引號
url 需要http:// 或 https://
指定JS檔案爬取時,回傳的URL為相對URL
指定URL檔案爬取時,回傳的相對URL都會以指定的第一個鏈接的域名作為其域名來轉化為絕對URL,
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/327869.html
標籤:其他
