Added a custom _do_custom_which method to the Linux platform. During initialization, if a local implementation of which is not found, pwncat will default to using this custom which implementation, which looks roughly like:
/bin/bash -c 'IFS='"':'"'; for path in $PATH; do if [ -f "$path/$binary_name" ]; then echo "$path/$binary_name"; fi; done; IFS='"' '"
Fixes #193.
Major Changes Implemented:
Added Linux which fallback routine
Pre-Merge Tasks
[x] Formatted all modified files w/ python-black
[x] Sorted imports for modified files w/ isort
[x] Ran flake8 on repo, and fixed any new problems w/ modified files
[x] Ran pytest test cases
[x] Added brief summary of updates to CHANGELOG (under [Unreleased])
Description of Changes
Added a custom
_do_custom_which
method to theLinux
platform. During initialization, if a local implementation ofwhich
is not found, pwncat will default to using this custom which implementation, which looks roughly like:Fixes #193.
Major Changes Implemented:
Pre-Merge Tasks
python-black
isort
flake8
on repo, and fixed any new problems w/ modified filespytest
test cases[Unreleased]
)