aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2021-10-29 15:40:02 +0200
committerLouis Burda <quent.burda@gmail.com>2021-10-29 15:40:02 +0200
commit649bf1e828b6346bc7276e7c79803ab29a0744ab (patch)
tree2d6f84b808ef0f876ad1856b12264048bfd29be4
parent44605763438b0f54949679bace34b01d8c1ef7f9 (diff)
downloadbambi6-service-postit-649bf1e828b6346bc7276e7c79803ab29a0744ab.tar.gz
bambi6-service-postit-649bf1e828b6346bc7276e7c79803ab29a0744ab.zip
remove TODOs
-rw-r--r--checker/TODO4
-rw-r--r--checker/src/util.py8
-rw-r--r--service/TODO1
3 files changed, 7 insertions, 6 deletions
diff --git a/checker/TODO b/checker/TODO
deleted file mode 100644
index b6cf954..0000000
--- a/checker/TODO
+++ /dev/null
@@ -1,4 +0,0 @@
-* create methods for username generation, crypto pair generation
-* put checker funcs that are self-explanatory into util.py
-* second flagstore for exponents larger than 3, have to find inverse mod (harder)
-* make sure all checker error are of correct type (unreachable should be offline not mumble, smth like that)
diff --git a/checker/src/util.py b/checker/src/util.py
index 4089157..23b91f4 100644
--- a/checker/src/util.py
+++ b/checker/src/util.py
@@ -33,6 +33,10 @@ messages = [
"🤡 The flag is in another castle! 🤡",
"🧠 solving crypto challenges calculator 🧠",
]
+gplmsg = "You should have received a copy of the GNU \
+General Public License along with this file; if not, \
+write to the Free Software Foundation, Inc., 51 Franklin St, \
+Fifth Floor, Boston, MA 02110-1301 USA"
def randint(low: int, high: int) -> int:
@@ -80,11 +84,13 @@ def gen_username() -> bytes:
def gen_noise() -> bytes:
- selection = randint(0, len(messages) + 1)
+ selection = randint(0, len(messages) + 2)
if selection == 0:
msg = randstr(randint(30, 60))
elif selection == 1:
msg = rickroll
+ elif selection == 2:
+ msg = gplmsg
else:
msg = secrets.choice(messages)
if randbool():
diff --git a/service/TODO b/service/TODO
deleted file mode 100644
index d7897fe..0000000
--- a/service/TODO
+++ /dev/null
@@ -1 +0,0 @@
-add more fluff that is checked by checker to prevent rewrites in python (very easy atm)