mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-10 15:32:41 -07:00
made tools/findbits.py importable as a Python module
This commit is contained in:
parent
9f69393035
commit
79c4de2a0f
1 changed files with 39 additions and 35 deletions
|
@ -75,6 +75,7 @@ def domatch(number,binary):
|
|||
print ' Reverse: (%s)' % reversed,
|
||||
search(inverted,reversed)
|
||||
|
||||
def main():
|
||||
if(len(sys.argv) < 3):
|
||||
print
|
||||
print '\t'+sys.argv[0] + ' - Search bitstream for a known number'
|
||||
|
@ -111,3 +112,6 @@ for base in 2,8,10,16:
|
|||
domatch(binstring(number),sys.argv[2])
|
||||
except:
|
||||
continue
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue