mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-29 11:52:59 +08:00
replaced string.find with str.find in findbits.search()
This commit is contained in:
parent
c3631ff82e
commit
f208c9e281
1 changed files with 1 additions and 2 deletions
|
@ -22,7 +22,6 @@
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
import string
|
|
||||||
|
|
||||||
# invert binary string
|
# invert binary string
|
||||||
def invert(data):
|
def invert(data):
|
||||||
|
@ -30,7 +29,7 @@ def invert(data):
|
||||||
|
|
||||||
# do the actual search
|
# do the actual search
|
||||||
def search(target,data):
|
def search(target,data):
|
||||||
location= string.find(data,target)
|
location = data.find(target)
|
||||||
if location >= 0:
|
if location >= 0:
|
||||||
print '*** Match at bit %d:' % location,
|
print '*** Match at bit %d:' % location,
|
||||||
print '%s<%s>%s' % (data[:location],target,data[location+len(target):])
|
print '%s<%s>%s' % (data[:location],target,data[location+len(target):])
|
||||||
|
|
Loading…
Reference in a new issue