Skip to content

Commit

Permalink
Waiting for empty print queue
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyoa committed Oct 26, 2016
1 parent 3ba73ba commit ef3449a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions routersploit/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import BaseHTTPServer
import threading

from printer import printer_queue

from routersploit.utils import (
print_info,
print_error,
Expand All @@ -15,6 +17,9 @@

def shell(exploit, architecture="", method="", **params):
while 1:
while not printer_queue.empty():
pass

cmd = raw_input("cmd > ")

if cmd in ["quit", "exit"]:
Expand Down

0 comments on commit ef3449a

Please sign in to comment.