Save checked-for-existance commands inside a list to avoid rechecking them more than once #141
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was done as a result of my terminal being spammed with:
Executing: which hashcat
And various other tool existence-checks when using -vv option
if not x
instead ofif x == False
All the changes works great on ArchLinux - which may be added as a supported distribution.
This time I've done unit tests which passed successfully (except for pyrit & cowpatty handshake validation).
Note: I encourage to check this PR for python2 compatibility, as some of the changes might not work well with py2 (like removing the trailing backslash in attack/wep.py:225)