mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-07-10 23:42:40 -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,
|
print ' Reverse: (%s)' % reversed,
|
||||||
search(inverted,reversed)
|
search(inverted,reversed)
|
||||||
|
|
||||||
|
def main():
|
||||||
if(len(sys.argv) < 3):
|
if(len(sys.argv) < 3):
|
||||||
print
|
print
|
||||||
print '\t'+sys.argv[0] + ' - Search bitstream for a known number'
|
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])
|
domatch(binstring(number),sys.argv[2])
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue