hashcat Forum
cap2hccapx essid filters - Printable Version

+- hashcat Forum (https://hashcat.net/forum)
+-- Forum: Support (https://hashcat.net/forum/forum-3.html)
+--- Forum: hashcat-utils, maskprocessor, statsprocessor, md5stress, wikistrip (https://hashcat.net/forum/forum-28.html)
+--- Thread: cap2hccapx essid filters (/thread-6710.html)



cap2hccapx essid filters - javiroca - 07-13-2017

Hi!

I am using cap2hccapx 1.8 to convert cap files created with besside-ng (not modified with any other tools).

According to documentation usage is as follows:

Quote:usage: ./cap2hccapx.bin input.pcap output.hccapx [filter by essid] [additional network essid:bssid]

I was wondering if [filter by essid] supports wildcards or anything similar to convert *only* essids matching with a pattern (eg. starting with "ProviderName")

I have been digging google and forums but could not get it to work. Do I need an external script and convert hashes individually for different networks?

Thanks,

edit: OS used is W7 x64


RE: cap2hccapx essid filters - philsmd - 07-14-2017

Currently, the code searches for exact matches.

This could be simply changed by, for instance, replacing strcmp () with strchr () here: https://github.com/hashcat/hashcat-utils/blob/b1e45b2337c2011872972d6be9dd4748efff7ccc/src/cap2hccapx.c#L1134
Full support of advanced regular expressions might be slightly more difficult than the strchr () solution (but fortunately there exists some libraries, includes that could help even with more advanced expressions).

I'm not sure if this feature is useful for many users, but if you think so, you might open a github issue and request it (or even better: make a pull request Wink ).


RE: cap2hccapx essid filters - javiroca - 07-17-2017

(07-14-2017, 09:44 AM)philsmd Wrote: Currently, the code searches for exact matches.

This could be simply changed by, for instance, replacing strcmp () with strchr () here: https://github.com/hashcat/hashcat-utils/blob/b1e45b2337c2011872972d6be9dd4748efff7ccc/src/cap2hccapx.c#L1134
Full support of advanced regular expressions might be slightly more difficult than the strchr () solution (but fortunately there exists some libraries, includes that could help even with more advanced expressions).

I'm not sure if this feature is useful for many users, but if you think so, you might open a github issue and request it (or even better: make a pull request Wink ).

Thank you, I will give it a try!