This is our old Q&A Site. Please post any new questions and answers at

Hello forum,

under it's possible to generate the PSK (if passphrase and the SSID is known :-)

This is a nice thing, but I would like to be able to generate the PSK myself and heard that many things can be done from the command line (cli) of Wireshark.

Question: Is this for the generation of the PSK as well the case? How?

Thank you very much!


asked 23 Mar '17, 09:34

joseph123's gravatar image

accept rate: 0%

I know of this CLI tool that can do it, with some minor effort:

A quick test took a couple of commands to get the PMK to be produced as a string of hex characters from an SSID:Passphrase set. With some work you may be able to distill down to a single command; at the very least this could all be scripted (e.g. bash or whatever) and get a single command to show the calculated PMK, if that is important. I tested on Linux.

If you search on here


there are ways to run tshark and enter the SSID/Passphrase as an option. This does not provide the exact behavior you specified, but is effective for decrypting protected data frames. You may have other requirements that require the presentation of the actual PMK so this may not help.

(23 Mar '17, 12:20) Bob Jones
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 23 Mar '17, 09:34

question was seen: 640 times

last updated: 23 Mar '17, 12:20

p​o​w​e​r​e​d by O​S​Q​A