Add settings block to break script
This commit is contained in:
@@ -8,8 +8,23 @@ import threading
|
|||||||
|
|
||||||
from Crypto.Cipher import AES
|
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"
|
#context.log_level = "debug"
|
||||||
max_measurements = 20000
|
|
||||||
|
################
|
||||||
|
# END SETTINGS #
|
||||||
|
################
|
||||||
|
|
||||||
allowed_chars = string.ascii_letters + string.digits + string.punctuation
|
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)
|
variance_small = variance(group_small, mean_small)
|
||||||
return (mean_big - mean_small) / math.sqrt(variance_big / len(group_big) + variance_small / len(group_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 = []
|
||||||
#remotes = []
|
for i in range(no_threads):
|
||||||
#no_threads = 50
|
remotes.append(remote(server, port))
|
||||||
#for i in range(no_threads):
|
|
||||||
# remotes.append(remote("ccn.li", "5555"))
|
|
||||||
|
|
||||||
for r in remotes:
|
for r in remotes:
|
||||||
r.recvuntil(b"> ")
|
r.recvuntil(b"> ")
|
||||||
|
|||||||
Reference in New Issue
Block a user