Commit ef3449a9 by Marcin Bury

Waiting for empty print queue

parent 3ba73ba6
...@@ -4,6 +4,8 @@ import SimpleHTTPServer ...@@ -4,6 +4,8 @@ import SimpleHTTPServer
import BaseHTTPServer import BaseHTTPServer
import threading import threading
from printer import printer_queue
from routersploit.utils import ( from routersploit.utils import (
print_info, print_info,
print_error, print_error,
...@@ -15,6 +17,9 @@ from routersploit.utils import ( ...@@ -15,6 +17,9 @@ from routersploit.utils import (
def shell(exploit, architecture="", method="", **params): def shell(exploit, architecture="", method="", **params):
while 1: while 1:
while not printer_queue.empty():
pass
cmd = raw_input("cmd > ") cmd = raw_input("cmd > ")
if cmd in ["quit", "exit"]: if cmd in ["quit", "exit"]:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment