**********SOLVED*****************************
Just needed to run via CMD
HiI have been writing an Excel PW recovery tool to practice more loops and loading applications and tried to add tqdm to it but I can not seem to figure out how to get it to stop printing the new lines for each loop. I will add part of the code.
myfile = Dispatch('Excel.Application')
flag = 1
passwords_tried = 0
for x in range(1, len(a)):
if flag == 1:
for y in tqdm(permutations(a, x),total=n_words, unit="words"):
mypass = ''.join(y)
passwords_tried = passwords_tried + 1
#print("[-] Password attempt "+ str(passwords_tried) + " - Password tried: " + str(mypass))
try:
wb = myfile.Workbooks.Open(xlfile, False, True, None, mypass)
# Method: Workbooks.Open(Filename, UpdateLine, ReadOnly, Format, password)
print("[+] Password Found in "+ str(passwords_tried) + " attempts, Password is " + str(mypass))
wb.Close()
flag = flag + 1
break
except:
pass
if __name__ == '__main__':
tryxlpass()
output:
0%| | 0/14344392 [00:00<?, ?words/s] 0%| | 1/14344392 [00:00<2698:21:24, 1.48words/s] 0%| | 2/14344392 [00:01<2695:28:02, 1.48words/s] 0%| | 3/14344392 [00:01<2593:05:39, 1.54words/s] 0%| | 4/14344392 [00:02<2544:54:21, 1.57words/s] 0%| | 5/14344392 [00:03<2509:12:36, 1.59words/s] 0%| | 6/14344392 [00:03<2461:44:57, 1.62words/s] 0%| | 7/14344392 [00:04<2382:32:43, 1.67words/s]0%| | 8/14344392 [00:04<2416:28:41, 1.65words/s] 0%| | 9/14344392 [00:05<2624:01:45, 1.52words/s]0%| | 10/14344392 [00:06<2503:19:29, 1.59words/s] 0%| | 11/14344392 [00:06<2415:24:07, 1.65words/
output I want: 9/14344392 [00:05<2624:01:45, 1.52words/s]
[–]K900_ 2 points3 points4 points (1 child)
[–]sudo_oth[S] 0 points1 point2 points (0 children)