staz0t / hashcatch

Capture handshakes of nearby WiFi networks automatically
http://stazot.com/hashcatch
GNU General Public License v3.0
727 stars 84 forks source link

updated regex to match essid containing - and ! #2

Closed 6661620a closed 5 years ago

6661620a commented 5 years ago

AVMs Fritz!Box comes with "!" character in its essid by default. I saw some of those and others containing "-". Updated the regex to include those names

staz0t commented 5 years ago

Hey, I just noticed an error in your regex and also in my current regex. In my current regex I didn't have to add single quotes for the space. And in your regex, you've added '-' which in regex means any character between the charset ' and '. Which means that you've add a single quote to the regex.

So I've requested for changes

6661620a commented 5 years ago

The correct regex will be [-a-zA-Z0-9_ !]+

that was it :-) now it works as expected for me

staz0t commented 5 years ago

Thanks for contributing!