File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,6 +225,7 @@ def parse_fromdict(cls, rdict):
225225 slist .append (NmapService (portid = s [cname ]['_portid' ],
226226 protocol = s [cname ]['_protocol' ],
227227 state = s [cname ]['_state' ],
228+ owner = s [cname ]['_owner' ],
228229 service = s [cname ]['_service' ]))
229230
230231 nh = NmapHost (starttime = h ['__NmapHost__' ]['_starttime' ],
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22import json
33from libnmap .objects import NmapHost , NmapService , NmapReport
4+ from libnmap .objects .os import *
45from libnmap .parser import NmapParser
56
67
78class ReportEncoder (json .JSONEncoder ):
89 def default (self , obj ):
910 otype = {'NmapHost' : NmapHost ,
10- 'NmapOSFingerprint' : NmapHost .NmapOSFingerprint ,
11+ 'NmapOSFingerprint' : NmapOSFingerprint ,
12+ 'NmapOSMatch' : NmapOSMatch ,
13+ 'NmapOSClass' : NmapOSClass ,
14+ 'CPE' : CPE ,
15+ 'OSFPPortUsed' : OSFPPortUsed ,
1116 'NmapService' : NmapService ,
1217 'NmapReport' : NmapReport }
1318 if isinstance (obj , tuple (otype .values ())):
You can’t perform that action at this time.
0 commit comments