Skip to content

Commit

Permalink
Merge branch 'v0.41'
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Lewis committed Sep 17, 2018
2 parents 8ed32ca + 72662b2 commit 8a9339d
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import com.baidu.openrasp.HookHandler;
import com.baidu.openrasp.hook.AbstractClassHook;
import com.baidu.openrasp.hook.server.ServerStartupHook;
import com.baidu.openrasp.plugin.checker.CheckParameter;
import com.baidu.openrasp.tool.annotation.HookAnnotation;
import com.baidu.openrasp.tool.Reflection;
Expand All @@ -29,12 +30,12 @@
import java.io.IOException;

/**
*   * @Description: JBoss的JMX Console 安全检查
*   * @Description: JBoss的基线检查
*   * @author anyang
*   * @date 2018/7/30 15:46
*/
@HookAnnotation
public class JBossStartupHook extends AbstractClassHook {
public class JBossStartupHook extends ServerStartupHook {


@Override
Expand All @@ -44,11 +45,6 @@ public boolean isClassMatched(String className) {
"org/jboss/bootstrap/impl/base/server/AbstractServer".equals(className);
}

@Override
public String getType() {
return "JBossJMXConsole";
}

@Override
protected void hookMethod(CtClass ctClass) throws IOException, CannotCompileException, NotFoundException {

Expand Down

0 comments on commit 8a9339d

Please sign in to comment.