You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: plugins/dig/bin/komand_dig
+1-1
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ from sys import argv
6
6
7
7
Name="DNS"
8
8
Vendor="rapid7"
9
-
Version="2.0.4"
9
+
Version="2.0.5"
10
10
Description="The DNS plugin is used for forward and reverse DNS lookups. This plugin uses [Dig](https://linux.die.net/man/1/dig), or Domain Information Groper, which is a network administration command-line tool for querying Domain Name System (DNS) name servers"
On success, the raw output will look like the following:
109
+
Example output:
124
110
125
111
```
126
112
{
@@ -131,19 +117,6 @@ On success, the raw output will look like the following:
131
117
"status": "NOERROR"
132
118
}
133
119
```
134
-
135
-
On failure, the raw output will look like the following:
136
-
137
-
```
138
-
{
139
-
"status": "NOERROR",
140
-
"answer": "dns.google",
141
-
"fulloutput": "\n; <<>> DiG 9.14.8 <<>> -x 8.8.8.8\n;; global optio...",
142
-
"nameserver": "192.168.65.1",
143
-
"question": "8.8.8.8"
144
-
}
145
-
```
146
-
147
120
### Triggers
148
121
149
122
*This plugin does not contain any triggers.*
@@ -157,7 +130,7 @@ On failure, the raw output will look like the following:
157
130
158
131
## Troubleshooting
159
132
160
-
The `status` variable contains the [DNS status code](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml) name from the DNS server's response.
133
+
*The `status` variable contains the [DNS status code](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml) name from the DNS server's response.
161
134
Dig has at least the following status codes implemented:
162
135
163
136
```
@@ -167,7 +140,7 @@ SERVFAIL
167
140
NXDOMAIN
168
141
NOTIMP
169
142
REFUSED
170
-
YXDOMAIN
143
+
YXDOMAIN
171
144
YXRRSET
172
145
NXRRSET
173
146
NOTAUTH
@@ -183,9 +156,9 @@ Common examples:
183
156
*`status = "NOERRROR"` - The DNS response contains an answer
184
157
*`status = "NXDOMAIN"` - The DNS response did not have an answer i.e. Non-Existent Domain
185
158
186
-
187
159
# Version History
188
160
161
+
* 2.0.5 - Updated SDK to the latest version (6.2.5)
189
162
* 2.0.4 - Updated SDK to the latest version (v6.2.2) | Address vulnerabilities
190
163
* 2.0.3 - Initial updates for fedramp compliance | Updated SDK to the latest
191
164
* 2.0.2 - Updated SDK to the latest version | Added validation for input parameters
Copy file name to clipboardexpand all lines: plugins/dig/plugin.spec.yaml
+68-68
Original file line number
Diff line number
Diff line change
@@ -3,85 +3,77 @@ extension: plugin
3
3
products: [insightconnect]
4
4
name: dig
5
5
title: DNS
6
-
description: The DNS plugin is used for forward and reverse DNS lookups. This plugin uses [Dig](https://linux.die.net/man/1/dig), or Domain Information Groper, which is a network administration command-line tool for querying Domain Name System (DNS) name servers
7
-
version: 2.0.4
6
+
description: The DNS plugin is used for forward and reverse DNS lookups. This plugin
7
+
uses [Dig](https://linux.die.net/man/1/dig), or Domain Information Groper, which
8
+
is a network administration command-line tool for querying Domain Name System (DNS)
The `status` variable contains the [DNS status code](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml) name from the DNS server's response.
33
-
Dig has at least the following status codes implemented:
34
-
35
-
```
36
-
NOERROR
37
-
FORMERR
38
-
SERVFAIL
39
-
NXDOMAIN
40
-
NOTIMP
41
-
REFUSED
42
-
YXDOMAIN
43
-
YXRRSET
44
-
NXRRSET
45
-
NOTAUTH
46
-
NOTZONE
47
-
BADVERS
48
-
```
49
-
50
-
You can test the `status` variable in a Decision or Filter step to check for its value.
51
-
For example, in your workflow, if the resolution doesn't return an answer, then you may want to attempt a second lookup from a passive DNS service.
52
-
53
-
Common examples:
54
-
55
-
* `status = "NOERRROR"` - The DNS response contains an answer
56
-
* `status = "NXDOMAIN"` - The DNS response did not have an answer i.e. Non-Existent Domain
34
+
troubleshooting:
35
+
- "The `status` variable contains the [DNS status code](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml)
36
+
name from the DNS server's response.\nDig has at least the following status codes
\nYXRRSET\nNXRRSET\nNOTAUTH\nNOTZONE\nBADVERS\n```\n\nYou can test the `status` variable
39
+
in a Decision or Filter step to check for its value.\nFor example, in your workflow,
40
+
if the resolution doesn't return an answer, then you may want to attempt a second
41
+
lookup from a passive DNS service.\n\nCommon examples:\n\n* `status = \"NOERRROR\"\
42
+
` - The DNS response contains an answer\n* `status = \"NXDOMAIN\"` - The DNS response
43
+
did not have an answer i.e. Non-Existent Domain"
57
44
key_features:
58
-
- "Forward DNS lookup to find an IP address from a domain name"
59
-
- "Reverse DNS lookup to find a domain name from an IP address"
45
+
- Forward DNS lookup to find an IP address from a domain name
46
+
- Reverse DNS lookup to find a domain name from an IP address
60
47
links:
61
-
- "[Dig](https://linux.die.net/man/1/dig)"
48
+
- '[Dig](https://linux.die.net/man/1/dig)'
62
49
references:
63
-
- "[Dig](https://linux.die.net/man/1/dig)"
64
-
- "[DNS Status Code](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml)"
50
+
- '[Dig](https://linux.die.net/man/1/dig)'
51
+
- '[DNS Status Code](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml)'
65
52
version_history:
66
-
- "2.0.4 - Updated SDK to the latest version (v6.2.2) | Address vulnerabilities"
67
-
- "2.0.3 - Initial updates for fedramp compliance | Updated SDK to the latest"
68
-
- "2.0.2 - Updated SDK to the latest version | Added validation for input parameters"
69
-
- "2.0.1 - Added `__init__.py` file to `unit_test` folder | Refreshed with new Tooling"
70
-
- "2.0.0 - Rename Dig plugin to DNS"
71
-
- "1.0.7 - Fix bug in `safe_parse` function | Fix bug when `answers` in function `execute_command` is str"
72
-
- "1.0.6 - Upgrade to latest Python plugin runtime | Define `cloud_ready` in spec"
73
-
- "1.0.5 - Update to v4 Python plugin runtime"
74
-
- "1.0.4 - Add example inputs"
75
-
- '1.0.3 - Use input and output constants | Change docker image from `komand/python-2-slim-plugin:2` to `komand/python-3-37-slim-plugin:3` to reduce plugin image size | Added "f" strings | Remove duplicate code | Add user nobody to Dockerfile'
76
-
- "1.0.2 - New spec and help.md format for the Extension Library"
77
-
- "1.0.1 - Update to use the `komand/python-2-slim-plugin:2` Docker image to reduce plugin size"
78
-
- "1.0.0 - Support web server mode"
79
-
- "0.3.2 - Update to v2 Python plugin architecture"
80
-
- "0.3.1 - SSL bug fix in SDK"
81
-
- "0.3.0 - Add all_answers and last_answer to the forward lookup action"
82
-
- "0.2.0 - Add option to use custom resolver"
83
-
- "0.1.1 - Increased result validation"
84
-
- "0.1.0 - Initial plugin"
53
+
- 2.0.5 - Updated SDK to the latest version (6.2.5)
54
+
- 2.0.4 - Updated SDK to the latest version (v6.2.2) | Address vulnerabilities
55
+
- 2.0.3 - Initial updates for fedramp compliance | Updated SDK to the latest
56
+
- 2.0.2 - Updated SDK to the latest version | Added validation for input parameters
57
+
- 2.0.1 - Added `__init__.py` file to `unit_test` folder | Refreshed with new Tooling
58
+
- 2.0.0 - Rename Dig plugin to DNS
59
+
- 1.0.7 - Fix bug in `safe_parse` function | Fix bug when `answers` in function `execute_command`
60
+
is str
61
+
- 1.0.6 - Upgrade to latest Python plugin runtime | Define `cloud_ready` in spec
62
+
- 1.0.5 - Update to v4 Python plugin runtime
63
+
- 1.0.4 - Add example inputs
64
+
- 1.0.3 - Use input and output constants | Change docker image from `komand/python-2-slim-plugin:2`
65
+
to `komand/python-3-37-slim-plugin:3` to reduce plugin image size | Added "f" strings
66
+
| Remove duplicate code | Add user nobody to Dockerfile
67
+
- 1.0.2 - New spec and help.md format for the Extension Library
68
+
- 1.0.1 - Update to use the `komand/python-2-slim-plugin:2` Docker image to reduce
69
+
plugin size
70
+
- 1.0.0 - Support web server mode
71
+
- 0.3.2 - Update to v2 Python plugin architecture
72
+
- 0.3.1 - SSL bug fix in SDK
73
+
- 0.3.0 - Add all_answers and last_answer to the forward lookup action
74
+
- 0.2.0 - Add option to use custom resolver
75
+
- 0.1.1 - Increased result validation
76
+
- 0.1.0 - Initial plugin
85
77
actions:
86
78
forward:
87
79
title: Forward Lookup
@@ -104,14 +96,14 @@ actions:
104
96
description: Query type e.g. ANY, A, MX, NS, etc
105
97
type: string
106
98
enum:
107
-
- A
108
-
- AAAA
109
-
- ANY
110
-
- CNAME
111
-
- MX
112
-
- NS
113
-
- PTR
114
-
- SOA
99
+
- A
100
+
- AAAA
101
+
- ANY
102
+
- CNAME
103
+
- MX
104
+
- NS
105
+
- PTR
106
+
- SOA
115
107
required: true
116
108
example: MX
117
109
output:
@@ -123,7 +115,8 @@ actions:
123
115
example: \n; <<>> DiG 9.12.4-P2 <<>> google.com A\n;; global ...
Copy file name to clipboardexpand all lines: plugins/dig/setup.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
5
5
setup(name="dig-rapid7-plugin",
6
-
version="2.0.4",
6
+
version="2.0.5",
7
7
description="The DNS plugin is used for forward and reverse DNS lookups. This plugin uses [Dig](https://linux.die.net/man/1/dig), or Domain Information Groper, which is a network administration command-line tool for querying Domain Name System (DNS) name servers",
0 commit comments