]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
simplified findbits.main() loop
authordn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 20 Jun 2012 20:41:38 +0000 (20:41 +0000)
committerdn337t@gmail.com <dn337t@gmail.com@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Wed, 20 Jun 2012 20:41:38 +0000 (20:41 +0000)
tools/findbits.py

index 84f4670f6cdb858197557852bace5a46b3718841..4e2f18dccea61dda05b32efb7bedb4eeb92d7161 100755 (executable)
@@ -85,11 +85,11 @@ def main():
                16:'HEX',
                        }
 
-       for base in 2,8,10,16:
+       for base, base_name in sorted(bases.iteritems()):
                try:
                        number= int(sys.argv[1],base)
                        print
-                       print 'Trying', bases[base]
+                       print 'Trying', base_name
                        # do BINARY as specified to preserve leading zeros
                        if base == 2:
                                domatch(sys.argv[1],sys.argv[2])
Impressum, Datenschutz