wifi-deauth icon indicating copy to clipboard operation
wifi-deauth copied to clipboard

Error after300 sec

Open Benoulimou opened this issue 1 year ago • 20 comments

Hi, Could you tell me what this error means? It happens all the time after about 300 seconds.

[!] Exception in deauth-loop -> Traceback (most recent call last): File "/usr/local/lib/python3.11/dist-packages/wifi_deauth/wifi_deauth.py", line 321, in _run_deauther self._send_deauth_client(ap_mac, client_mac) File "/usr/local/lib/python3.11/dist-packages/wifi_deauth/wifi_deauth.py", line 335, in _send_deauth_client sendp(RadioTap() / File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 480, in sendp return _send( ^^^^^^ File "/usr/lib/python3/dist-packages/scapy/sendrecv.py", line 417, in _send results = __gen_send(socket, x, inter=inter, loop=loop,

thx

Benoulimou avatar Oct 26 '24 09:10 Benoulimou

Hi Does the de-auth work during those 300 seconds?

Can you please share the full exception log? (It seems to be truncated)

flashnuke avatar Oct 26 '24 09:10 flashnuke

yes, it works Can you tell me where the log is? I don't see anything in the file

Benoulimou avatar Oct 26 '24 09:10 Benoulimou

I mean from the output, as the snippet you provided doesn't seem to be full (it gets truncated at results = __gen_send(socket, x, inter=inter, loop=loop,)

Also, which OS are you using? Is it Nethunter (Kali on Android) by any chance?

flashnuke avatar Oct 26 '24 09:10 flashnuke

image that's all I have, I'm on kali linux on vm

Benoulimou avatar Oct 26 '24 11:10 Benoulimou

image here's another one after 16 sec

Benoulimou avatar Oct 26 '24 11:10 Benoulimou

image another one after 1096 sec on root user

Benoulimou avatar Oct 26 '24 18:10 Benoulimou

Seems like an unhandled exception that comes from scapy library... I will add a try-except mechanism that should help overcome temporary exceptions (I assume this is temporary as the next time you run the script it runs ok)

I will deploy this in the next version, meanwhile I'd suggest to try connecting the network interface to a different USB port

flashnuke avatar Oct 26 '24 23:10 flashnuke

ok, I tried to install it on another kali linux machine and I get this error that I can't bypass:

`pip3 install error: externally-managed-environment

× This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install.

If you wish to install a non-Kali-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have pypy3-venv installed.

If you wish to install a non-Kali-packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

For more information, refer to the following:
* https://www.kali.org/blog/python-externally-managed/
* /usr/share/doc/python3.12/README.venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. hint: See PEP 668 for the detailed specification.

`

Benoulimou avatar Oct 28 '24 14:10 Benoulimou

try setting up venv:

python3 -m venv venv
source venv/bin/activate
pip3 install .

flashnuke avatar Oct 28 '24 15:10 flashnuke

image

Sorry don't work

Benoulimou avatar Oct 28 '24 17:10 Benoulimou

You need to create the venv inside the wifi-deauth directory

git clone https://github.com/flashnuke/wifi-deauth.git
cd wifi-deauth
// Create venv and install here (Using the commands I provided above)

flashnuke avatar Oct 28 '24 23:10 flashnuke

great it's work ! thk !

But then I have to stay on venv for it to work?

Benoulimou avatar Oct 29 '24 14:10 Benoulimou

great it's work ! thk !

But then I have to stay on venv for it to work?

Your welcome!

Yes, you should stay on venv This limitation is imposed by the new Kali machine it seems

flashnuke avatar Oct 29 '24 16:10 flashnuke

hey @Benoulimou I believe what you had is a network buffer overflow (due to network congestion - too many packets at a short period) I addressed this in https://github.com/flashnuke/wifi-deauth/pull/24:

now, If a deauth attempt fails - the program would throttle down between each failed attempt, this would allow the buffer to deplete (if the successive attempts fail also - the program will eventually exit as it did before) also I fixed the malformed exception prints

flashnuke avatar Nov 01 '24 11:11 flashnuke

Great! this is the error I get on the 1st launch, then when I relaunch it works. image

Benoulimou avatar Nov 01 '24 18:11 Benoulimou

Just to clarify, '1st launch' means just once, and now it works flawlessly every time?

flashnuke avatar Nov 01 '24 18:11 flashnuke

no, I run it, I get the error, I run it again, I don't get the error and I get it every time

Benoulimou avatar Nov 01 '24 18:11 Benoulimou

can you please pull latest, run with debug mode and share the output? i want to see if your interface it set up correctly

git pull
sudo python3 wifi_deauth.py -d -i ...  # use the '-d' flag for debug mode

flashnuke avatar Nov 02 '24 10:11 flashnuke

I'm back, I've installed debian 10, I don't want to use env but I still have an error with pip3 which doesn't work and python3 can't find install Can you help me?

Benoulimou avatar Dec 16 '24 19:12 Benoulimou

Bonjour À propos d'une autre problème : Voici une explication détaillée de l'erreur :

Cause de l'erreur

L'erreur se produit après environ 300 secondes d'exécution du programme wifi_deauth, qui est utilisé pour tester la sécurité des réseaux sans fil. L'erreur est générée par une exception dans la boucle de déconnexion (_deauth-loop).

Détails techniques

  1. Fichier affecté : (link unavailable) (ligne 321).
  2. Méthode affectée : _run_deauther.
  3. Erreur : Échec de l'envoi d'un paquet RadioTap via Scapy.

Causes possibles

  1. Problèmes de connexion réseau.
  2. Problèmes de compatibilité entre les versions de Scapy et wifi_deauth.
  3. Problèmes de sécurité ou de pare-feu.
  4. Erreurs de configuration.
  5. Problèmes de droits d'accès.

Solutions possibles

  1. Mettre à jour Scapy : pip install --upgrade scapy.
  2. Mettre à jour wifi_deauth : pip install --upgrade wifi_deauth.
  3. Vérifier la stabilité de la connexion réseau.
  4. Vérifier les paramètres de configuration.
  5. Exécuter le programme avec des droits d'administrateur.
  6. Redémarrer le programme.
  7. Vérifier les mises à jour du système.

Ressources

  1. Documentation wifi_deauth.

  2. Documentation Scapy.

  3. Forum Stack Overflow.

  4. GitHub.

    Merci a votre attention

Le lun. 16 déc. 2024, 20:18, Benoulimou @.***> a écrit :

I'm back, I've installed debian 10, I don't want to use env but I still have an error with pip3 which doesn't work and python3 can't find install Can you help me?

— Reply to this email directly, view it on GitHub https://github.com/flashnuke/wifi-deauth/issues/23#issuecomment-2546438948, or unsubscribe https://github.com/notifications/unsubscribe-auth/BL4CLATSPFSPGNHLKRUZNK32F4RPBAVCNFSM6AAAAABQUUCCXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBWGQZTQOJUHA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

DDJ-MooN avatar Dec 16 '24 22:12 DDJ-MooN