1

I wanted to find passphrase from .cap file and .txt file (Password Dictionary). But I have too many .txt file's there. Can I use those file one by one for cracking? My command is given below: I tried this way, but it did not work

aircrack-ng -a2 -b [bssid] -w /home/kali/Downloads/Wordlist/*.txt  /home/kali/Desktop/*.cap
Jeff Schaller
  • 66,199
  • 35
  • 114
  • 250
Robi
  • 11
  • 3

2 Answers2

3

aircrack-ng -w parameter only accepts a single filename. The man page clearly shows this

-w <words>
    Path to a dictionary file for wpa cracking. Specify "-" to use stdin.

You could consider combining all your dictionaries into a single file sort -u dictionary1 dictionary2 dictionary3 >bigdictionary

Or you could consider multiple runs of aircrack-ng, specifying a different dictionary file each time.

steve
  • 21,582
  • 5
  • 48
  • 75
  • I applied this command [aircrack-ng -a2 -b {BSSID} sort -u /home/kali/Downloads/8dig5milup.txt 8dig5milup2.txt /home/kali/Desktop/*.cap] It didn't work though – Robi Aug 07 '21 at 11:59
  • You would do the sort stuff first. To produce a dictionary.txt. And then run `aircrack -w dictionary.txt` plus all the other args as needed. – steve Aug 07 '21 at 16:42
0

The easiest thing to do is automatically feed the content of all of the wordlists to aircrack sequentially. So if all of your wordlists are found in the /worddir directory, run:

find /worddir -type f -exec cat {} + | aircrack-ng ... -w -

The will find each text file in the /worddir directory, cat the file (send the contents to stdout) and pipe it to aircrack-ng reading from stdin. If you have 100 password files in the /worddir directory, then the single command above will send their contents to aircrack-ng without manual intervention.

Note that the "..." should be replaced with content relevant to your cap/BSSID, etc.

TSG
  • 1,580
  • 6
  • 26
  • 42