forked from iSafeBlue/TrackRay
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
177 changed files
with
47,080 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<parent> | ||
<artifactId>framework</artifactId> | ||
<groupId>com.trackray</groupId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<relativePath>../pom.xml</relativePath> | ||
</parent> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<artifactId>base</artifactId> | ||
|
||
<dependencies> | ||
|
||
|
||
<dependency> | ||
<groupId>org.msgpack</groupId> | ||
<artifactId>msgpack</artifactId> | ||
<version>0.6.12</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
25 changes: 25 additions & 0 deletions
25
base/src/main/java/com/trackray/base/annotation/Exploit.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,25 @@ | ||
package com.trackray.base.annotation; | ||
|
||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.lang.annotation.*; | ||
|
||
|
||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Component | ||
@Scope("prototype") | ||
/** | ||
* @author 浅蓝 | ||
* @email [email protected] | ||
* @since 2019/1/8 12:28 | ||
*/ | ||
public @interface Exploit { | ||
String value() default ""; | ||
String title(); | ||
String desc() default ""; | ||
String author() default "anonymous"; | ||
String link() default ""; | ||
} |
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,8 @@ | ||
package com.trackray.base.annotation; | ||
|
||
public @interface Param { | ||
String key () default ""; | ||
String defaultValue() default ""; | ||
String desc() default ""; | ||
|
||
} |
25 changes: 25 additions & 0 deletions
25
base/src/main/java/com/trackray/base/annotation/Plugin.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,25 @@ | ||
package com.trackray.base.annotation; | ||
|
||
import org.springframework.context.annotation.Scope; | ||
import org.springframework.stereotype.Component; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
@Component | ||
@Scope("prototype") | ||
/** | ||
* @author 浅蓝 | ||
* @email [email protected] | ||
* @since 2019/1/8 12:28 | ||
*/ | ||
public @interface Plugin { | ||
String value() default ""; //插件在springioc容器的ID | ||
String title(); //插件标题 | ||
String desc() default ""; //插件介绍 | ||
String author() default "anonymous"; //插件作者 | ||
String[] link() default ""; //插件相关连接 | ||
long time() default 0L; //插件对应的时间戳 | ||
} |
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,28 @@ | ||
package com.trackray.base.annotation; | ||
|
||
|
||
import com.trackray.base.plugin.AbstractPlugin; | ||
|
||
import java.lang.annotation.*; | ||
|
||
@Target({ElementType.TYPE}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@Documented | ||
/** | ||
* @author 浅蓝 | ||
* @email [email protected] | ||
* @since 2019/1/8 12:28 | ||
*/ | ||
public @interface Rule { | ||
boolean enable() default true; //是否在外部启用插件 | ||
boolean websocket() default false; //是否为websocket插件 | ||
boolean sync() default false; //是否为异步任务 | ||
Param[] params() default {}; // 插件 | ||
//String[] param() default {}; //插件使用所需参数 如{"url","port"} | ||
//String[] defParam() default {}; //插件默认参数需与param下标一一对应 如{"http://localhost","3306"} | ||
//String[] descParam() default {};//插件参数对应的介绍 需与param下标对应 如{"目标地址","使用端口"} | ||
AbstractPlugin.Type type() default AbstractPlugin.Type.JSON; //当使用commonplugin时返回给浏览器的文本类型 | ||
AbstractPlugin.Charset charset() default AbstractPlugin.Charset.UTF8; //使用commonplugin时返回给浏览器的文本编码 | ||
String[] headers() default {}; //返回给浏览器时的response header | ||
String filename() default ""; //插件用于下载功能时返回的文件名 | ||
} |
Oops, something went wrong.