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

vagent不生效 #9

Open
sevck opened this issue Jul 29, 2024 · 4 comments
Open

vagent不生效 #9

sevck opened this issue Jul 29, 2024 · 4 comments

Comments

@sevck
Copy link

sevck commented Jul 29, 2024

目标环境:
jdk 1.8_201
spring-boot 2.1 (内置tomcat8)

注入方式:

[root@36e5248b2ca4 webapps]# java -jar vagent.jar
-------------------
name >>> user-xxxx-1.xxx.jar
id >>> 205
success
[root@36e5248b2ca4 webapps]# java -jar vagent.jar
-------------------
name >>> user-xxx-1.xxx.jar
id >>> 205
success

在服务端(user-xxx-1.xxx)可以看到打印了:
agentmain
image
理论应该注入成功了,但是使用冰鞋访问404
http://ip:port/faviconb 自定义加密协议
image

@veo
Copy link
Owner

veo commented Jul 29, 2024

情况比较多种
1.注入失败,vagent不兼容当前环境
2.注入成功,但路径不是对应外网的路径,经过了nginx等转发
3.应用路径没有开放,或没权限

@veo
Copy link
Owner

veo commented Jul 29, 2024

你可以先找一个200静态文件的路径,然后再加上冰蝎的路径试试

比如/static/faviconb

@sevck
Copy link
Author

sevck commented Jul 29, 2024

他不是spring mvc, spring cloud, 微服务的,user.jar. 对应的路由就是/xxxxx, nginx上配置 api.a.com/user/ -> proxy ->docker ip:port

服务端是我的另外一个docker,还没走nginx
我也考虑了路径问题,全局加上了Authorization,admin权限 所有路由都可以问题

有什么解决办法么?

@sevck
Copy link
Author

sevck commented Jul 29, 2024

看到注入后 服务端console有打印agentmain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants