File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -122,15 +122,27 @@ def parse_ipv4(records)
122
122
records . each do |ipv4 |
123
123
# ip
124
124
# protocols
125
- print_status ( "#{ ipv4 [ 'ip' ] } - #{ ipv4 [ 'protocols' ] . join ( ',' ) } " )
125
+ ip = ipv4 [ 'ip' ]
126
+ protocols = ipv4 [ 'protocols' ]
127
+
128
+ protocols . each do |protocol |
129
+ print_good ( "#{ ipv4 [ 'ip' ] } - #{ ipv4 [ 'protocols' ] . join ( ',' ) } " )
130
+ port , name = protocol . split ( '/' )
131
+ report_service ( :host => ip , :port => port , :name => name )
132
+ end
126
133
end
127
134
end
128
135
129
136
def parse_websites ( records )
130
137
records . each do |website |
131
138
# domain
132
139
# alexa_rank
133
- print_status ( "#{ website [ 'domain' ] } - #{ website [ 'alexa_rank' ] } " )
140
+ print_good ( "#{ website [ 'domain' ] } - #{ website [ 'alexa_rank' ] } " )
141
+ domain = website [ 'domain' ]
142
+ ips = domain2ip ( domain )
143
+ ips . each do |ip |
144
+ report_host ( :host => ip )
145
+ end
134
146
end
135
147
end
136
148
You can’t perform that action at this time.
0 commit comments