Estimated Reading time: 2 minutes
|
Last modified: 2021-12-31, 11:27:28 amwaf
Usage: oredge waf ACTION [OPTIONS]
ACTION:
create
list
show
modify
delete
help
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Create Waf
Usage: oredge waf create [OPTIONS]
OPTIONS:
--name string name.
--code string code.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge waf create --name test --code 'xxx'
OK
List Waf
Usage: oredge waf list [OPTIONS]
OPTIONS:
--page integer page, 1(default).
--page-size integer page size, 20(default).
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge waf list
ID NAME CREATE TIME MODIFY TIME
6 scanner_detection 2021-05-26 23:59:53 2021-05-26 23:59:53
7 protocol_enforcement 2021-05-26 23:59:53 2021-05-26 23:59:53
8 protocol_attack 2021-05-26 23:59:53 2021-05-26 23:59:53
9 application_attack_lfi 2021-05-26 23:59:53 2021-05-26 23:59:53
10 application_attack_rfi 2021-05-26 23:59:53 2021-05-26 23:59:53
11 application_attack_rce 2021-05-26 23:59:53 2021-05-26 23:59:53
12 application_attack_php 2021-05-26 23:59:53 2021-05-26 23:59:53
13 application_attack_nodejs 2021-05-26 23:59:53 2021-05-26 23:59:53
14 application_attack_xss 2021-05-26 23:59:53 2021-05-26 23:59:53
15 application_attack_sqli 2021-05-26 23:59:53 2021-05-26 23:59:53
16 application_attack_session_fixation 2021-05-26 23:59:53 2021-05-26 23:59:53
17 application_attack_java 2021-05-26 23:59:53 2021-05-26 23:59:53
Show Waf
Usage: oredge waf show [id] [OPTIONS]
OPTIONS:
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge waf show 6
ID : 6
NAME : scanner_detection
CREATE TIME: 2021-05-26 23:59:53
MODIFY TIME: 2021-05-26 23:59:53
CODE : phase pre-rewrite;
true => check-post-args-type(true);
phase rewrite;
Modify Waf
Usage: oredge waf modify [id] [OPTIONS]
OPTIONS:
--id integer id.
--name string name.
--code string code.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge waf modify 21 --name "for test"
OK
Delete Waf
Usage: oredge waf delete [id] [OPTIONS]
OPTIONS:
--id integer id.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
- delete waf.
# oredge waf delete 21
OK