def unpackAll(self, data): try: in_data = data sPattern = '(eval\\(function\\(p,a,c,k,e,d.*)' enc_data = re.compile(sPattern).findall(in_data) if len(enc_data) == 0: sPattern = '(eval\\(function\\(p,a,c,k,e,r.*)' enc_data = re.compile(sPattern).findall(in_data) for enc_val in enc_data: unpack_val = unpackstd.unpack(enc_val) in_data = in_data.replace(enc_val, unpack_val) in_data = in_data.replace('\\\'', '\'') return in_data except: traceback.print_exc(file=sys.stdout) return in_data
def unpackAll(self, data): try: in_data = data sPattern = "(eval\\(function\\(p,a,c,k,e,d.*)" enc_data = re.compile(sPattern).findall(in_data) if len(enc_data) == 0: sPattern = "(eval\\(function\\(p,a,c,k,e,r.*)" enc_data = re.compile(sPattern).findall(in_data) for enc_val in enc_data: unpack_val = unpackstd.unpack(enc_val) in_data = in_data.replace(enc_val, unpack_val) in_data = in_data.replace("\\'", "'") return in_data except: traceback.print_exc(file=sys.stdout) return data