v1s1t0r1sh3r3 / airgeddon

This is a multi-use bash script for Linux systems to audit wireless networks.
GNU General Public License v3.0
6.55k stars 1.18k forks source link

JTR not detected #587

Closed FalcoGer closed 7 months ago

FalcoGer commented 7 months ago

Describe the feature or compatibility enhancement and involved versions if apply

airgeddon does not detect my john the ripper installation, which was manually compiled and manually installed into ~/.local/bin and ~/.local/share/john.

john --help | head -n 1
John the Ripper 1.9.0-jumbo-1+bleeding-c8e21e81ea 2024-04-16 23:29:12 +0200 MPI + OMP [linux-gnu 64-bit x86_64 AVX2 AC]

I checked the get_jtr_version function and executing the code there yields an empty output, which I guessed caused the error. Changing the function to check for "John the Ripper" instead of "Version" yields the output "1.9.0", however that still didn't detect john.

I found the check_compatibility function. What is even stranger is that when I run this manually, it prints yes. I don't know what's going on here.

if ! hash "john" 2> /dev/null; then
  echo no
else
  echo yes
fi
yes

It'd be nice if john was detected properly or if there were some setting where you could just point airgeddon to the path of where the tool is installed at.

What are the benefits of adding this?

I and anyone else who compile JTR from source could use it.

Edit

I found out that the script resets the PATH variable because of sudo. Workaround is sudo PATH=${PATH} ./airgeddon.sh