Skip to content

Commit

Permalink
v0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjinhub committed Feb 21, 2021
1 parent d2a270f commit 9c28149
Show file tree
Hide file tree
Showing 93 changed files with 184 additions and 43 deletions.
Binary file modified apps/bankcard/linux/run.so
Binary file not shown.
Binary file modified apps/bankcard/mac/run.so
Binary file not shown.
Binary file modified apps/bankcard/windows/run.pyd
Binary file not shown.
Binary file modified apps/base64/linux/run.so
Binary file not shown.
Binary file modified apps/base64/mac/run.so
Binary file not shown.
Binary file modified apps/base64/windows/run.pyd
Binary file not shown.
Binary file modified apps/dingding/linux/run.so
Binary file not shown.
Binary file modified apps/dingding/mac/run.so
Binary file not shown.
Binary file modified apps/dingding/windows/run.pyd
Binary file not shown.
Binary file modified apps/email/linux/run.so
Binary file not shown.
Binary file modified apps/email/mac/run.so
Binary file not shown.
Binary file modified apps/email/windows/run.pyd
Binary file not shown.
49 changes: 49 additions & 0 deletions apps/es/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"identification": "w5soar",
"is_public": true,
"name": "ES 查询",
"version": "0.1",
"description": "查询ES数据",
"type": "数据库",
"action": [
{
"name": "查询数据",
"func": "query"
}
],
"args": {
"query": [
{
"key": "host",
"type": "text",
"required": true
},
{
"key": "port",
"type": "number",
"required": true,
"default": 9200
},
{
"key": "index",
"type": "text",
"required": true
},
{
"key": "body",
"type": "textarea",
"required": true
},
{
"key": "account",
"type": "text",
"required": false
},
{
"key": "password",
"type": "text",
"required": false
}
]
}
}
Binary file added apps/es/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/es/linux/run.so
Binary file not shown.
Binary file added apps/es/mac/run.so
Binary file not shown.
25 changes: 25 additions & 0 deletions apps/es/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## APP 说明

- 查询 ES 服务器中的数据

## 动作列表

### 查询信息

**参数:**

| 参数 | 类型 | 必填 | 备注 |
| ---- | ---- | ---- | ---- |
| **host** | text | `` | ES 服务器地址 |
| **port** | number | `` | ES 端口号 |
| **index** | text | `` | 索引名称 |
| **body** | text | `` | DSL 语句 |
| **account** | text | `` | 认证账号 |
| **password** | text | `` | 认证密码 |

**返回值:**

```
# 正常
{'Extra': None, 'StatusCode': 0, 'StatusMessage': 'success'}
```
Binary file added apps/es/windows/run.pyd
Binary file not shown.
28 changes: 28 additions & 0 deletions apps/feishu/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"identification": "w5soar",
"is_public": true,
"name": "飞书通知",
"version": "0.1",
"description": "飞书消息通知",
"type": "消息通知",
"action": [
{
"name": "飞书通知",
"func": "send"
}
],
"args": {
"send": [
{
"key": "hook_uuid",
"type": "text",
"required": true
},
{
"key": "msg",
"type": "text",
"required": true
}
]
}
}
Binary file added apps/feishu/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/feishu/linux/run.so
Binary file not shown.
Binary file added apps/feishu/mac/run.so
Binary file not shown.
21 changes: 21 additions & 0 deletions apps/feishu/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## APP 说明

- 飞书官方文档:https://www.feishu.cn/hc/zh-CN/articles/360024984973

## 动作列表

### 飞书通知

**参数:**

| 参数 | 类型 | 必填 | 备注 |
| ---- | ---- | ---- | ---- |
| **hook_uuid** | text | `` | URL hook 后面的 UUID |
| **msg** | text | `` | 通知内容|

**返回值:**

```
# 正常
{'Extra': None, 'StatusCode': 0, 'StatusMessage': 'success'}
```
Binary file added apps/feishu/windows/run.pyd
Binary file not shown.
Binary file modified apps/helloword/linux/run.so
Binary file not shown.
Binary file modified apps/helloword/mac/run.so
Binary file not shown.
Binary file modified apps/helloword/windows/run.pyd
Binary file not shown.
Binary file modified apps/honming/linux/run.so
Binary file not shown.
Binary file modified apps/honming/mac/run.so
Binary file not shown.
Binary file modified apps/honming/windows/run.pyd
Binary file not shown.
Binary file modified apps/icp/linux/run.so
Binary file not shown.
Binary file modified apps/icp/mac/run.so
Binary file not shown.
Binary file modified apps/icp/windows/run.pyd
Binary file not shown.
Binary file modified apps/ip/linux/run.so
Binary file not shown.
Binary file modified apps/ip/mac/run.so
Binary file not shown.
Binary file modified apps/ip/windows/run.pyd
Binary file not shown.
Binary file modified apps/linux/linux/run.so
Binary file not shown.
Binary file modified apps/linux/mac/run.so
Binary file not shown.
Binary file modified apps/linux/windows/run.pyd
Binary file not shown.
Binary file modified apps/md5/linux/run.so
Binary file not shown.
Binary file modified apps/md5/mac/run.so
Binary file not shown.
Binary file modified apps/md5/windows/run.pyd
Binary file not shown.
Binary file modified apps/mysql/linux/run.so
Binary file not shown.
Binary file modified apps/mysql/mac/run.so
Binary file not shown.
Binary file modified apps/mysql/windows/run.pyd
Binary file not shown.
Binary file modified apps/nmap/linux/run.so
Binary file not shown.
Binary file modified apps/nmap/mac/run.so
Binary file not shown.
Binary file modified apps/nmap/windows/run.pyd
Binary file not shown.
Binary file modified apps/otx/linux/run.so
Binary file not shown.
Binary file modified apps/otx/mac/run.so
Binary file not shown.
Binary file modified apps/otx/windows/run.pyd
Binary file not shown.
Binary file modified apps/phone/linux/run.so
Binary file not shown.
Binary file modified apps/phone/mac/run.so
Binary file not shown.
Binary file modified apps/phone/windows/run.pyd
Binary file not shown.
Binary file modified apps/qq/linux/run.so
Binary file not shown.
Binary file modified apps/qq/mac/run.so
Binary file not shown.
Binary file modified apps/qq/windows/run.pyd
Binary file not shown.
Binary file modified apps/redis/linux/run.so
Binary file not shown.
Binary file modified apps/redis/mac/run.so
Binary file not shown.
Binary file modified apps/redis/windows/run.pyd
Binary file not shown.
Binary file modified apps/serverjiang/linux/run.so
Binary file not shown.
Binary file modified apps/serverjiang/mac/run.so
Binary file not shown.
Binary file modified apps/serverjiang/windows/run.pyd
Binary file not shown.
Binary file modified apps/threatbook/linux/run.so
Binary file not shown.
Binary file modified apps/threatbook/mac/run.so
Binary file not shown.
Binary file modified apps/threatbook/windows/run.pyd
Binary file not shown.
Binary file modified apps/url/linux/run.so
Binary file not shown.
Binary file modified apps/url/mac/run.so
Binary file not shown.
Binary file modified apps/url/windows/run.pyd
Binary file not shown.
Binary file modified apps/whois/linux/run.so
Binary file not shown.
Binary file modified apps/whois/mac/run.so
Binary file not shown.
Binary file modified apps/whois/windows/run.pyd
Binary file not shown.
Binary file modified apps/windows/linux/run.so
Binary file not shown.
Binary file modified apps/windows/mac/run.so
Binary file not shown.
Binary file modified apps/windows/windows/run.pyd
Binary file not shown.
Binary file modified apps/zhfc/linux/run.so
Binary file not shown.
Binary file modified apps/zhfc/mac/run.so
Binary file not shown.
Binary file modified apps/zhfc/windows/run.pyd
Binary file not shown.
16 changes: 11 additions & 5 deletions core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from core.view import Decorator
from flask import (Flask, send_from_directory)

version = "0.3.1"
version = "0.3.2"

db = Orator()
redis = FlaskRedis()
Expand Down Expand Up @@ -104,10 +104,16 @@ def init_config(app):
}
}

redis_host = cf.get("redis", "host")
redis_port = cf.get("redis", "port")
redis_database = cf.get("redis", "database")
redis_password = cf.get("redis", "password")
if os.getenv('REDIS_HOST'):
redis_host = os.getenv('REDIS_HOST')
redis_port = os.getenv('REDIS_PORT')
redis_database = os.getenv('REDIS_DATABASE')
redis_password = os.getenv('REDIS_PASSWORD')
else:
redis_host = cf.get("redis", "host")
redis_port = cf.get("redis", "port")
redis_database = cf.get("redis", "database")
redis_password = cf.get("redis", "password")

if str(redis_password) == "":
app.config['REDIS_URL'] = "redis://{host}:{port}/{db}".format(
Expand Down
Binary file modified core/auto/linux/core.so
Binary file not shown.
Binary file modified core/auto/mac/core.so
Binary file not shown.
Binary file modified core/auto/windows/core.pyd
Binary file not shown.
2 changes: 2 additions & 0 deletions core/view/system/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ def post_system_del():
Variablen.where("id", "!=", "0").delete()
elif type == 4:
redis.flushdb()
elif type == 5:
Report.where("id", "!=", "0").delete()

return Response.re()

Expand Down
12 changes: 11 additions & 1 deletion core/view/workflow/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,17 @@ def get_workflow_workflow():
}
]

return Response.re(data=result)
if redis.exists(uuid + "&&exec_sum") == 1:
exec_sum = redis.get(uuid + "&&exec_sum")
else:
exec_sum = 0

data = {
"result": result,
"exec_sum": exec_sum
}

return Response.re(data=data)


def get_workflow_exec(uuid):
Expand Down
2 changes: 1 addition & 1 deletion core/web/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/x-icon href=static/favicon.ico><title>W5 SOAR - 无需编写代码的安全自动化平台</title><link href=./static/css/app.53d038a820ec1e26e409d15b3b7060ba.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.d12e5bfb66740ea12d27.js></script><script type=text/javascript src=./static/js/vendor.62490b09734a45385f12.js></script><script type=text/javascript src=./static/js/app.bd19c4bfdbb7974be759.js></script></body></html>
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><link rel="shortcut icon" type=image/x-icon href=static/favicon.ico><title>W5 SOAR - 无需编写代码的安全自动化平台</title><link href=./static/css/app.2674f0ac4e9d106fe14d4815fb19bd73.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.52ec6ab1418921f3bbf8.js></script><script type=text/javascript src=./static/js/vendor.62490b09734a45385f12.js></script><script type=text/javascript src=./static/js/app.1e758d934c33d95bb4ab.js></script></body></html>

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions core/web/static/js/0.420ad8440f6be6366742.js

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions core/web/static/js/0.74017dbe6c603bcd509d.js

This file was deleted.

1 change: 1 addition & 0 deletions core/web/static/js/9.56b5cc685cc0b488a896.js

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

1 change: 0 additions & 1 deletion core/web/static/js/9.c3211eaab01ae7a46d64.js

This file was deleted.

Large diffs are not rendered by default.

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

2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def w5_info(**kwargs):
print(" ##@$%|||||||||||!` :%@#@")
print(" ###@&$||||||||!` !&###@")
print(" #####@&&%||||:. `%&#####@")
print(" ########&&&%: W5 SOAR '$&@#######@ v{version}".format(version="0.3.1"))
print(" ########&&&%: W5 SOAR '$&@#######@ v{version}".format(version="0.3.2"))
print("=============================================")
print("* Web : https://w5.io")
print("* Github : https://github.com/w5hub/w5")
Expand Down

0 comments on commit 9c28149

Please sign in to comment.