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

#Debian wifite not find aircrack-ng already installed #179

Open
ilixindri opened this issue Aug 11, 2023 · 0 comments
Open

#Debian wifite not find aircrack-ng already installed #179

ilixindri opened this issue Aug 11, 2023 · 0 comments

Comments

@ilixindri
Copy link

ilixindri commented Aug 11, 2023

sudo apt install -y aircrack-ng

(venv) root@debian/media/user/HD-STI/RepoS/wifite which aircrack-ng
/usr/bin/aircrack-ng
(venv) root@debian/media/user/HD-STI/RepoS/wifite 
def program_exists(program):
    """
        Uses 'which' (linux command) to check if a program is installed.
    """

    proc = Popen(['which', program], stdout=PIPE, stderr=PIPE)
    txt = proc.communicate()
    if txt[0].strip() == '' and txt[1].strip() == '':
        return False
    if txt[0].strip() != '' and txt[1].strip() == '':
        return True

    return not (txt[1].strip() == '' or txt[1].find('no %s in' % program) != -1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant