I forgot where these came from

This commit is contained in:
Kenwood 2021-08-19 10:00:13 -04:00
parent 0d06a71fca
commit dc3bc85607
3 changed files with 5051 additions and 10 deletions

5031
crawler_cad/External/Bed_moto.obj vendored Normal file

File diff suppressed because it is too large Load Diff

BIN
crawler_cad/External/bed_Moto.FCStd vendored Normal file

Binary file not shown.

View File

@ -1,15 +1,25 @@
import time, pyotp from random import randrange
import time, pyotp, datetime
totp = pyotp.TOTP(pyotp.random_base32(), interval=45) hotp = pyotp.HOTP(pyotp.random_base32())
code = totp.now() success = 0
num_tries = 20
for i in range(0,60): for i in range(0,num_tries):
epoch = int(time.time())
code = hotp.at(epoch)
print('------------------------')
print(f'Made a code {code} at {epoch}, sending a simualted instruction')
if totp.verify(code): waittime = randrange(5)
print(f'{code} verified fine at t+{i}') print(f'Instuction will take {waittime} seconds to receive or be recieved')
time.sleep(waittime)
if hotp.verify(code, epoch):
print(f'code:{code} verified')
success += 1
else: else:
print(f'{code} expired at t+{i}') print(f'code:{code} expired')
break
time.sleep(1) print(f'Succeded {success} out of {num_tries} tries')