Skip to content

Commit 4dd245a

Browse files
authored
Merge pull request rapid7#20639 from adfoster-r7/fix-oracle-login-crash
Fix oracle login crash
2 parents a5dd6c3 + b2d1095 commit 4dd245a

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

lib/rex/parser/nmap_xml.rb

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# -*- coding: binary -*-
22

33
require 'rexml/document'
4+
require 'rexml/streamlistener'
45

56
module Rex
67
module Parser
@@ -37,6 +38,7 @@ module Parser
3738
# a big deal.
3839
#
3940
class NmapXMLStreamParser
41+
include REXML::StreamListener
4042

4143
#
4244
# Callback for processing each found host
@@ -145,20 +147,6 @@ def tag_end(name)
145147
reset_state
146148
end
147149
end
148-
149-
# We don't need these methods, but they're necessary to keep REXML happy
150-
def text(str) # :nodoc:
151-
end
152-
def xmldecl(version, encoding, standalone) # :nodoc:
153-
end
154-
def cdata # :nodoc:
155-
end
156-
def comment(str) # :nodoc:
157-
end
158-
def instruction(name, instruction) # :nodoc:
159-
end
160-
def attlist # :nodoc:
161-
end
162150
end
163151

164152
end

0 commit comments

Comments
 (0)