File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -83,6 +83,21 @@ def started(self):
8383 pass
8484 return rval
8585
86+ @property
87+ def startedstr (self ):
88+ """
89+ Accessor returning a human readable string of when the
90+ scan was started
91+
92+ :return: string
93+ """
94+ rval = ''
95+ try :
96+ rval = self . ['_nmaprun' ]['startstr' ]
97+ except (KeyError , TypeError , ValueError ):
98+ pass
99+ return rval
100+
86101 @property
87102 def commandline (self ):
88103 """
@@ -102,6 +117,16 @@ def version(self):
102117 """
103118 return self ._nmaprun ['version' ]
104119
120+ @property
121+ def xmlversion (self ):
122+ """
123+ Accessor returning the XML output
124+ version of the nmap report.
125+
126+ :return: string
127+ """
128+ return self ._nmaprun ['xmloutputversion' ]
129+
105130 @property
106131 def scan_type (self ):
107132 """
@@ -112,6 +137,22 @@ def scan_type(self):
112137 """
113138 return self ._scaninfo .get ('type' )
114139
140+ @property
141+ def numservices (self ):
142+ """
143+ Accessor returning the number of services the
144+ scan attempted to enumerate.
145+
146+ :return: integer
147+ """
148+ rval = - 1
149+ try :
150+ s_numsvcs = self ._scaninfo .get ('numservices' )
151+ rval = int (s_numsvcs )
152+ except (KeyError , TypeError , ValueError ):
153+ pass
154+ return rval
155+
115156 @property
116157 def hosts (self ):
117158 """
You can’t perform that action at this time.
0 commit comments