medved/data/config.yaml

177 lines
3.4 KiB
YAML
Raw Normal View History

---
dsl_version: 1
core:
2018-04-02 22:41:10 +00:00
services:
- random_ip
- rq_executor
- GC
2018-08-02 17:42:09 +00:00
- tg_feed
2018-04-02 22:41:10 +00:00
pipelines:
- ftp
2018-08-02 17:42:09 +00:00
- gopher
2018-04-02 22:41:10 +00:00
services:
2018-08-02 17:42:09 +00:00
random_ip:
package: lib.plugin.base.lib.IP
service: RandomIP
storage: ip_source
2018-04-02 22:41:10 +00:00
rq_executor:
package: lib.exec.Executor
2018-04-02 22:41:10 +00:00
service: RQExecutor
storage: pool
2018-04-02 22:41:10 +00:00
redis:
2018-08-04 11:44:27 +00:00
host: redis
GC:
package: lib.plugin.base.lib.GC
service: GarbageCollector
storage: pool
delay: 10
if:
steps.ftp_scan: false
steps.gopher_scan: false
2018-08-02 17:42:09 +00:00
tg_feed:
package: lib.plugin.base.lib.Telegram
service: TelegramFeed
storage: pool
token: "358947254:"
2018-08-02 17:42:09 +00:00
chats:
- id: aiWeipeighah7vufoHa0ieToipooYe
if:
steps.ftp_apply_tpl: true
2018-08-02 19:11:11 +00:00
- id: ohl7AeGah5uo8cho4nae9Eemaeyae3
if:
steps.gopher_apply_tpl: true
data.filter: false
2018-04-02 22:41:10 +00:00
storage:
pool:
package: lib.plugin.base.lib.Mongo
service: MongoStorage
2018-08-04 11:44:27 +00:00
url: mongo
size: 0
2018-04-02 22:41:10 +00:00
db: "medved"
coll: 'pool'
2018-08-02 17:42:09 +00:00
ip_source:
2018-04-02 22:41:10 +00:00
package: lib.plugin.base.lib.Mongo
service: MongoStorage
2018-08-04 11:44:27 +00:00
url: mongo
2018-08-02 17:42:09 +00:00
size: 800
2018-04-02 22:41:10 +00:00
db: "medved"
2018-08-02 17:42:09 +00:00
coll: 'ip_source'
2018-04-02 22:41:10 +00:00
pipelines:
ftp:
2018-08-02 17:42:09 +00:00
source: ip_source
2018-04-02 22:41:10 +00:00
steps:
- task: ftp_scan
priority: low
2018-08-02 17:42:09 +00:00
parallel: 100
- task: ftp_connect
priority: normal
if:
steps.ftp_scan: true
- task: ftp_list_files
priority: normal
if:
steps.ftp_connect: true
- task: ftp_filter_files
priority: normal
parallel: 100
if:
steps.ftp_list_files: true
2018-08-02 17:42:09 +00:00
- task: ftp_apply_tpl
priority: high
if:
steps.ftp_filter_files: true
data.filter: false
2018-08-02 17:42:09 +00:00
gopher:
source: ip_source
steps:
- task: gopher_scan
priority: normal
parallel: 100
- task: gopher_find
priority: high
if:
steps.gopher_scan: true
- task: gopher_apply_tpl
priority: high
if:
steps.gopher_find: true
http:
source: ip_source
steps:
- task: http_scan
priority: low
parallel: 25
2018-04-02 22:41:10 +00:00
tasks:
2018-08-02 17:42:09 +00:00
gopher_scan:
package: lib.plugin.iscan.tasks.common
service: MasScanTask
ports:
- 70
gopher_find:
package: lib.plugin.iscan.tasks.gopher
service: GopherFindTask
gopher_apply_tpl:
package: lib.plugin.base.tasks.text
service: Jinja2TemplateTask
path: lib/plugin/iscan/templates/gopher.tpl
vnc_scan:
package: lib.plugin.iscan.tasks.common
service: MasScanTask
ports:
- 5900
- 5901
vnc_connect:
package: lib.plugin.iscan.tasks.vnc
service: VNCConnectTask
ports:
- 5900
- 5901
http_scan:
package: lib.plugin.iscan.tasks.common
service: MasScanTask
ports: &http_ports
2018-08-02 17:42:09 +00:00
- 80
- 81
- 8080
- 8081
http_find:
package: lib.plugin.iscan.tasks.http
service: HTTPFindTask
2018-08-02 17:42:09 +00:00
2018-04-02 22:41:10 +00:00
ftp_scan:
package: lib.plugin.iscan.tasks.common
service: MasScanTask
ports:
- 21
2018-08-02 17:42:09 +00:00
ftp_connect:
package: lib.plugin.iscan.tasks.ftp
service: FTPConnectTask
usernames: data/ftp/usernames.txt
2018-04-02 22:41:10 +00:00
passwords: data/ftp/passwords.txt
bruteforce: true
timeout: 15
ftp_list_files:
package: lib.plugin.iscan.tasks.ftp
service: FTPListFilesTask
ftp_filter_files:
package: lib.plugin.iscan.tasks.ftp
service: FTPListFilesTask
2018-08-02 17:42:09 +00:00
ftp_apply_tpl:
package: lib.plugin.base.tasks.text
service: Jinja2TemplateTask
path: lib/plugin/iscan/templates/ftp.tpl
logging:
Storage: DEBUG
2018-08-04 11:44:27 +00:00
Loader: INFO