From 025b2d164a5ad7a264fbf372d7e2c20360f61653 Mon Sep 17 00:00:00 2001 From: lightningitoid Date: Sun, 26 Oct 2025 15:19:31 +0700 Subject: [PATCH] little changes --- services/sheesh/dist/chall.py | 11 ++--------- services/sheesh/src/chall.py | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) 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()