Skip to content

Commit 121ebdf

Browse files
committed
update_info
1 parent 83475bb commit 121ebdf

File tree

1 file changed

+19
-16
lines changed

1 file changed

+19
-16
lines changed

modules/auxiliary/scanner/udp_scanner_template.rb

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@ class Metasploit3 < Msf::Auxiliary
99
include Msf::Auxiliary::Report
1010
include Msf::Auxiliary::UDPScanner
1111

12-
def initialize
12+
def initialize(info = {})
1313
super(
14-
# TODO: fill in all of this
15-
'Name' => 'UDP Scanner Example',
16-
'Description' => %q(
17-
This module is an example of how to send probes to UDP services
18-
en-masse, analyze any responses, and then report on any discovered
19-
hosts, services, vulnerabilities or otherwise noteworthy things.
20-
Simply address any of the TODOs.
21-
),
22-
'Author' => 'Joe Contributor <joe_contributor[at]example.com>',
23-
'References' =>
24-
[
25-
['URL', 'https://example.com/~jcontributor']
26-
],
27-
'DisclosureDate' => 'Mar 15 2014',
28-
'License' => MSF_LICENSE
14+
update_info(
15+
info,
16+
# TODO: fill in all of this
17+
'Name' => 'UDP Scanner Example',
18+
'Description' => %q(
19+
This module is an example of how to send probes to UDP services
20+
en-masse, analyze any responses, and then report on any discovered
21+
hosts, services, vulnerabilities or otherwise noteworthy things.
22+
Simply address any of the TODOs.
23+
),
24+
'Author' => 'Joe Contributor <joe_contributor[at]example.com>',
25+
'References' =>
26+
[
27+
['URL', 'https://example.com/~jcontributor']
28+
],
29+
'DisclosureDate' => 'Mar 15 2014',
30+
'License' => MSF_LICENSE
31+
)
2932
)
3033

3134
register_options(

0 commit comments

Comments
 (0)