I have a code that include a line requires admin permission to run.
with pydivert.WinDivert("(tcp.DstPort==80 ) and tcp.PayloadLength >0 ") as w:
When I run the script in cmd without admin rights, I get the next error:
PermissionError: [WinError 5] Access is denied."
When I run the script in cmd that opend by "run as administrator", its working.
The problem start when I try to convert this script to exe file by pyinstaller. The code inside the exe file Requires the admin permissions. How can I solve it?