Skip to content

Instantly share code, notes, and snippets.

import random
import statistics
import time
def realizar_simulacao(num_simulacoes=100, espaco_amostral=1000000, tamanho_conjunto_ataque=5):
"""
Simulates the reverse brute force attack on OTP.
Args:
num_simulacoes: How many times the attack will be successful to generate statistics.