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)