This error displays on Wireshark when you try to capture packets on Eve-ng or PNET lab.

Why this happens: Wireshark can not access Eve-ng or PNET lab with right credential
How to fix it:
- Open Notepad as an administrator
- Browse: C:\Program Files\EVE-NG
- open “wireshark_wrapper.bat”
- fix the username and password (the username and password you use to login to Eve-ng or PNET lab)
- save it

This will solve your “end of file on pipe magic during open” error
Thank you. It helped a lot
Glad to help you out