Пример #1
0
 def display_cracked(self):
     ''' Show cracked targets from cracked.txt '''
     Color.pl('{+} displaying {C}cracked target(s){W}')
     name = CrackResult.cracked_file
     if not os.path.exists(name):
         Color.pl('{!} {O}file {C}%s{O} not found{W}' % name)
         return
     with open(name, 'r') as fid:
         json = loads(fid.read())
     for idx, item in enumerate(json, start=1):
         Color.pl('\n{+} Cracked target #%d:' % (idx))
         cr = CrackResult.load(item)
         cr.dump()
Пример #2
0
 def display_cracked(self):
     ''' Show cracked targets from cracked.txt '''
     Color.pl('{+} displaying {C}cracked target(s){W}')
     name = CrackResult.cracked_file
     if not os.path.exists(name):
         Color.pl('{!} {O}file {C}%s{O} not found{W}' % name)
         return
     f = open(name, 'r')
     json = loads(f.read())
     f.close()
     for (index, item) in enumerate(json):
         Color.pl('\n{+} Cracked target #%d:' % (index + 1))
         cr = CrackResult.load(item)
         cr.dump()
Пример #3
0
 def display_cracked(self):
     ''' Show cracked targets from cracked.txt '''
     Color.pl('{+} displaying {C}cracked target(s){W}')
     name = CrackResult.cracked_file
     if not os.path.exists(name):
         Color.pl('{!} {O}file {C}%s{O} not found{W}' % name)
         return
     f = open(name, 'r')
     json = loads(f.read())
     f.close()
     for (index, item) in enumerate(json):
         Color.pl('\n{+} Cracked target #%d:' % (index + 1))
         cr = CrackResult.load(item)
         cr.dump()