diff --git a/services/sheesh/dist/chall.py b/services/sheesh/dist/chall.py index 0234a3a..e7e30b7 100644 --- a/services/sheesh/dist/chall.py +++ b/services/sheesh/dist/chall.py @@ -3,12 +3,11 @@ import os import binascii import hashlib -import threading -import time -import sys +import signal from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad +signal.alarm(50) seed_bits = 23 seed_max = 1 << seed_bits seed_len = (seed_bits + 7) // 8 @@ -58,12 +57,6 @@ third = 0 iv11 = None iv22 = None -def alarm(): - time.sleep(180) - print("zzz") - sys.exit(0) - -threading.Thread(target=alarm, daemon=True).start() while True: menu() diff --git a/services/sheesh/src/chall.py b/services/sheesh/src/chall.py index 65185b7..2ad1df3 100644 --- a/services/sheesh/src/chall.py +++ b/services/sheesh/src/chall.py @@ -3,12 +3,11 @@ import os import binascii import hashlib -import threading -import time -import sys +import signal from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad +signal.alarm(50) seed_bits = 23 seed_max = 1 << seed_bits seed_len = (seed_bits + 7) // 8 @@ -58,12 +57,6 @@ third = 0 iv11 = None iv22 = None -def alarm(): - time.sleep(180) - print("zzz") - sys.exit(0) - -threading.Thread(target=alarm, daemon=True).start() while True: menu()