Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
-Removed exception handling for `Crypter.Recv` to allow exceptions to propegate and prevent hangs on failed key exchanges.
  • Loading branch information
Scratchcat1 authored Oct 5, 2017
1 parent d68dc0e commit 51b8b37
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions AATC_Crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ def Decrypt(self,data):
def Send(self,data):
self.con.sendall(codecs.encode(str(data)))
def Recv(self):
try:
data = recvall.recvall(self.con)
data = ast.literal_eval(codecs.decode(data))
# (Command,Arguments)
return data
except Exception as e:
print("Error in Cryptor while receiving ",e)
data = recvall.recvall(self.con)
data = ast.literal_eval(codecs.decode(data))
# (Command,Arguments)
return data

0 comments on commit 51b8b37

Please sign in to comment.