Add settings block to break script

This commit is contained in:
2019-10-18 15:32:15 +02:00
parent 6c6da7a3ee
commit 92bb7f6399

View File

@@ -8,8 +8,23 @@ import threading
from Crypto.Cipher import AES
################
# SETTINGS #
################
max_measurements = 20000 # Maximum number of measurements before aborting the script and reporting the challenge as failed
no_threads = 50 # Number of paralell connections to the server
# Target server
server = "127.0.0.1"
port = "1337"
#context.log_level = "debug"
max_measurements = 20000
################
# END SETTINGS #
################
allowed_chars = string.ascii_letters + string.digits + string.punctuation
@@ -90,11 +105,9 @@ def t_test(group_big, group_small):
variance_small = variance(group_small, mean_small)
return (mean_big - mean_small) / math.sqrt(variance_big / len(group_big) + variance_small / len(group_small))
remotes = [process("/home/manuel/wolke/Projects/secutech_authenticator/build/meson.debug.linux.x86_64/secutech", cwd="/home/manuel/wolke/Projects/secutech_authenticator")]
#remotes = []
#no_threads = 50
#for i in range(no_threads):
# remotes.append(remote("ccn.li", "5555"))
remotes = []
for i in range(no_threads):
remotes.append(remote(server, port))
for r in remotes:
r.recvuntil(b"> ")