Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions agent/src/main/java/com/keven1z/Agent.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public static void agentmain(String agentArgs, Instrumentation inst) {
/**
* attack 机制加载 agent
*
* @param appName 应用名称
* @param projectName 项目名称
* @param inst {@link Instrumentation}
*/
public static synchronized void init(String action, String appName, boolean isDebug, Instrumentation inst) {
public static synchronized void init(String action, String projectName, boolean isDebug, Instrumentation inst) {
try {
JarFileHelper.addJarToBootstrap(inst);
readVersion();
ModuleLoader.load(action, appName, isDebug, inst);
ModuleLoader.load(action, projectName, isDebug, inst);
}
catch (Exception e) {
System.err.println("[SimpleIAST] Failed to initialize agent, will continue without simpleIAST.");
Expand All @@ -48,7 +48,7 @@ public static synchronized void init(String action, String appName, boolean isDe


public static String getAgentBindAppName() {
return System.getProperty("iast.app.name", DEFAULT_APP_NAME);
return System.getProperty("iast.project.name", DEFAULT_APP_NAME);
}

public static boolean isDebugMode() {
Expand Down
4 changes: 2 additions & 2 deletions agent/src/main/java/com/keven1z/ModuleLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ public static boolean isModularityJdk() {
* @param action 启动模式
* @param inst {@link java.lang.instrument.Instrumentation}
*/
public static synchronized void load(String action, String appName, boolean isDebug, Instrumentation inst) throws Exception {
public static synchronized void load(String action, String projectName, boolean isDebug, Instrumentation inst) throws Exception {
if (Module.START_ACTION_INSTALL.equals(action)) {
if (instance == null) {
instance = new ModuleLoader(appName, isDebug);
instance = new ModuleLoader(projectName, isDebug);
instance.start(inst);
} else {
System.err.println("[SimpleIAST] The SimpleIAST has bean initialized and cannot be initialized again");
Expand Down
Binary file modified docker/backend/app.jar
Binary file not shown.
6 changes: 3 additions & 3 deletions docker/frontend/web/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
<link rel="icon" href="/favicon.ico" />
<link rel="stylesheet" href="/app-loading.css" />
<title>simpleIAST</title>
<script type="module" crossorigin src="/static/index-7d92c181.js"></script>
<script type="module" crossorigin src="/static/index-87a91d15.js"></script>
<link rel="modulepreload" crossorigin href="/static/vue-8cd83afb.js">
<link rel="modulepreload" crossorigin href="/static/element-25094948.js">
<link rel="modulepreload" crossorigin href="/static/vxe-49b9e5de.js">
<link rel="modulepreload" crossorigin href="/static/element-4f7446fd.js">
<link rel="modulepreload" crossorigin href="/static/vxe-d278ed3b.js">
<link rel="stylesheet" href="/static/index-86ef63aa.css">
</head>
<body>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docker/frontend/web/dist/static/apikey-9bb63572.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion docker/frontend/web/dist/static/apikey-a057b9d9.css

This file was deleted.

Loading