Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp fix for Pyrit install #330

Merged
merged 2 commits into from
Apr 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion sources/install/package_wifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ function install_wifi_apt_tools() {

function install_pyrit() {
colorecho "Installing pyrit"
git -C /opt/tools clone --depth 1 https://github.com/JPaulMora/Pyrit
# can't install with python3/python2 with latest changes.
# steps to remove temp fix:
# 1. try to install pyrit with git clone + venv + setup.py install with python2 or 3 (without the git patch)
# 2. if it works, remove the temp fix (and probably the patch as well)
local temp_fix_limit="2024-05-20"
if [ "$(date +%Y%m%d)" -gt "$(date -d $temp_fix_limit +%Y%m%d)" ]; then
criticalecho "Temp fix expired. Exiting."
else
# git -C /opt/tools clone --depth 1 https://github.com/JPaulMora/Pyrit
git -C /opt/tools/ clone https://github.com/JPaulMora/Pyrit
git -C /opt/tools/Pyrit checkout f0f1913c645b445dd391fb047b812b5ba511782c
fi
cd /opt/tools/Pyrit || exit
fapt libpq-dev
virtualenv --python python2 ./venv
Expand Down
Loading