aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-10-29 16:01:35 +0200
committerLouis Burda <quent.burda@gmail.com>2021-10-29 16:01:55 +0200
commit970ca7366a682bed47fdc3bd720495e93928c28c (patch)
treeb2f702e9213b7fa1273bc7b94083eda4c2911813
parent649bf1e828b6346bc7276e7c79803ab29a0744ab (diff)
downloadbambi6-service-postit-970ca7366a682bed47fdc3bd720495e93928c28c.tar.gz
bambi6-service-postit-970ca7366a682bed47fdc3bd720495e93928c28c.zip
increase rsa keys and clean up noises
-rw-r--r--checker/entrypoint.sh3
-rw-r--r--checker/src/util.py7
2 files changed, 5 insertions, 5 deletions
diff --git a/checker/entrypoint.sh b/checker/entrypoint.sh
index ecca370..f75152c 100644
--- a/checker/entrypoint.sh
+++ b/checker/entrypoint.sh
@@ -7,10 +7,9 @@ from Crypto.PublicKey import RSA
from sys import argv
from os import listdir
-count = 100
+count = 500
files = listdir("keys")
-print(files)
for i in range(len(files), count):
with open(f"keys/{i}.rsa", "w+") as f:
print(f"\rGenerating key {i+1}/{count}", end="")
diff --git a/checker/src/util.py b/checker/src/util.py
index 23b91f4..b85cd17 100644
--- a/checker/src/util.py
+++ b/checker/src/util.py
@@ -20,9 +20,9 @@ leetconv = {
"T": "7",
}
-wordlist = open("media/wordlist").read().split("\n")
+wordlist = open("media/wordlist").read().replace(" ", "").split("\n")
names = [line for line in wordlist if line != ""]
-rickroll = open("media/rickroll.b64").read()
+rickroll = open("media/rickroll.b64").read().replace("\n", "")
messages = [
"Remember: invite Paul to lan party",
"Shopping list: tomatoes and potatoes",
@@ -48,7 +48,8 @@ def randbool() -> bool:
def randstr(n: int) -> str:
- chars = [secrets.choice(string.ascii_letters + string.digits) for i in range(n)]
+ alphabet = string.ascii_letters + string.digits
+ chars = [secrets.choice(alphabet) for i in range(n)]
return "".join(chars)