Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

无法爬取vue项目的地址 #109

Open
gjm-anban opened this issue Jun 29, 2022 · 2 comments
Open

无法爬取vue项目的地址 #109

gjm-anban opened this issue Jun 29, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@gjm-anban
Copy link

你好,我这边尝试爬取了几个vue项目的网站,只能爬取到静态资源
比如这个svg元素是否可以点击是写在data-v-xxx这个方法里的,方法与元素绑定。点击这个后发出的请求是捕获不到的
image

@Qianlitp
Copy link
Owner

Qianlitp commented Jul 1, 2022

请描述下你当前使用的crawlergo版本,系统信息,复现步骤

@gjm-anban
Copy link
Author

使用的是0.4.2版本,扫描的是内网的一个环境,前端vue编写,是个前后端分离的项目
看了下目前前端url能扫到一些,但是有点问题
ex:
能访问的是http://192.168.5.253:8041/#/message
爬到的展示的是http://192.168.5.253:8041/message
后端的接口扫出来很少,也有点问题
实际接口http://192.168.5.253:8041/api/notification/delete 请求方法: DELETE 有请求体
爬到的是http://192.168.5.253:8041/api/notification/delete 请求方法: GET
image

使用如下命令
./crawlergo --chromium-path /usr/bin/google-chrome --custom-headers "{\"Authorization\":\"Token eyJhbGciOiJIUzUxMiIsImlhdCI6MTY1NjY2MTE5MCwiZXhwIjoxNjU2NzQ3NTkwfQ.eyJ1c2VybmFtZSI6InJvb3QifQ.meX2UF3VNdTBeDRHqdylIrZqsAXT4H3bp6eMtbAOs30aSeeZb95oT3eUa0eA","Cookie":"session=eyJ1c2VybmFtZSI6InJvb3QifQ.Yr6kxg.hvAAz7N_c7c9NEYKGomz5RKI9Sc; yicha_token=eyJhbGciOiJIUzUxMiIsImlhdCI6MTY1NjY2MTE5MCwiZXhwIjoxNjU2NzQ3NTkwfQ.eyJ1c2VybmFtZSI6InJvb3QifQ.meX2UF3VNdTgpailF5ylIrZqsAXT4H3bp6eMtbAOs30aSeeZb95oT3eUa0eA; io=c152d2cd0f374f3d9cb4bd04684ca624\"}" http://192.168.5.253:8041/#/apiScanTask

扫描出来的地址有大量误报,实际上访问url报了404(vue结尾的),但是页面返回的是登录页面。
image

@Qianlitp Qianlitp added the bug Something isn't working label Jul 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants