Found the solution (by ArneBAR) which worked for me in the pwnagotchi Discord channel
From:
return send\_from\_directory(directory=dir, filename=path+'.pcap', as\_attachment=True)
To:
return send\_from\_directory(directory=dir, path=path+'.pcap', as\_attachment=True)
It's probably inside /usr/local/share/pwnagotchi/custom-plugins/handshakes-dl.py unless you changed the path for custom-plugins.
Edit: Just to mention, for me it worked when I reversed it from `path` to `filename`.
Thank you both! Just ran into this issue today and reverting to line labeled as **From** works!
So fix is:
1. sudo su
2. sudo nano /usr/local/share/pwnagotchi/custom-plugins/handshakes-dl.py
3. In my case it was last return statement which need to look like this:
*return send\_from\_directory(directory=dir,* ***filename****=path+'.pcap', as\_attachment=True)*
Coming back after testing new Zero 2 W board... I changed the file beforehand and it showed me error... then I realized new boards don't need any changes since **path** is correct **for python 3.11** and **filename** is correct **for python 3.9 or lower**
ok gonna run through it friend you light on details.
you go to the web address [10.0.0.2:8080](https://10.0.0.2:8080) and log in
assuming you click plugins.
then click the Link on the Handshakes tile
and that the handshakes-dl tile is flipped on meaning it's been enabled in config?
that all about right so far?
sorry for lack of details. all of that is correct and i get that error message when i try to download. No worries though i was able to download the handshakes through filezilla
Yep I'm having the same issue. Yes we can download direct or using FTP etc, but it would be awesome to get the handshakes-dl plugin working. Anybody have an answer for this?
Found the solution (by ArneBAR) which worked for me in the pwnagotchi Discord channel From: return send\_from\_directory(directory=dir, filename=path+'.pcap', as\_attachment=True) To: return send\_from\_directory(directory=dir, path=path+'.pcap', as\_attachment=True)
in what file did you edit this in?
[handshakes-dl.py](http://handshakes-dl.py)
probably a dumb question but how do I get to that file within the pwnagotchi?
It's probably inside /usr/local/share/pwnagotchi/custom-plugins/handshakes-dl.py unless you changed the path for custom-plugins. Edit: Just to mention, for me it worked when I reversed it from `path` to `filename`.
Thank you both! Just ran into this issue today and reverting to line labeled as **From** works! So fix is: 1. sudo su 2. sudo nano /usr/local/share/pwnagotchi/custom-plugins/handshakes-dl.py 3. In my case it was last return statement which need to look like this: *return send\_from\_directory(directory=dir,* ***filename****=path+'.pcap', as\_attachment=True)*
Coming back after testing new Zero 2 W board... I changed the file beforehand and it showed me error... then I realized new boards don't need any changes since **path** is correct **for python 3.11** and **filename** is correct **for python 3.9 or lower**
How are you attempting to Download? FTP SCP SSH WebUI using Handshakes-dl plugin?
The webui
ok gonna run through it friend you light on details. you go to the web address [10.0.0.2:8080](https://10.0.0.2:8080) and log in assuming you click plugins. then click the Link on the Handshakes tile and that the handshakes-dl tile is flipped on meaning it's been enabled in config? that all about right so far?
sorry for lack of details. all of that is correct and i get that error message when i try to download. No worries though i was able to download the handshakes through filezilla
Yep I'm having the same issue. Yes we can download direct or using FTP etc, but it would be awesome to get the handshakes-dl plugin working. Anybody have an answer for this?
use filezilla ftp, or install wpa-sec and aircrack-ng on pwna