-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.yaml
88 lines (88 loc) · 2.32 KB
/
config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
cog_bundle_version: 4
name: net
description: "Simple network utilities"
author: "Operable <[email protected]>"
homepage: "https://github.com/cogcmd/net"
version: "0.3.0"
docker:
image: "cogcmd/net"
tag: "0.3.0"
commands:
dig:
executable: "/bundle/dig.sh"
description: "DNS lookup utility"
long_description: |
Simple wrapper for the `dig` command line utility. Only a select
few options are exposed in this command; it is not intended to
be a complete "dig in chat" tool.
arguments: "<target>"
rules:
- "when command is net:dig allow"
options:
short:
description: "Return a terse answer. Verbose reply is the default"
type: bool
required: false
type:
description: "Valid BIND 9 query type. Defaults to 'A'"
type: string
required: false
server:
description: "Name server to query"
type: string
required: false
trace:
description: "Enable the 'trace' query option. Disabled by default"
type: bool
required: false
ping:
executable: "/bundle/ping.sh"
description: "PING utility"
long_description: |
Simple wrapper for the `ping` command line utility. Only a select
few options are exposed in this command; it is not intended to
be a complete "ping in chat" tool.
arguments: "<target>"
rules:
- "when command is net:ping allow"
options:
count:
description: "Number of times to ping. Defaults to 5"
type: string
required: false
nslookup:
executable: "/bundle/nslookup.sh"
description: "query Internet name servers interactively"
long_description: |
Simple wrapper for the `nslookup` command line utility.
arguments: "<target>"
rules:
- "when command is net:nslookup allow"
options:
server:
description: "The server to use as source for nslookup."
type: string
required: false
templates:
dig:
body: |
~each var=$results~
```~each var=$item.body as=l~
~$l~
~end~```
~end~
ping:
body: |
~each var=$results~
```~each var=$item.body as=l~
~$l~
~end~```
~end~
nslookup:
body: |
~each var=$results~
```~each var=$item.body as=l~
~$l~
~end~```
~end~