Skip to content

Commit

Permalink
Restore the commented-out checkJarFile functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
cnguoyj-leminis committed Jul 26, 2024
1 parent d95a115 commit e172417
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.jar.Manifest;

import com.security.smithloader.common.JarUtil;
import com.security.smithloader.common.ParseParameter;
import com.security.smithloader.common.Reflection;
import com.security.smithloader.log.SmithAgentLogger;
Expand Down Expand Up @@ -270,13 +271,11 @@ public static void agentmain(String agentArgs, Instrumentation inst) {
SmithAgentLogger.logger.info("checksumStr:" + checksumStr);
SmithAgentLogger.logger.info("proberPath:" + proberPath);

/*
if (!JarUtil.checkJarFile(proberPath,checksumStr)) {
System.setProperty("smith.status", proberPath + " check fail");
SmithAgentLogger.logger.warning(proberPath + " check fail!");
return ;
}
*/

if(instrumentation == null) {
instrumentation = inst;
Expand Down

0 comments on commit e172417

Please sign in to comment.