Changing debug information
This commit is contained in:
parent
3d8cf92fd0
commit
87b9e798b3
|
|
@ -103,9 +103,12 @@ class luks2:
|
||||||
cryptworker = SysCommandWorker(cryptsetup_args)
|
cryptworker = SysCommandWorker(cryptsetup_args)
|
||||||
|
|
||||||
# print(f'Looking for: Enter passphrase for {partition.path}')
|
# print(f'Looking for: Enter passphrase for {partition.path}')
|
||||||
|
with open('debug.txt', 'a') as silent_output:
|
||||||
|
silent_output.write(f"Looking for: Enter passphrase for {partition.path}\n")
|
||||||
pw_given = False
|
pw_given = False
|
||||||
while cryptworker.is_alive():
|
while cryptworker.is_alive():
|
||||||
if bytes(f'Enter passphrase for {partition.path}', 'UTF-8') in cryptworker and pw_given is False:
|
if bytes(f'Enter passphrase for {partition.path}', 'UTF-8') in cryptworker and pw_given is False:
|
||||||
|
silent_output.write(f"found it! Writing password: {password}\n")
|
||||||
cryptworker.write(password)
|
cryptworker.write(password)
|
||||||
pw_given = True
|
pw_given = True
|
||||||
time.sleep(0.25)
|
time.sleep(0.25)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue