Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit

Permalink
Fixed high cpu usage in some specific cases
Browse files Browse the repository at this point in the history
  • Loading branch information
lgandx committed May 28, 2014
1 parent af30d21 commit 4558861
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Responder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

import sys,struct,SocketServer,re,optparse,socket,thread,Fingerprint,random,os,ConfigParser,BaseHTTPServer, select,urlparse,zlib, string
import sys,struct,SocketServer,re,optparse,socket,thread,Fingerprint,random,os,ConfigParser,BaseHTTPServer, select,urlparse,zlib, string, time
from SocketServer import TCPServer, UDPServer, ThreadingMixIn, StreamRequestHandler, BaseRequestHandler,BaseServer
from Fingerprint import RunSmbFinger,OsNameClientVersion
from odict import OrderedDict
Expand Down Expand Up @@ -2510,7 +2510,7 @@ def main():
thread.start_new(serve_thread_udp,('', 137,NB)) #NBNS
thread.start_new(serve_thread_udp_LLMNR,('', 5355, LLMNR)) #LLMNR
while num_thrd > 0:
pass
time.sleep(1)
except KeyboardInterrupt:
exit()

Expand All @@ -2519,3 +2519,4 @@ def main():
main()
except:
raise

0 comments on commit 4558861

Please sign in to comment.