# Path: pyexfil/includes/encryption_wrappers.py
# def AESDecryptOFB(key, text, unpad=True):
# 	if type(key) == str:
# 		key = bytes(key, 'ascii')
# 	padded_key = key + b'\x00' * (32 - len(key))
# 	decryptor = AES.new(padded_key, mode, iv.encode("utf8"))
# 	plain = decryptor.decrypt(text)
# 	if unpad:
# 		plain = plain.replace(b'\x00', b'')
# 	return plain
# 
# def AESEncryptOFB(key, text):
# 	if type(key) == str:
# 		key = bytes(key, 'ascii')
# 	pad_len = (-len(text)) % 16
# 	padded_text = text + b'\x00' * pad_len
# 	padded_key = key +  b'\x00' * (32 - len(key))
# 	encs = AES.new(padded_key, mode, iv.encode("utf8"))
# 	plain = encs.encrypt(padded_text)
# 	return plain
# 
# Path: pyexfil/includes/encryption_wrappers.py
# PYEXFIL_DEFAULT_PASSWORD 	= base64.b64decode('VEhBVElTQURFQURQQVJST1Qh')


import logging
import thread
import socket
import sys
from pyexfil.includes.encryption_wrappers import AESDecryptOFB, AESEncryptOFB
from pyexfil.includes.encryption_wrappers import PYEXFIL_DEFAULT_PASSWORD
#!/usr/bin/env python2.7



sys.path.append("../../../")


# compatibility
try:
	input = raw_input
except NameError:

# Path: pyexfil/includes/encryption_wrappers.py
# def AESDecryptOFB(key, text, unpad=True):
# 	if type(key) == str:
# 		key = bytes(key, 'ascii')
# 	padded_key = key + b'\x00' * (32 - len(key))
# 	decryptor = AES.new(padded_key, mode, iv.encode("utf8"))
# 	plain = decryptor.decrypt(text)
# 	if unpad:
# 		plain = plain.replace(b'\x00', b'')
# 	return plain
# 
# def AESEncryptOFB(key, text):
# 	if type(key) == str:
# 		key = bytes(key, 'ascii')
# 	pad_len = (-len(text)) % 16
# 	padded_text = text + b'\x00' * pad_len
# 	padded_key = key +  b'\x00' * (32 - len(key))
# 	encs = AES.new(padded_key, mode, iv.encode("utf8"))
# 	plain = encs.encrypt(padded_text)
# 	return plain
# 
# Path: pyexfil/includes/encryption_wrappers.py
# PYEXFIL_DEFAULT_PASSWORD 	= base64.b64decode('VEhBVElTQURFQURQQVJST1Qh')


# Path: pyexfil/Comm/jetdirect/communicator.py
import logging
import thread
import socket
import sys
from pyexfil.includes.encryption_wrappers import AESDecryptOFB, AESEncryptOFB
from pyexfil.includes.encryption_wrappers import PYEXFIL_DEFAULT_PASSWORD

#!/usr/bin/env python2.7



sys.path.append("../../../")


# compatibility
try:
	input = raw_input
except NameError:

	pass