.js Files Are Your Friends | @zseano

https://www.youtube.com/watch?v=fQoxjBwQZUA&t=226s

javascript:(function(){var scripts=document.getElementsByTagName("script"),regex=/(?<=(\"|\'|\`))\/[a-zA-Z0-9_?&=\/\-\#\.]*(?=(\"|\'|\`))/g;const results=new Set;for(var i=0;i<scripts.length;i++){var t=scripts[i].src;""!=t&&fetch(t).then(function(t){return t.text()}).then(function(t){var e=t.matchAll(regex);for(let r of e)results.add(r[0])}).catch(function(t){console.log("An error occurred: ",t)})}var pageContent=document.documentElement.outerHTML,matches=pageContent.matchAll(regex);for(const match of matches)results.add(match[0]);function writeResults(){results.forEach(function(t){document.write(t+"<br>")})}setTimeout(writeResults,3e3);})();

image

所有文件里面搜索发现的端点(比如功能性端点中登录页中存在的其他端点)
image

现在使用以上方法而不是,js文件批量化?https://github.com/zseano/JS-Scan?
进阶意识如下:
更有针对性的测试,而不是一次性模糊许多端点。
没有使用(https://github.com/zseano/JS-Scan) ,所以比较费时,但更喜欢手动的方法,并且理解你想要的东西&测试。

只在范围内显示js,复制所有urls保存,联动SecretFinder.py
image

python3 SecretFinder.py -i https://example.com/1.js -o results.html

-i INPUT, --input INPUT
                        Input a: URL, file or folder
posted @   sec875  阅读(121)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· 一起来玩mcp_server_sqlite,让AI帮你做增删改查!!
点击右上角即可分享
微信分享提示