Advertisement
AndrewHaxalot

BlueBoxexloitFind9.py

Dec 6th, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.02 KB | None | 0 0
  1. #-------------------------------------------------------------------------------
  2. # Name:        BlueBox3xp10!tfinder
  3. # Purpose:      Detects apk files with bluebox exp10!t
  4. #
  5. # Author:      Palaniyappan Bala
  6. #
  7. # Created:     18/07/2013
  8. # Copyright:   (c) Vicatec Research & Analysis Lab 2013
  9. # Licence:     GPL
  10. #-------------------------------------------------------------------------------
  11. import zipfile, sys
  12.  
  13.  
  14.  
  15. def isexp10it(apk):
  16.     flag= False
  17.     List = []
  18.     fh = open(apk, 'r')
  19.     z = zipfile.ZipFile(fh)
  20.     for zip_entry in z.namelist():
  21.         List.append(zip_entry)
  22.     fh.close()
  23.     if len(List) != len(set(List)):
  24.         print "\nMalicious: BlueBox 3xp10!t Found!!!"
  25.         flag=True
  26.     else:
  27.         print "\nSAFE: File is good to use !!!"
  28.     return flag
  29.  
  30.  
  31.  
  32. def main():
  33.     if(len(sys.argv)<1):
  34.         print "Blueboxex10itFind.py <file>\n"
  35.         print "file - APK/ZIP file "
  36.         return
  37.     apk=sys.argv[1]
  38.     isexp10it(apk)
  39.  
  40.     pass
  41.  
  42. if __name__ == '__main__':
  43.     main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement