Beispiel #1
0
 def check_sig_ipa(self, data) -> bool:
     '''
     check mime is dmg or not
     '''
     if  data["Details"]["Properties"]["mime"] == "application/zlib" and \
         data["Location"]["Original"].endswith(".ipa"):
         x = dmg_unpack(data["Location"]["File"])
         if x:
             if check_packed_files(x, ["info.plist"]):
                 unpack_file(data, x)
                 return True
Beispiel #2
0
 def check_sig_dmg(self, data) -> bool:
     '''
     check mime is dmg or not
     '''
     if  data["Details"]["Properties"]["mime"] == "application/zlib" and \
         data["Location"]["Original"].endswith(".dmg"):
         temp_x = dmg_unpack(data["Location"]["File"])
         if temp_x:
             if check_packed_files(temp_x, ["info.plist"]) or check_packed_files(temp_x, ["Install"]):
                 unpack_file(data, temp_x)
                 return True
     return False