File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ v0.4.2, 26/10/2013 -- Bug corrected: issue 8
2+ There is no guarantee that "finished" or "runstats" will be
3+ received by event parser of process.py.
4+ Summary functions are now flagged as deprecated. To use data
5+ from scan summary of numbers of hosts up, the user of the
6+ lib will have to use NmapParser.parse() and the appropriate
7+ accessors.
18v0.4.1, 26/10/2013 -- Bug corrected: issue6
29 Infinite loop while launching several nmap scans in background
310v0.4.0, 28/10/2013 -- Bug corrected in missing data from nmap scan output
Original file line number Diff line number Diff line change 66import threading
77from threading import Thread
88from xml .dom import pulldom
9+ import warnings
910try :
1011 from Queue import Queue , Empty , Full
1112except ImportError :
@@ -423,6 +424,7 @@ def endtime(self):
423424
424425 :return: string. Unix timestamp
425426 """
427+ warnings .warn ("data collected from finished events are deprecated. Use NmapParser.parse()" , DeprecationWarning )
426428 return self .__endtime
427429
428430 @property
@@ -432,6 +434,7 @@ def elapsed(self):
432434
433435 :return: string
434436 """
437+ warnings .warn ("data collected from finished events are deprecated. Use NmapParser.parse()" , DeprecationWarning )
435438 return self .__elapsed
436439
437440 @property
@@ -441,6 +444,7 @@ def summary(self):
441444
442445 :return: string
443446 """
447+ warnings .warn ("data collected from finished events are deprecated. Use NmapParser.parse()" , DeprecationWarning )
444448 return self .__summary
445449
446450 @property
You can’t perform that action at this time.
0 commit comments