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
28 changed files
with
936 additions
and
251 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
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,20 @@ | ||
### 功能介绍 | ||
|
||
* /task/create 创建任务 | ||
* /task/destroy 销毁任务 | ||
* /task/process 开启任务 | ||
* /task/data 任务数据 | ||
* /task/find 查找任务 | ||
|
||
* /plugin/list 插件列表 | ||
* /plugin/use 调用插件 | ||
* /plugin/result 插件执行结果 | ||
* /plugin/stop 结束插件线程 | ||
|
||
* /manage 管理后台 | ||
* /manage/create 创建任务 | ||
* /manage/task 任务列表 | ||
|
||
* /api 无交互式插件入口 | ||
* /console 交互式插件控制台 | ||
* /msf metasploit 控制台 |
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,148 @@ | ||
# 依赖环境 | ||
> 加粗为必须环境,没有安装程序则无法正常编译运行 | ||
- **JDK 1.8** | ||
- Python 2.7 | ||
- **Maven** | ||
- Git | ||
- Metasploit | ||
- Nmap(建议安装) | ||
- SQLMAP(建议安装) | ||
- AWVS | ||
|
||
不论是 Windows 还是 linux 一定需要先安装 JDK1.8 和 Maven。 | ||
安装过程这里不做演示。 | ||
保证 JDK 和 Maven 都在系统环境变量,能执行`java -version` 和 `mvn --version`即可。 | ||
|
||
# 安装过程 | ||
|
||
**第一步** | ||
手动启动 AWVS 服务 | ||
|
||
![][1] | ||
|
||
登录后台,生成一个API密匙。 | ||
|
||
![][2] | ||
|
||
复制密匙和 AWVS 的地址。 | ||
|
||
找到`web/src/main/resources/application.properties`配置文件。 | ||
|
||
修改如下部分 | ||
|
||
``` | ||
awvs.host=https://127.0.0.1:3443 | ||
awvs.key=你的API KEY | ||
``` | ||
|
||
**第二步** | ||
|
||
找到你 python 的第三方库目录。 | ||
|
||
Windows 的一般在 python 安装目录下的 `/Lib/site-packages` | ||
|
||
Linux 下可以通过输出 sys.path 来找第三方包路径 | ||
|
||
![][3] | ||
|
||
我的是 `D:/Python2/Lib/site-packages` | ||
|
||
同样找到`web/src/main/resources/application.properties`配置文件。 | ||
|
||
修改`python.package.path`参数 | ||
``` | ||
python.package.path=D:/Python/Lib/site-packages | ||
``` | ||
|
||
**第三步** | ||
|
||
安装 Maven 后找到仓库位置。 | ||
|
||
如果没有在 `settings.xml` 里配置指定仓库目录,默认会在当前用户目录中生成一个 `.m2`的目录 | ||
|
||
> Linux /root/.m2/repository | ||
> Windows C:/Users/blue/.m2/repository | ||
找到仓库目录后修改 `application.properties` 的 `maven.repository.path`参数 | ||
|
||
``` | ||
maven.repository.path=/root/.m2/repository | ||
``` | ||
|
||
|
||
**第四步** | ||
|
||
这个是 DNSLOG 回显检测漏洞时需要的。 | ||
|
||
去 `ceye.io` 注册一个账号,拿到给你分配的域名和 TOKEN。 | ||
|
||
![][4] | ||
|
||
修改配置文件 | ||
|
||
``` | ||
#ceye.io | ||
ceye.io.token=****** | ||
ceye.io.identifier=****.ceye.io | ||
``` | ||
|
||
|
||
**第五步** | ||
|
||
启动 msf 和 sqlmapapi。 | ||
|
||
如果你是 kali 操作系统,可以直接运行`startdep.sh`。 | ||
|
||
如果是其他系统,则要找到 metasploit 和 sqlmap 的目录分别执行 | ||
|
||
``` | ||
msfrpcd -U 用户名 -P 密码 -S -f | ||
``` | ||
``` | ||
python sqlmapapi.py -s | ||
``` | ||
|
||
启动成功后修改配置文件 | ||
|
||
``` | ||
#msfrpc | ||
metasploit.host=127.0.0.1:55553 | ||
metasploit.user=msf | ||
metasploit.pass=msf | ||
``` | ||
|
||
``` | ||
#sqlmap api | ||
sqlmap.root=http://127.0.0.1:8775/ | ||
``` | ||
|
||
**第六步** | ||
|
||
编译打包程序 | ||
|
||
Windows 下运行`package.bat` | ||
Linux 下运行 `package.sh` | ||
|
||
等待依赖下载完成和编译完成,如果以上操作都没有出现问题则会提示 `BUILD SUCCESS` | ||
|
||
![1557584484(1).jpg][5] | ||
|
||
编译成功后会在当前目录打包一个`trackray.jar`就是溯光的主程序。 | ||
|
||
然后直接执行`startup.bat`或`startup.sh`溯光就会启动服务。 | ||
|
||
![1557584966(1).jpg][6] | ||
|
||
没有抛出异常或`ERROR`日志,访问 8080 端口正常。 | ||
|
||
服务启动正常后,登录 iZone 社区账号即可。 | ||
|
||
|
||
|
||
[1]: http://blueblog.test.upcdn.net/usr/uploads/2019/05/143460336.png | ||
[2]: http://blueblog.test.upcdn.net/usr/uploads/2019/05/703035688.png | ||
[3]: http://blueblog.test.upcdn.net/usr/uploads/2019/05/447148357.png | ||
[4]: http://blueblog.test.upcdn.net/usr/uploads/2019/05/3530661395.png | ||
[5]: http://blueblog.test.upcdn.net/usr/uploads/2019/05/3731947807.jpg | ||
[6]: http://blueblog.test.upcdn.net/usr/uploads/2019/05/558596656.jpg |
Oops, something went wrong.