]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
clarify output
authoradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 5 Sep 2009 08:46:59 +0000 (08:46 +0000)
committeradam@algroup.co.uk <adam@algroup.co.uk@ef4ab9da-24cd-11de-8aaa-f3a34680c41f>
Sat, 5 Sep 2009 08:46:59 +0000 (08:46 +0000)
tools/xorcheck.py

index ddfcf82a035cf183aacfcdf39e837295e394324d..9cbc7a1e7ade0f203a415eae635c8e4ed6c7830e 100755 (executable)
@@ -25,10 +25,11 @@ import os
 
 if(len(sys.argv) < 3):
        print
-       print sys.argv[0] + ' - generate final byte for XOR CRC'
+       print '\t'+sys.argv[0] + ' - Generate final byte for XOR CRC'
+       print
        print 'Usage: ' + sys.argv[0] + ' <ID Byte1> <ID Byte2> ... <CRC>'
        print
-       print '\tSpecifying the bytes of a UID with a known CRC will generate the last byte value'
+       print '\tSpecifying the bytes of a UID with a known CRC will find the last byte value'
        print '\tneeded to generate that CRC with a rolling XOR. All bytes should be specified in HEX.'
        print
        print 'Example:'
@@ -37,7 +38,7 @@ if(len(sys.argv) < 3):
        print
        print 'Should produce the output:'
        print
-       print '\tTarget matched with Byte value: 5A'
+       print '\tTarget (BA) matched with final byte value: 5A'
        print
        os._exit(True)
 
@@ -50,6 +51,6 @@ for candidate in range(256):
        crc ^= candidate
        if (crc == target):
                print
-               print 'Target matched with Byte value: %02X' % candidate
+               print 'Target (%02X) matched with final byte value: %02X' % (target,candidate)
                print
 
Impressum, Datenschutz