コード例 #1
0
	selected_address = ""
	while len(selected_address) == 0:
		selected_address = input("Please enter your tezos contribution public key (e.g. tz1ABCDeF...): ")
	anchor.data["details"]["address"] = selected_address
	
	selected_email = ""
	while len(selected_email) == 0:
		selected_email = input("Please enter your tezos contribution email address: ")
	anchor.data["details"]["email"] = selected_email
	
	selected_mnemonic = ""
	while len(selected_mnemonic) == 0:
		selected_mnemonic = input("Please enter your tezos contribution mnemonic (e.g. apples cat radio...): ")
	anchor.data["details"]["mnemonic"] = selected_mnemonic

	anchor.save()


def cache(depth):
	anchor.data["depth"] = depth
	anchor.save()

def check(password):
	return tezos.check(anchor.data["details"]["address"], anchor.data["details"]["mnemonic"], anchor.data["details"]["email"], password)


charset = charsets[anchor.data["parameters"]["charset"]]
print("Starting bruteforce with charset[{}]...".format(charset))

password = brute.force(int(anchor.data["depth"]), charset, anchor.data["parameters"]["minimum"], 100, check, cache)
if password:
コード例 #2
0
def cache(depth):
	anchor.data["depth"] = depth
	anchor.save()
コード例 #3
0
ファイル: main.py プロジェクト: ataghof/heroku-python-script
def cache(length, depth):
    anchor.data["status"]["length"] = length
    anchor.data["status"]["depth"] = depth
    anchor.save()