medved/data/config.yaml

112 lines
1.9 KiB
YAML
Raw Normal View History

---
dsl_version: 1
core:
2018-04-02 22:41:10 +00:00
services:
- data_manager
# - zmq_listener
- rq_executor
2018-04-02 22:41:10 +00:00
pipelines:
- ftp
services:
data_manager:
package: lib.data.Manager
service: DataManager
data:
id: pool
sources:
- random_ip
2018-04-02 22:41:10 +00:00
feeds:
- test_telegram
2018-04-02 22:41:10 +00:00
zmq_listener:
package: lib.net.Listener
service: ZMQListener
data:
id: pool
listen: "0.0.0.0"
port: 12321
rq_executor:
package: lib.exeq.Executor
service: RQExecutor
data:
id: pool
redis:
host: "127.0.0.1"
sources:
random_ip:
package: lib.plugin.base.lib.IP
service: RandomIP
data:
id: random_ip
feeds:
test_telegram:
package: lib.plugin.base.lib.Telegram
service: TelegramFeed
data:
id: pool
token:
chats:
- id: good_evening
pipelines: [ftp, gopher]
filter:
clause: any-of
equal:
- ftp_list_files_status: success
- gopher_collect_status: success
2018-04-02 22:41:10 +00:00
storage:
pool:
package: lib.plugin.base.lib.Mongo
service: MongoStorage
size: 40960
db: "medved"
coll: 'pool'
random_ip:
package: lib.plugin.base.lib.Mongo
service: MongoStorage
size: 500
db: "medved"
coll: 'randomipsource'
pipelines:
ftp:
steps:
- name: scan
package: lib.plugin.iscan.tasks.common
service: scan
multiple: 10
requires: []
- name: connect
package: lib.plugin.iscan.tasks.ftp
service: connect
multiple: False
requires:
- ftp_scan
- name: list_files
package: lib.plugin.iscan.tasks.ftp
service: list_files
multiple: False
requires:
- ftp_connect
2018-04-02 22:41:10 +00:00
tasks:
ftp_scan:
ports:
- 21
2018-04-02 22:41:10 +00:00
ftp_connect:
logins: data/ftp/logins.txt
passwords: data/ftp/passwords.txt
bruteforce: true
timeout: 15
ftp_list_files:
logging:
Storage: INFO