-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:baidu/openrasp
- Loading branch information
Showing
818 changed files
with
28,252 additions
and
90,793 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
rasp-cloud.tar.gz | ||
rasp-java.tar.gz | ||
rasp-java.zip | ||
integration-test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "openrasp-v8"] | ||
path = openrasp-v8 | ||
url = https://github.com/baidu-security/openrasp-v8.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-224 KB
agent/java/engine/lib/com/baidu/openrasp/rhino-shim/1.0/rhino-shim-1.0.jar
Binary file not shown.
12 changes: 0 additions & 12 deletions
12
agent/java/engine/lib/com/baidu/openrasp/rhino-shim/1.0/rhino-shim-1.0.pom
This file was deleted.
Oops, something went wrong.
Binary file added
BIN
+24.1 MB
agent/java/engine/lib/com/baidu/openrasp/v8/1.0-SNAPSHOT/v8-1.0-SNAPSHOT.jar
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
agent/java/engine/lib/com/baidu/openrasp/v8/1.0-SNAPSHOT/v8-1.0-SNAPSHOT.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<project> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.baidu.openrasp</groupId> | ||
<artifactId>v8</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<version>4.12</version> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
<properties> | ||
<maven.compiler.source>1.6</maven.compiler.source> | ||
<maven.compiler.target>1.6</maven.compiler.target> | ||
</properties> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
agent/java/engine/src/main/java/com/baidu/openrasp/cloud/CloudTimerTask.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
package com.baidu.openrasp.cloud; | ||
|
||
/** | ||
* Created by tyy on 19-5-17. | ||
* | ||
* 云控定时任务基类 | ||
*/ | ||
public abstract class CloudTimerTask implements Runnable { | ||
|
||
private int sleepTime; | ||
|
||
private boolean isAlive = true; | ||
|
||
public CloudTimerTask(int sleepTime) { | ||
this.sleepTime = sleepTime; | ||
} | ||
|
||
public void start() { | ||
Thread taskThread = new Thread(this); | ||
taskThread.setDaemon(true); | ||
taskThread.start(); | ||
} | ||
|
||
public void stop() { | ||
this.isAlive = false; | ||
} | ||
|
||
public void run() { | ||
while (isAlive) { | ||
try { | ||
execute(); | ||
Thread.sleep(sleepTime * 1000); | ||
} catch (Throwable t) { | ||
handleError(t); | ||
} | ||
} | ||
} | ||
|
||
abstract public void execute(); | ||
|
||
abstract public void handleError(Throwable t); | ||
|
||
public void setAlive(boolean alive) { | ||
isAlive = alive; | ||
} | ||
} |
Oops, something went wrong.