HXSecurity / DongTai-agent-java

Java Agent is a Java application probe of DongTai IAST, which collects method invocation data during runtime of Java application by dynamic hooks.

Home Page:https://dongtai.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

解决云端获取服务器地址问题和将字节码转换报错信息发送至云端

Nizernizer opened this issue · comments

背景

  1. 将服务器地址发送至云端,在云端系统配置-引擎管理可见当前探针所在的ip地址
  2. 字节码转换报错信息发送至云端

解决方案

  1. 使用 InetAddress 类获取当前服务器 IP 地址
  2. 使用ErrorLogReport.sendErrorLog()将字节码转换报错信息发送至云端