From dd5836268ff2617df308679a731395f3d50171f6 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Tue, 2 Nov 2021 01:47:35 +0300 Subject: [PATCH] cl arg as the starting point --- brute_crc32.lua | 2 +- brute_md5.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/brute_crc32.lua b/brute_crc32.lua index 39f5fbd..d8d8c87 100644 --- a/brute_crc32.lua +++ b/brute_crc32.lua @@ -17,7 +17,7 @@ function edit_file(input_file, line, content) io.close(file) end -local attempts = 0 +local attempts = arg[1] repeat local random_crc32 = crc32.hash(attempts) diff --git a/brute_md5.lua b/brute_md5.lua index e51ed11..ec6d2ab 100644 --- a/brute_md5.lua +++ b/brute_md5.lua @@ -19,7 +19,7 @@ function edit_file(input_file, line, content) io.close(file) end -local attempts = 0 +local attempts = arg[1] repeat local random_md5 = md5.sumhexa(attempts)