patator icon indicating copy to clipboard operation
patator copied to clipboard

fix: progress display is shown when it should not

Open chovanecadam opened this issue 1 year ago • 1 comments

Patator spams status messages when the standard input is redirected, for instance when it runs in a bash loop. Below is a video capturing the issue. This fix disables the interactive features when the standard input is not a tty. Another solution would be to change the status command from "<Enter>" to some other letter.

The bug happens for example when running like this:

./patator.py ssh_login host=127.0.0.1 port=2222 user=user password=password </dev/null

https://github.com/lanjelot/patator/assets/23148601/6a085816-be6e-4fcc-812e-d68a12a3d0fa

chovanecadam avatar Oct 07 '23 18:10 chovanecadam

Hello, is there any progress on this issue?

chovanecadam avatar Jan 22 '24 16:01 chovanecadam