nexpose 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 75d97ad36e13360043f2e5d7b8c77e7132fa1341
4
+ data.tar.gz: d0bad31705306e7047f0573fa70e8fbe254d7918
5
+ SHA512:
6
+ metadata.gz: 66d50993d31fc0f08f687b06d5076dff84a136cbf1d5785c7f443680ca7901cffc90bd41c1d47ea89b9338ef36cd9ab5749a194fc20991ae27db0d845764adf2
7
+ data.tar.gz: 8092cc8a66017cee52583f7f46f839f5d65d35da1c8d08a7d9e65a8e21e3c3cb804618cd0cfba0e5c0fd5d940333b23341a6c5335845cf558b739675961c6733
@@ -111,8 +111,8 @@ module Nexpose
111
111
  @error = 'Received a user interrupt.'
112
112
  rescue ::Errno::ECONNRESET, ::Errno::ECONNREFUSED, ::Errno::ENOTCONN, ::Errno::ECONNABORTED
113
113
  @error = 'Nexpose service is not available.'
114
- rescue ::REXML::ParseException
115
- @error = 'Nexpose has not been properly licensed.'
114
+ rescue ::REXML::ParseException => exc
115
+ @error = "Error parsing response: #{exc.message}"
116
116
  end
117
117
 
118
118
  if !(@success or @error)
data/lib/nexpose/group.rb CHANGED
@@ -76,7 +76,7 @@ module Nexpose
76
76
  xml << '</AssetGroupSaveRequest>'
77
77
  response = connection.execute(xml)
78
78
  if response.success
79
- @id = response.attributes['group-id'] if @id < 0
79
+ @id = response.attributes['group-id'].to_i if @id < 0
80
80
  end
81
81
  end
82
82
 
@@ -65,6 +65,8 @@ module Nexpose
65
65
  templates
66
66
  end
67
67
 
68
+ alias_method :report_templates, :report_template_listing
69
+
68
70
  # Retrieve the configuration for a report template.
69
71
  def get_report_template(template_id)
70
72
  xml = make_xml('ReportTemplateConfigRequest', {'template-id' => template_id})
@@ -84,6 +86,8 @@ module Nexpose
84
86
  reports
85
87
  end
86
88
 
89
+ alias_method :reports, :report_listing
90
+
87
91
  # Retrieve the configuration for a report definition.
88
92
  def get_report_config(report_config_id)
89
93
  xml = make_xml('ReportConfigRequest', {'reportcfg-id' => report_config_id})
@@ -296,10 +300,12 @@ module Nexpose
296
300
  end
297
301
 
298
302
  # Retrieve the configuration for an existing report definition.
299
- def self.get(connection, report_config_id)
303
+ def self.load(connection, report_config_id)
300
304
  connection.get_report_config(report_config_id)
301
305
  end
302
306
 
307
+ alias_method :get, :load
308
+
303
309
  # Build and save a report configuration against the specified site using
304
310
  # the supplied type and format.
305
311
  #
@@ -690,10 +696,12 @@ module Nexpose
690
696
  end
691
697
 
692
698
  # Retrieve the configuration for a report template.
693
- def self.get(connection, template_id)
699
+ def self.load(connection, template_id)
694
700
  connection.get_report_template(template_id)
695
701
  end
696
702
 
703
+ alias_method :get, :load
704
+
697
705
  include Sanitize
698
706
 
699
707
  def to_xml
data/lib/nexpose/tags ADDED
@@ -0,0 +1,369 @@
1
+ !_TAG_FILE_FORMAT 2 /extended format; --format=1 will not append ;" to lines/
2
+ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/
3
+ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@users.sourceforge.net/
4
+ !_TAG_PROGRAM_NAME Exuberant Ctags //
5
+ !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/
6
+ !_TAG_PROGRAM_VERSION 5.9~svn20110310 //
7
+ <=> creds.rb /^ def <=>(other)$/;" f class:Nexpose.AdminCredentials
8
+ <=> site.rb /^ def <=>(other)$/;" f class:HostName
9
+ <=> site.rb /^ def <=>(other)$/;" f class:IPRange
10
+ APIError error.rb /^ class APIError < ::RuntimeError$/;" c class:Nexpose
11
+ APIRequest api_request.rb /^ class APIRequest$/;" c class:Nexpose
12
+ AdhocReportConfig report.rb /^ class AdhocReportConfig$/;" c class:Nexpose
13
+ AdminCredentials creds.rb /^ class AdminCredentials$/;" c class:Nexpose
14
+ Alert alert.rb /^ class Alert$/;" c class:Nexpose
15
+ AssetGroup group.rb /^ class AssetGroup < AssetGroupSummary$/;" c class:Nexpose
16
+ AssetGroup role.rb /^ module AssetGroup$/;" m class:Nexpose.Privilege
17
+ AssetGroupSummary group.rb /^ class AssetGroupSummary$/;" c class:Nexpose
18
+ AuthenticationFailed error.rb /^ class AuthenticationFailed < APIError$/;" c class:Nexpose
19
+ Connection connection.rb /^ class Connection$/;" c class:Nexpose
20
+ DBExport report.rb /^ class DBExport$/;" c class:Nexpose
21
+ Delivery report.rb /^ class Delivery$/;" c class:Nexpose
22
+ Device site.rb /^ class Device$/;" c
23
+ Email common.rb /^ class Email$/;" c class:Nexpose
24
+ EngineConfig scan_engine.rb /^ class EngineConfig$/;" c class:Nexpose
25
+ EnginePool scan_engine.rb /^ class EnginePool$/;" c class:Nexpose
26
+ EnginePoolSummary scan_engine.rb /^ class EnginePoolSummary$/;" c class:Nexpose
27
+ EngineSummary scan_engine.rb /^ class EngineSummary$/;" c class:Nexpose
28
+ ExportCredential report.rb /^ class ExportCredential$/;" c class:Nexpose
29
+ Field creds.rb /^ class Field$/;" c class:Nexpose
30
+ Filter report.rb /^ class Filter$/;" c class:Nexpose
31
+ Generate report.rb /^ class Generate$/;" c class:Nexpose
32
+ Global role.rb /^ module Global$/;" m class:Nexpose.Privilege
33
+ HTMLForm creds.rb /^ class HTMLForm$/;" c class:Nexpose
34
+ HTMLForms creds.rb /^ class HTMLForms$/;" c class:Nexpose
35
+ Header creds.rb /^ class Header$/;" c class:Nexpose
36
+ Headers creds.rb /^ class Headers$/;" c class:Nexpose
37
+ HostName site.rb /^ class HostName$/;" c
38
+ IPRange site.rb /^ class IPRange$/;" c
39
+ Nexpose alert.rb /^module Nexpose$/;" m
40
+ Nexpose api_request.rb /^module Nexpose$/;" m
41
+ Nexpose common.rb /^module Nexpose$/;" m
42
+ Nexpose connection.rb /^module Nexpose$/;" m
43
+ Nexpose creds.rb /^module Nexpose$/;" m
44
+ Nexpose error.rb /^module Nexpose$/;" m
45
+ Nexpose group.rb /^module Nexpose$/;" m
46
+ Nexpose manage.rb /^module Nexpose$/;" m
47
+ Nexpose misc.rb /^module Nexpose$/;" m
48
+ Nexpose report.rb /^module Nexpose$/;" m
49
+ Nexpose role.rb /^module Nexpose$/;" m
50
+ Nexpose scan.rb /^module Nexpose$/;" m
51
+ Nexpose scan_engine.rb /^module Nexpose$/;" m
52
+ Nexpose silo.rb /^module Nexpose$/;" m
53
+ Nexpose site.rb /^module Nexpose$/;" m
54
+ Nexpose ticket.rb /^module Nexpose$/;" m
55
+ Nexpose user.rb /^module Nexpose$/;" m
56
+ Nexpose util.rb /^module Nexpose$/;" m
57
+ Nexpose vuln.rb /^module Nexpose$/;" m
58
+ NexposeAPI group.rb /^ module NexposeAPI$/;" m class:Nexpose
59
+ NexposeAPI manage.rb /^ module NexposeAPI$/;" m class:Nexpose
60
+ NexposeAPI misc.rb /^ module NexposeAPI$/;" m class:Nexpose
61
+ NexposeAPI report.rb /^ module NexposeAPI$/;" m class:Nexpose
62
+ NexposeAPI role.rb /^ module NexposeAPI$/;" m class:Nexpose
63
+ NexposeAPI scan.rb /^ module NexposeAPI$/;" m class:Nexpose
64
+ NexposeAPI scan_engine.rb /^ module NexposeAPI$/;" m class:Nexpose
65
+ NexposeAPI silo.rb /^ module NexposeAPI$/;" m class:Nexpose
66
+ NexposeAPI site.rb /^ module NexposeAPI$/;" m class:Nexpose
67
+ NexposeAPI ticket.rb /^ module NexposeAPI$/;" m class:Nexpose
68
+ NexposeAPI vuln.rb /^ module NexposeAPI$/;" m class:Nexpose
69
+ Nodes scan.rb /^ class Nodes$/;" c class:Nexpose.ScanSummary
70
+ PEMKey creds.rb /^ class PEMKey$/;" c class:Nexpose
71
+ Priority ticket.rb /^ module Priority$/;" m class:Nexpose.Ticket
72
+ Privilege role.rb /^ module Privilege$/;" m class:Nexpose
73
+ Reference vuln.rb /^ class Reference$/;" c class:Nexpose
74
+ ReportConfig report.rb /^ class ReportConfig < AdhocReportConfig$/;" c class:Nexpose
75
+ ReportConfigSummary report.rb /^ class ReportConfigSummary$/;" c class:Nexpose
76
+ ReportSummary report.rb /^ class ReportSummary$/;" c class:Nexpose
77
+ ReportTemplate report.rb /^ class ReportTemplate$/;" c class:Nexpose
78
+ ReportTemplateSummary report.rb /^ class ReportTemplateSummary$/;" c class:Nexpose
79
+ Role role.rb /^ class Role < RoleSummary$/;" c class:Nexpose
80
+ RoleSummary role.rb /^ class RoleSummary$/;" c class:Nexpose
81
+ SMTPAlert alert.rb /^ class SMTPAlert$/;" c
82
+ SNMPAlert alert.rb /^ class SNMPAlert$/;" c
83
+ Sanitize util.rb /^ module Sanitize$/;" m class:Nexpose
84
+ ScanFilter alert.rb /^ class ScanFilter$/;" c
85
+ ScanFilter scan.rb /^ class ScanFilter$/;" c
86
+ ScanSummary scan.rb /^ class ScanSummary$/;" c class:Nexpose
87
+ Schedule common.rb /^ class Schedule$/;" c class:Nexpose
88
+ Scope common.rb /^ module Scope$/;" m class:Nexpose
89
+ Section report.rb /^ class Section$/;" c class:Nexpose
90
+ Site role.rb /^ module Site$/;" m class:Nexpose.Privilege
91
+ Site site.rb /^ class Site$/;" c
92
+ SiteListing site.rb /^ class SiteListing$/;" c
93
+ SiteSummary site.rb /^ class SiteSummary$/;" c
94
+ State ticket.rb /^ module State$/;" m class:Nexpose.Ticket
95
+ Status scan.rb /^ class Status$/;" c class:Nexpose.ScanSummary
96
+ SyslogAlert alert.rb /^ class SyslogAlert$/;" c
97
+ Tasks scan.rb /^ class Tasks$/;" c class:Nexpose.ScanSummary
98
+ Ticket ticket.rb /^ module Ticket$/;" m class:Nexpose
99
+ TicketSummary ticket.rb /^ class TicketSummary$/;" c class:Nexpose
100
+ UserAuthenticator user.rb /^ class UserAuthenticator$/;" c class:Nexpose
101
+ UserConfig user.rb /^ class UserConfig$/;" c class:Nexpose
102
+ UserSummary user.rb /^ class UserSummary$/;" c class:Nexpose
103
+ VulnFilter alert.rb /^ class VulnFilter$/;" c
104
+ Vulnerabilities scan.rb /^ class Vulnerabilities$/;" c class:Nexpose.ScanSummary
105
+ Vulnerability vuln.rb /^ class Vulnerability$/;" c class:Nexpose
106
+ VulnerabilityDetail vuln.rb /^ class VulnerabilityDetail < VulnerabilitySummary$/;" c class:Nexpose
107
+ VulnerabilitySummary vuln.rb /^ class VulnerabilitySummary < Vulnerability$/;" c class:Nexpose
108
+ XMLUtils util.rb /^ module XMLUtils$/;" m class:Nexpose
109
+ add scan_engine.rb /^ def add(engine)$/;" f class:Nexpose.EnginePool
110
+ add_asset site.rb /^ def add_asset(asset)$/;" f class:Site
111
+ add_field creds.rb /^ def add_field(field)$/;" f class:Nexpose.HTMLForm
112
+ add_filter report.rb /^ def add_filter(type, id)$/;" f class:Nexpose.AdhocReportConfig
113
+ add_header creds.rb /^ def add_header(header)$/;" f class:Nexpose.Headers
114
+ add_host site.rb /^ def add_host(hostname)$/;" f class:Site
115
+ add_html_form creds.rb /^ def add_html_form(html_form)$/;" f class:Nexpose.HTMLForms
116
+ add_ip site.rb /^ def add_ip(ip)$/;" f class:Site
117
+ add_recipient alert.rb /^ def add_recipient(recipient)$/;" f class:SMTPAlert
118
+ add_severity scan.rb /^ def add_severity(severity, count)$/;" f class:Nexpose.ScanSummary.Status
119
+ add_site scan_engine.rb /^ def add_site(site_id)$/;" f class:Nexpose.EngineConfig
120
+ asset_group_delete group.rb /^ def asset_group_delete(id)$/;" f class:Nexpose.NexposeAPI
121
+ asset_groups group.rb /^ def asset_groups$/;" f class:Nexpose.NexposeAPI
122
+ attributes api_request.rb /^ def attributes(*args)$/;" f class:Nexpose.APIRequest
123
+ build report.rb /^ def self.build(connection, site_id, site_name, type, format, generate_now = false)$/;" F class:Nexpose.ReportConfig
124
+ console_command manage.rb /^ def console_command(cmd_string)$/;" f class:Nexpose.NexposeAPI
125
+ copy role.rb /^ def self.copy(nsc, name, scope = Scope::SILO)$/;" F class:Nexpose.Role
126
+ copy site.rb /^ def self.copy(connection, id)$/;" F class:Site
127
+ create scan_engine.rb /^ def create(connection)$/;" f class:Nexpose.EnginePool
128
+ create_multi_tenant_user silo.rb /^ def create_multi_tenant_user(user_config, silo_configs)$/;" f class:Nexpose.NexposeAPI
129
+ create_silo silo.rb /^ def create_silo silo_config$/;" f
130
+ create_silo_profile silo.rb /^ def create_silo_profile silo_profile_config, permissions$/;" f class:Nexpose
131
+ create_ticket ticket.rb /^ def create_ticket(ticket_info)$/;" f class:Nexpose.NexposeAPI
132
+ delete group.rb /^ def delete(connection)$/;" f class:Nexpose.AssetGroupSummary
133
+ delete report.rb /^ def delete(connection)$/;" f class:Nexpose.ReportConfig
134
+ delete report.rb /^ def delete(connection)$/;" f class:Nexpose.ReportSummary
135
+ delete report.rb /^ def delete(connection)$/;" f class:Nexpose.ReportTemplate
136
+ delete role.rb /^ def delete(nsc)$/;" f class:Nexpose.Role
137
+ delete scan_engine.rb /^ def delete$/;" f class:Nexpose.EngineConfig
138
+ delete scan_engine.rb /^ def delete(connection)$/;" f class:Nexpose.EnginePool
139
+ delete site.rb /^ def delete(connection)$/;" f class:Site
140
+ delete user.rb /^ def delete(connection)$/;" f class:Nexpose.UserConfig
141
+ delete user.rb /^ def self.delete(connection, user_id)$/;" F class:Nexpose.UserConfig
142
+ delete_engine scan_engine.rb /^ def delete_engine(engine_id)$/;" f class:Nexpose.NexposeAPI
143
+ delete_mtu silo.rb /^ def delete_mtu user_name, user_id$/;" f class:Nexpose
144
+ delete_report report.rb /^ def delete_report(report_id)$/;" f class:Nexpose.NexposeAPI
145
+ delete_report_config report.rb /^ def delete_report_config(report_config_id)$/;" f class:Nexpose.NexposeAPI
146
+ delete_silo silo.rb /^ def delete_silo name, id$/;" f
147
+ delete_silo_profile silo.rb /^ def delete_silo_profile name, id$/;" f
148
+ delete_ticket ticket.rb /^ def delete_ticket(ticket)$/;" f class:Nexpose.NexposeAPI
149
+ delete_tickets ticket.rb /^ def delete_tickets(tickets)$/;" f class:Nexpose.NexposeAPI
150
+ device_delete misc.rb /^ def device_delete(param)$/;" f class:Nexpose.NexposeAPI
151
+ download connection.rb /^ def download(url, file_name = nil)$/;" f class:Nexpose.Connection
152
+ dynamic? site.rb /^ def dynamic?$/;" f class:Site
153
+ engine_activity scan_engine.rb /^ def engine_activity(engine_id)$/;" f class:Nexpose.NexposeAPI
154
+ eql? creds.rb /^ def eql?(other)$/;" f class:Nexpose.AdminCredentials
155
+ eql? site.rb /^ def eql?(other)$/;" f class:HostName
156
+ eql? site.rb /^ def eql?(other)$/;" f class:IPRange
157
+ execute api_request.rb /^ def execute$/;" f class:Nexpose.APIRequest
158
+ execute api_request.rb /^ def self.execute(url, req, api_version='1.1')$/;" F class:Nexpose.APIRequest
159
+ execute connection.rb /^ def execute(xml, version = '1.1')$/;" f class:Nexpose.Connection
160
+ for_service creds.rb /^ def self.for_service(service, user, password, realm = nil, host = nil, port = nil)$/;" F class:Nexpose.AdminCredentials
161
+ generate report.rb /^ def generate(connection)$/;" f class:Nexpose.AdhocReportConfig
162
+ generate report.rb /^ def generate(connection, wait = false)$/;" f class:Nexpose.ReportConfig
163
+ generate_report report.rb /^ def generate_report(report_id, wait = false)$/;" f class:Nexpose.NexposeAPI
164
+ get_report_config report.rb /^ def get_report_config(report_config_id)$/;" f class:Nexpose.NexposeAPI
165
+ get_report_template report.rb /^ def get_report_template(template_id)$/;" f class:Nexpose.NexposeAPI
166
+ get_user_id user.rb /^ def self.get_user_id(connection, user_name)$/;" F class:Nexpose.UserSummary
167
+ hash creds.rb /^ def hash$/;" f class:Nexpose.AdminCredentials
168
+ hash site.rb /^ def hash$/;" f class:HostName
169
+ hash site.rb /^ def hash$/;" f class:IPRange
170
+ initialize alert.rb /^ def initialize(community, server)$/;" f class:SNMPAlert
171
+ initialize alert.rb /^ def initialize(name, enabled = 1, max_alerts = -1)$/;" f class:Nexpose.Alert
172
+ initialize alert.rb /^ def initialize(sender, server, limit_text = 0)$/;" f class:SMTPAlert
173
+ initialize alert.rb /^ def initialize(server)$/;" f class:SyslogAlert
174
+ initialize alert.rb /^ def initialize(severity = 1, confirmed = 1, unconfirmed = 1, potential = 1)$/;" f class:VulnFilter
175
+ initialize alert.rb /^ def initialize(start = 0, stop = 0, fail = 0, resume = 0, pause = 0)$/;" f class:ScanFilter
176
+ initialize api_request.rb /^ def initialize(req, url, api_version='1.1')$/;" f class:Nexpose.APIRequest
177
+ initialize common.rb /^ def initialize(to_all_authorized, send_to_owner_as, send_to_acl_as, send_as)$/;" f class:Nexpose.Email
178
+ initialize common.rb /^ def initialize(type, interval, start, enabled = true)$/;" f class:Nexpose.Schedule
179
+ initialize connection.rb /^ def initialize(ip, user, pass, port = 3780, silo_id = nil)$/;" f class:Nexpose.Connection
180
+ initialize creds.rb /^ def initialize(isblob = false)$/;" f class:Nexpose.AdminCredentials
181
+ initialize creds.rb /^ def initialize(name, action, method, enctype)$/;" f class:Nexpose.HTMLForm
182
+ initialize creds.rb /^ def initialize(name, value)$/;" f class:Nexpose.Header
183
+ initialize creds.rb /^ def initialize(name, value, type, dynamic, checked)$/;" f class:Nexpose.Field
184
+ initialize creds.rb /^ def initialize(parentpage, soft403, webapproot)$/;" f class:Nexpose.HTMLForms
185
+ initialize creds.rb /^ def initialize(webapproot, soft403)$/;" f class:Nexpose.Headers
186
+ initialize error.rb /^ def initialize(req)$/;" f class:Nexpose.AuthenticationFailed
187
+ initialize error.rb /^ def initialize(req, reason = '')$/;" f class:Nexpose.APIError
188
+ initialize group.rb /^ def initialize(id, name, desc, risk)$/;" f class:Nexpose.AssetGroupSummary
189
+ initialize group.rb /^ def initialize(name, desc, id = -1, risk = 0.0)$/;" f class:Nexpose.AssetGroup
190
+ initialize report.rb /^ def initialize(after_scan, scheduled, schedule = nil)$/;" f class:Nexpose.Generate
191
+ initialize report.rb /^ def initialize(config_id, template_id, status, generated_on, uri, scope)$/;" f class:Nexpose.ReportConfigSummary
192
+ initialize report.rb /^ def initialize(credential)$/;" f class:Nexpose.ExportCredential
193
+ initialize report.rb /^ def initialize(id, config_id, status, generated_on, uri)$/;" f class:Nexpose.ReportSummary
194
+ initialize report.rb /^ def initialize(id, name, type, scope, built_in, description)$/;" f class:Nexpose.ReportTemplateSummary
195
+ initialize report.rb /^ def initialize(name)$/;" f class:Nexpose.Section
196
+ initialize report.rb /^ def initialize(name, template_id, format, id = -1, owner = nil, time_zone = nil)$/;" f class:Nexpose.ReportConfig
197
+ initialize report.rb /^ def initialize(name, type = 'document', id = -1, scope = 'silo', built_in = false)$/;" f class:Nexpose.ReportTemplate
198
+ initialize report.rb /^ def initialize(store_on_server, location = nil, email = nil)$/;" f class:Nexpose.Delivery
199
+ initialize report.rb /^ def initialize(template_id, format, site_id = nil, owner = nil, time_zone = nil)$/;" f class:Nexpose.AdhocReportConfig
200
+ initialize report.rb /^ def initialize(type)$/;" f class:Nexpose.DBExport
201
+ initialize report.rb /^ def initialize(type, id)$/;" f class:Nexpose.Filter
202
+ initialize role.rb /^ def initialize(name, full_name, id, description, enabled = true, scope = Scope::SILO)$/;" f class:Nexpose.RoleSummary
203
+ initialize role.rb /^ def initialize(name, full_name, id, enabled = true, scope = Scope::SILO)$/;" f class:Nexpose.Role
204
+ initialize scan.rb /^ def initialize(severity = nil, count = 0)$/;" f class:Nexpose.ScanSummary.Status
205
+ initialize scan.rb /^ def initialize(live, dead, filtered, unresolved, other)$/;" f class:Nexpose.ScanSummary.Nodes
206
+ initialize scan.rb /^ def initialize(pending, active, completed)$/;" f class:Nexpose.ScanSummary.Tasks
207
+ initialize scan.rb /^ def initialize(vuln_exploit, vuln_version, vuln_potential,$/;" f class:Nexpose.ScanSummary.Vulnerabilities
208
+ initialize scan.rb /^ def initialize(scan_id, site_id, engine_id, status, start_time, end_time, message, tasks, nodes, vulnerabilities)$/;" f class:Nexpose.ScanSummary
209
+ initialize scan.rb /^ def initialize(scan_stop, scan_failed, scan_start)$/;" f class:ScanFilter
210
+ initialize scan_engine.rb /^ def initialize(connection, id = -1)$/;" f class:Nexpose.EngineConfig
211
+ initialize scan_engine.rb /^ def initialize(id, name, address, port, status, scope = 'silo')$/;" f class:Nexpose.EngineSummary
212
+ initialize scan_engine.rb /^ def initialize(id, name, scope = 'silo')$/;" f class:Nexpose.EnginePoolSummary
213
+ initialize scan_engine.rb /^ def initialize(name, id = -1, scope = 'silo')$/;" f class:Nexpose.EnginePool
214
+ initialize site.rb /^ def initialize(connection)$/;" f class:SiteListing
215
+ initialize site.rb /^ def initialize(from, to = nil)$/;" f class:IPRange
216
+ initialize site.rb /^ def initialize(hostname)$/;" f class:HostName
217
+ initialize site.rb /^ def initialize(id, address, site_id, risk_factor = 1.0, risk_score = 0.0)$/;" f class:Device
218
+ initialize site.rb /^ def initialize(id, name, description, risk_factor = 1.0, risk_score = 0.0)$/;" f class:SiteSummary
219
+ initialize site.rb /^ def initialize(name = nil, scan_template = 'full-audit')$/;" f class:Site
220
+ initialize ticket.rb /^ def initialize(id, name)$/;" f class:Nexpose.TicketSummary
221
+ initialize user.rb /^ def initialize(id, auth_module, auth_source, external = false)$/;" f class:Nexpose.UserAuthenticator
222
+ initialize user.rb /^ def initialize(id, auth_source, auth_module, user_name, full_name, email, is_admin, is_disabled, is_locked, site_count, group_count)$/;" f class:Nexpose.UserSummary
223
+ initialize user.rb /^ def initialize(name, full_name, password, role_name = 'user', id = -1, enabled = 1, email = nil, all_sites = false, all_groups = false)$/;" f class:Nexpose.UserConfig
224
+ initialize vuln.rb /^ def initialize(id, title, severity)$/;" f class:Nexpose.Vulnerability
225
+ initialize vuln.rb /^ def initialize(id, title, severity)$/;" f class:Nexpose.VulnerabilityDetail
226
+ initialize vuln.rb /^ def initialize(source, reference)$/;" f class:Nexpose.Reference
227
+ last_report report.rb /^ def last_report(report_config_id)$/;" f class:Nexpose.NexposeAPI
228
+ last_scan site.rb /^ def last_scan(site_id)$/;" f class:Nexpose
229
+ list user.rb /^ def self.list(connection)$/;" F class:Nexpose.UserAuthenticator
230
+ list_engines scan_engine.rb /^ def list_engines$/;" f class:Nexpose.NexposeAPI
231
+ list_mtu silo.rb /^ def list_mtu$/;" f class:Nexpose.NexposeAPI
232
+ list_silo_profiles silo.rb /^ def list_silo_profiles$/;" f class:Nexpose
233
+ list_silos silo.rb /^ def list_silos$/;" f
234
+ list_users misc.rb /^ def list_users$/;" f class:Nexpose.NexposeAPI
235
+ listing scan_engine.rb /^ def self.listing(connection)$/;" F class:Nexpose.EnginePoolSummary
236
+ listing user.rb /^ def self.listing(connection)$/;" F class:Nexpose.UserSummary
237
+ load group.rb /^ def self.load(connection, id)$/;" F class:Nexpose.AssetGroup
238
+ load report.rb /^ def self.load(connection, report_config_id)$/;" F class:Nexpose.ReportConfig
239
+ load report.rb /^ def self.load(connection, template_id)$/;" F class:Nexpose.ReportTemplate
240
+ load role.rb /^ def self.load(nsc, name, scope = Scope::SILO)$/;" F class:Nexpose.Role
241
+ load site.rb /^ def self.load(connection, id)$/;" F class:Site
242
+ load user.rb /^ def self.load(connection, user_id)$/;" F class:Nexpose.UserConfig
243
+ load_details scan_engine.rb /^ def load_details(connection)$/;" f class:Nexpose.EnginePool
244
+ login connection.rb /^ def login$/;" f class:Nexpose.Connection
245
+ logout connection.rb /^ def logout$/;" f class:Nexpose.Connection
246
+ make_xml util.rb /^ def make_xml(name, opts={}, data='', append_session_id=true)$/;" f class:Nexpose.XMLUtils
247
+ parse alert.rb /^ def self.parse(rexml)$/;" F class:Nexpose.Alert
248
+ parse alert.rb /^ def self.parse(xml)$/;" F class:SMTPAlert
249
+ parse alert.rb /^ def self.parse(xml)$/;" F class:SNMPAlert
250
+ parse alert.rb /^ def self.parse(xml)$/;" F class:ScanFilter
251
+ parse alert.rb /^ def self.parse(xml)$/;" F class:SyslogAlert
252
+ parse alert.rb /^ def self.parse(xml)$/;" F class:VulnFilter
253
+ parse common.rb /^ def self.parse(xml)$/;" F class:Nexpose.Email
254
+ parse common.rb /^ def self.parse(xml)$/;" F class:Nexpose.Schedule
255
+ parse group.rb /^ def self.parse(xml)$/;" F class:Nexpose.AssetGroup
256
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.DBExport
257
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.Delivery
258
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.ExportCredential
259
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.Filter
260
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.Generate
261
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.ReportConfig
262
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.ReportConfigSummary
263
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.ReportSummary
264
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.ReportTemplate
265
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.ReportTemplateSummary
266
+ parse report.rb /^ def self.parse(xml)$/;" F class:Nexpose.Section
267
+ parse role.rb /^ def self.parse(xml)$/;" F class:Nexpose.Role
268
+ parse role.rb /^ def self.parse(xml)$/;" F class:Nexpose.RoleSummary
269
+ parse scan.rb /^ def self.parse(rexml)$/;" F class:Nexpose.ScanSummary.Nodes
270
+ parse scan.rb /^ def self.parse(rexml)$/;" F class:Nexpose.ScanSummary.Tasks
271
+ parse scan.rb /^ def self.parse(scan_id, rexml)$/;" F class:Nexpose.ScanSummary.Vulnerabilities
272
+ parse scan.rb /^ def self.parse(xml)$/;" F class:Nexpose.ScanSummary
273
+ parse site.rb /^ def parse(r)$/;" f class:SiteListing
274
+ parse site.rb /^ def self.parse(rexml)$/;" F class:Site
275
+ parse ticket.rb /^ def self.parse(xml)$/;" F class:Nexpose.TicketSummary
276
+ parse vuln.rb /^ def self.parse(xml)$/;" F class:Nexpose.VulnerabilityDetail
277
+ parse vuln.rb /^ def self.parse(xml)$/;" F class:Nexpose.VulnerabilitySummary
278
+ parse_all report.rb /^ def self.parse_all(response)$/;" F class:Nexpose.ReportSummary
279
+ parse_attributes vuln.rb /^ def self.parse_attributes(xml)$/;" F class:Nexpose.VulnerabilitySummary
280
+ parse_xml util.rb /^ def parse_xml(xml)$/;" f class:Nexpose.XMLUtils
281
+ prepare_http_client api_request.rb /^ def prepare_http_client$/;" f class:Nexpose.APIRequest
282
+ replace_entities util.rb /^ def replace_entities(str)$/;" f class:Nexpose.Sanitize
283
+ report_history report.rb /^ def report_history(report_config_id)$/;" f class:Nexpose.NexposeAPI
284
+ report_listing report.rb /^ def report_listing$/;" f class:Nexpose.NexposeAPI
285
+ report_template_listing report.rb /^ def report_template_listing$/;" f class:Nexpose.NexposeAPI
286
+ rescan_assets group.rb /^ def rescan_assets(connection)$/;" f class:Nexpose.AssetGroup
287
+ restart manage.rb /^ def restart$/;" f class:Nexpose.NexposeAPI
288
+ role_delete role.rb /^ def role_delete(role, scope = Scope::SILO)$/;" f class:Nexpose.NexposeAPI
289
+ role_listing role.rb /^ def role_listing$/;" f class:Nexpose.NexposeAPI
290
+ save group.rb /^ def save(connection)$/;" f class:Nexpose.AssetGroup
291
+ save report.rb /^ def save(connection)$/;" f class:Nexpose.ReportTemplate
292
+ save report.rb /^ def save(connection, generate_now = false)$/;" f class:Nexpose.ReportConfig
293
+ save role.rb /^ def save(nsc)$/;" f class:Nexpose.Role
294
+ save scan_engine.rb /^ def save$/;" f class:Nexpose.EngineConfig
295
+ save site.rb /^ def save(connection)$/;" f class:Site
296
+ save user.rb /^ def save(connection)$/;" f class:Nexpose.UserConfig
297
+ scan site.rb /^ def scan(connection, sync_id = nil)$/;" f class:Site
298
+ scan_activity scan.rb /^ def scan_activity$/;" f class:Nexpose.NexposeAPI
299
+ scan_pause scan.rb /^ def scan_pause(scan_id)$/;" f class:Nexpose.NexposeAPI
300
+ scan_resume scan.rb /^ def scan_resume(scan_id)$/;" f class:Nexpose.NexposeAPI
301
+ scan_statistics scan.rb /^ def scan_statistics(scan_id)$/;" f class:Nexpose.NexposeAPI
302
+ scan_status scan.rb /^ def scan_status(param)$/;" f class:Nexpose.NexposeAPI
303
+ scan_stop scan.rb /^ def scan_stop(scan_id, wait_sec = 0)$/;" f class:Nexpose.NexposeAPI
304
+ send_log manage.rb /^ def send_log(key_id, protocol, transport)$/;" f class:Nexpose.NexposeAPI
305
+ set_blob creds.rb /^ def set_blob(securityblob)$/;" f class:Nexpose.AdminCredentials
306
+ set_credentials creds.rb /^ def set_credentials(service, host, port, userid, password, realm)$/;" f class:Nexpose.AdminCredentials
307
+ set_headers creds.rb /^ def set_headers(headers)$/;" f class:Nexpose.AdminCredentials
308
+ set_host creds.rb /^ def set_host(host)$/;" f class:Nexpose.AdminCredentials
309
+ set_html_forms creds.rb /^ def set_html_forms(html_forms)$/;" f class:Nexpose.AdminCredentials
310
+ set_privilege_credentials creds.rb /^ def set_privilege_credentials(type, username, password)$/;" f class:Nexpose.AdminCredentials
311
+ set_service creds.rb /^ def set_service(service)$/;" f class:Nexpose.AdminCredentials
312
+ site_delete site.rb /^ def site_delete(param)$/;" f class:Nexpose.NexposeAPI
313
+ site_device_listing site.rb /^ def site_device_listing(site_id = nil)$/;" f class:Nexpose.NexposeAPI
314
+ site_device_scan_start site.rb /^ def site_device_scan_start(site_id, devices, hosts = nil)$/;" f class:Nexpose
315
+ site_listing site.rb /^ def site_listing$/;" f class:Nexpose.NexposeAPI
316
+ site_scan_history site.rb /^ def site_scan_history(site_id)$/;" f class:Nexpose
317
+ start_update manage.rb /^ def start_update$/;" f class:Nexpose.NexposeAPI
318
+ system_information manage.rb /^ def system_information$/;" f class:Nexpose.NexposeAPI
319
+ ticket_listing ticket.rb /^ def ticket_listing$/;" f class:Nexpose.NexposeAPI
320
+ to_s error.rb /^ def to_s$/;" f class:Nexpose.APIError
321
+ to_s scan_engine.rb /^ def to_s$/;" f class:Nexpose.EnginePool
322
+ to_s scan_engine.rb /^ def to_s$/;" f class:Nexpose.EnginePoolSummary
323
+ to_s user.rb /^ def to_s$/;" f class:Nexpose.UserConfig
324
+ to_s user.rb /^ def to_s$/;" f class:Nexpose.UserSummary
325
+ to_xml alert.rb /^ def to_xml$/;" f class:Nexpose.Alert
326
+ to_xml alert.rb /^ def to_xml$/;" f class:SMTPAlert
327
+ to_xml alert.rb /^ def to_xml$/;" f class:SNMPAlert
328
+ to_xml alert.rb /^ def to_xml$/;" f class:ScanFilter
329
+ to_xml alert.rb /^ def to_xml$/;" f class:SyslogAlert
330
+ to_xml alert.rb /^ def to_xml$/;" f class:VulnFilter
331
+ to_xml common.rb /^ def to_xml$/;" f class:Nexpose.Email
332
+ to_xml common.rb /^ def to_xml$/;" f class:Nexpose.Schedule
333
+ to_xml creds.rb /^ def to_xml$/;" f class:Nexpose.AdminCredentials
334
+ to_xml group.rb /^ def to_xml$/;" f class:Nexpose.AssetGroup
335
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.AdhocReportConfig
336
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.DBExport
337
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.Delivery
338
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.ExportCredential
339
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.Filter
340
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.Generate
341
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.ReportConfig
342
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.ReportTemplate
343
+ to_xml report.rb /^ def to_xml$/;" f class:Nexpose.Section
344
+ to_xml role.rb /^ def to_xml$/;" f
345
+ to_xml scan_engine.rb /^ def to_xml$/;" f class:Nexpose.EngineConfig
346
+ to_xml site.rb /^ def to_xml$/;" f class:HostName
347
+ to_xml site.rb /^ def to_xml$/;" f class:IPRange
348
+ to_xml site.rb /^ def to_xml$/;" f class:Site
349
+ to_xml user.rb /^ def to_xml$/;" f class:Nexpose.UserConfig
350
+ to_xml_elem creds.rb /^ def to_xml_elem$/;" f class:Nexpose.AdminCredentials
351
+ to_xml_elem creds.rb /^ def to_xml_elem$/;" f class:Nexpose.Field
352
+ to_xml_elem creds.rb /^ def to_xml_elem$/;" f class:Nexpose.HTMLForm
353
+ to_xml_elem creds.rb /^ def to_xml_elem$/;" f class:Nexpose.HTMLForms
354
+ to_xml_elem creds.rb /^ def to_xml_elem$/;" f class:Nexpose.Header
355
+ to_xml_elem creds.rb /^ def to_xml_elem$/;" f class:Nexpose.Headers
356
+ to_xml_elem site.rb /^ def to_xml_elem$/;" f class:HostName
357
+ to_xml_elem site.rb /^ def to_xml_elem$/;" f class:IPRange
358
+ update scan_engine.rb /^ def update(connection)$/;" f class:Nexpose.EnginePool
359
+ vuln_details vuln.rb /^ def vuln_details(vuln_id)$/;" f class:Nexpose.NexposeAPI
360
+ vuln_exception_approve vuln.rb /^ def vuln_exception_approve(input)$/;" f class:Nexpose.NexposeAPI
361
+ vuln_exception_create vuln.rb /^ def vuln_exception_create(input)$/;" f class:Nexpose.NexposeAPI
362
+ vuln_exception_delete vuln.rb /^ def vuln_exception_delete(exception_id)$/;" f class:Nexpose.NexposeAPI
363
+ vuln_exception_listing vuln.rb /^ def vuln_exception_listing(status = nil)$/;" f class:Nexpose.NexposeAPI
364
+ vuln_exception_recall vuln.rb /^ def vuln_exception_recall(exception_id)$/;" f class:Nexpose.NexposeAPI
365
+ vuln_exception_reject vuln.rb /^ def vuln_exception_reject(input)$/;" f class:Nexpose.NexposeAPI
366
+ vuln_exception_resubmit vuln.rb /^ def vuln_exception_resubmit(input)$/;" f class:Nexpose.NexposeAPI
367
+ vuln_exception_update_comment vuln.rb /^ def vuln_exception_update_comment(input)$/;" f class:Nexpose.NexposeAPI
368
+ vuln_exception_update_expiration_date vuln.rb /^ def vuln_exception_update_expiration_date(input)$/;" f class:Nexpose.NexposeAPI
369
+ vuln_listing vuln.rb /^ def vuln_listing(full = false)$/;" f class:Nexpose.NexposeAPI
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexpose
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
5
- prerelease:
4
+ version: 0.2.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - HD Moore
@@ -11,38 +10,34 @@ authors:
11
10
  autorequire:
12
11
  bindir: bin
13
12
  cert_chain: []
14
- date: 2013-05-08 00:00:00.000000000 Z
13
+ date: 2013-05-20 00:00:00.000000000 Z
15
14
  dependencies:
16
15
  - !ruby/object:Gem::Dependency
17
16
  name: librex
18
17
  requirement: !ruby/object:Gem::Requirement
19
- none: false
20
18
  requirements:
21
- - - ! '>='
19
+ - - '>='
22
20
  - !ruby/object:Gem::Version
23
21
  version: 0.0.68
24
22
  type: :runtime
25
23
  prerelease: false
26
24
  version_requirements: !ruby/object:Gem::Requirement
27
- none: false
28
25
  requirements:
29
- - - ! '>='
26
+ - - '>='
30
27
  - !ruby/object:Gem::Version
31
28
  version: 0.0.68
32
29
  - !ruby/object:Gem::Dependency
33
30
  name: rex
34
31
  requirement: !ruby/object:Gem::Requirement
35
- none: false
36
32
  requirements:
37
- - - ! '>='
33
+ - - '>='
38
34
  - !ruby/object:Gem::Version
39
35
  version: 1.0.2
40
36
  type: :runtime
41
37
  prerelease: false
42
38
  version_requirements: !ruby/object:Gem::Requirement
43
- none: false
44
39
  requirements:
45
- - - ! '>='
40
+ - - '>='
46
41
  - !ruby/object:Gem::Version
47
42
  version: 1.0.2
48
43
  description: This gem provides a Ruby API to the Nexpose vulnerability management
@@ -75,6 +70,7 @@ files:
75
70
  - lib/nexpose/alert.rb
76
71
  - lib/nexpose/silo.rb
77
72
  - lib/nexpose/user.rb
73
+ - lib/nexpose/tags
78
74
  - lib/nexpose/connection.rb
79
75
  - lib/nexpose/misc.rb
80
76
  - lib/nexpose/error.rb
@@ -82,26 +78,25 @@ files:
82
78
  homepage: https://github.com/rapid7/nexpose-client
83
79
  licenses:
84
80
  - BSD
81
+ metadata: {}
85
82
  post_install_message:
86
83
  rdoc_options: []
87
84
  require_paths:
88
85
  - lib
89
86
  required_ruby_version: !ruby/object:Gem::Requirement
90
- none: false
91
87
  requirements:
92
- - - ! '>='
88
+ - - '>='
93
89
  - !ruby/object:Gem::Version
94
90
  version: 1.8.7
95
91
  required_rubygems_version: !ruby/object:Gem::Requirement
96
- none: false
97
92
  requirements:
98
- - - ! '>='
93
+ - - '>='
99
94
  - !ruby/object:Gem::Version
100
95
  version: '0'
101
96
  requirements: []
102
97
  rubyforge_project:
103
- rubygems_version: 1.8.24
98
+ rubygems_version: 2.0.3
104
99
  signing_key:
105
- specification_version: 3
100
+ specification_version: 4
106
101
  summary: Ruby API for Rapid7 Nexpose
107
102
  test_files: []