jayofelony / pwnagotchi-torch-plugins

Custom plugin repository
GNU General Public License v3.0
55 stars 4 forks source link

show_pwd should dedup records before calling tail #1

Closed marcdel closed 11 months ago

marcdel commented 11 months ago

Hola 👋🏻,

I phrased the title as should out of habit, but would you be interested in a PR that de-duplicates records in the potfile? If you see the same AP frequently you'll end up with something like this where AP1 is always shown, which is kind of silly.

AP1 - Password
AP2 - Password
AP1 - Password
etc.

I've changed mine to awk -F: \'!seen[$3]++ {print $3 " - " $4}\' /root/handshakes/wpa-sec.cracked.potfile | tail -n 1 which is unfortunately a bit more complex, but seems to work.

jayofelony commented 11 months ago

Sure, I always like to get PRs that make things better.

marcdel commented 11 months ago

Sweet, pushed #2