From: dn337t@gmail.com Date: Wed, 20 Jun 2012 20:41:38 +0000 (+0000) Subject: simplified findbits.main() loop X-Git-Tag: v1.0.0~194 X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/c3631ff82e2c1f44a1706e5b9cfb483d1bdb7238?ds=sidebyside simplified findbits.main() loop --- diff --git a/tools/findbits.py b/tools/findbits.py index 84f4670f..4e2f18dc 100755 --- a/tools/findbits.py +++ b/tools/findbits.py @@ -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])