safing-portmaster/firewall/interception/windivert/notes.md
2018-08-13 14:14:27 +02:00

889 B

Notes

Interception

Packet/Process Attribution

  • use Iphlpapi.dll
    • GetExtendedTcpTable
    • GetOwnerModuleFromTcpEntry
    • GetExtendedUdpTable
    • GetOwnerModuleFromUdpEntry
    • for generic IP?

Helpful resources

Calling Windows APIs https://stackoverflow.com/questions/33709033/golang-how-can-i-call-win32-api-without-cgo#33709631

GetExtendedTcpTable (from Iphlpapi.dll) https://msdn.microsoft.com/en-us/library/windows/desktop/aa365928(v=vs.85).aspx

GetUdpTable Example https://stackoverflow.com/questions/49167311/how-to-convert-uintptr-to-go-struct