Closed alim4r closed 3 years ago
@alim4r I think you're right about the list issue. I've added a possible fix, should be safe wheter it's that specific case or any other when we don't have access to the "total" property
Also, if you set up an env variable like "PYRCRACK_DEBUG=1" on commit 34f3068e7d1cc99b71b7f35e613959cfe1204a97 temporary files should not be deleted, wich would help further identify this kind if issues.
Thanks for your help on this one, the report was perfectly detailed! 🥇
Thanks! I added the environment variable to my setup. If it happens again, I'll let you know.
After running Airodump for a while
AttributeError: 'list' object has no attribute 'total'
occurs.Detailed Description
It seems like the
kismet.netxml
is missing data for the<packets>
entry and is parsed as an empty list. The temporarykismet.netxml
does not exist anymore , so I can't be sure.When the score is calculated by results() with
packet_score = int(self.packets.total)
the attributetotal
does not exist.Log Message
Context
Possible Implementation
pyrcrack/models.py
Methodscore()
ofAccessPoint
can be updated with:I'm not sure if other entries in the
kismet.netxml
like<snr-info>
will be missing too.Your Environment
3.8
python:3.8-alpine3.10