Skip to content

Commit

Permalink
Merge pull request #226 from abrignoni/In_progress
Browse files Browse the repository at this point in the history
Poogress bar changes.
  • Loading branch information
abrignoni authored Apr 16, 2024
2 parents 3d95640 + 1d04b62 commit ef88232
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions scripts/artifacts/airdropNumbers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def get_airdropNumbers(files_found, report_folder, seeker, wrap_text, time_offse
for areacode in areacodelist:
areacode = areacode.strip()
logfunc('Searching area code ' + str(areacode) + ' for target...')
ilapfuncs.GuiWindow.SetProgressBar(0)
#ilapfuncs.GuiWindow.SetProgressBar(0)
off = 0
start_time = time.time()
for line in range(10 ** i):
Expand All @@ -67,7 +67,8 @@ def get_airdropNumbers(files_found, report_folder, seeker, wrap_text, time_offse
start_time = time.time()

if line % factor == 0:
ilapfuncs.GuiWindow.SetProgressBar(int(line / factor))
pass
#ilapfuncs.GuiWindow.SetProgressBar(int(line / factor))

targetphone = f"{COUNTRY_CODE[selected_country]}{areacode}{line:0{i}d}"
targettest = hashlib.sha256(targetphone.encode()).hexdigest()
Expand Down
5 changes: 3 additions & 2 deletions scripts/ilapfuncs.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,9 +620,10 @@ def gather_hashes_in_file(file_found: str, regex: Pattern):

factor = int(_get_line_count(file_found) / 100)
with open(file_found, 'r') as data:
for i, x in enumerate(data):
for i, x in enumerate(data):
if i % factor == 0:
GuiWindow.SetProgressBar(int(i / factor))
pass
#GuiWindow.SetProgressBar(int(i / factor))

result = regex.search(x)
if not result:
Expand Down

0 comments on commit ef88232

Please sign in to comment.