mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
WPS: Change listen time to match nfcpy default (250 ms)
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
b8dbc5d689
commit
bd692a8b0e
@ -204,7 +204,7 @@ def find_peer(clf):
|
||||
if nfc.llcp.connected():
|
||||
print "LLCP connected"
|
||||
general_bytes = nfc.llcp.startup({})
|
||||
peer = clf.listen(ord(os.urandom(1)) + 200, general_bytes)
|
||||
peer = clf.listen(ord(os.urandom(1)) + 250, general_bytes)
|
||||
if isinstance(peer, nfc.DEP):
|
||||
print "listen -> DEP";
|
||||
if peer.general_bytes.startswith("Ffm"):
|
||||
|
@ -165,7 +165,7 @@ def find_peer(clf):
|
||||
if nfc.llcp.connected():
|
||||
print "LLCP connected"
|
||||
general_bytes = nfc.llcp.startup({})
|
||||
peer = clf.listen(ord(os.urandom(1)) + 200, general_bytes)
|
||||
peer = clf.listen(ord(os.urandom(1)) + 250, general_bytes)
|
||||
if isinstance(peer, nfc.DEP):
|
||||
print "listen -> DEP";
|
||||
if peer.general_bytes.startswith("Ffm"):
|
||||
|
Loading…
Reference in New Issue
Block a user