Skip to content

Commit

Permalink
small change so cleanup runs faster and so that the noise messages ar…
Browse files Browse the repository at this point in the history
…e smaller
  • Loading branch information
SirGankalot committed Jul 18, 2024
1 parent 4a5add8 commit 6bfde69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions checker/src/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async def putnoise0(
raise MumbleException("Could not get public key")

random.seed(random.SystemRandom().random())
randomNumber = random.randint(10, 1000)
randomNumber = random.randint(10, 50)
randommessage = "".join(random.choices(string.ascii_letters + string.digits, k=randomNumber))

try:
Expand Down Expand Up @@ -465,7 +465,7 @@ async def putnoise1(
raise MumbleException("Could not create Group")
group_id = str(redirect_url).split('/')[-1]
random.seed(random.SystemRandom().random())
randomNumber = random.randint(10, 1000)
randomNumber = random.randint(10, 50)
randommessage = "".join(random.choices(string.ascii_letters + string.digits, k=randomNumber))

try:
Expand Down Expand Up @@ -770,7 +770,7 @@ async def havoc_1(
email_1, password1_1 = await checker_util_func.create_user(client, logger, public_key=None)
except:
raise MumbleException("Could not create user 1")
for i in range(0, 2):
for i in range(0, 1):
message = scam_messages.get_scam_message()
try:
response = await checker_util_func.create_message(client, logger, message, None)
Expand Down
2 changes: 1 addition & 1 deletion service/src/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import datetime
import time

Interval_for_cleanup = datetime.timedelta(minutes=12)
Interval_for_cleanup = datetime.timedelta(minutes=11)

db_path = os.path.dirname(__file__)
db_path = os.path.dirname(db_path)
Expand Down

0 comments on commit 6bfde69

Please sign in to comment.