winsock-lsp

How to control shared internet connection (ICS - Internet Connection Sharing) using LSP/SPI?

元气小坏坏 提交于 2019-12-13 05:19:51
问题 I am trying to write an application for myself to learn things and to use in my own office. What I am trying to write is: I have two nics. First one is connected to internet and the other one is connected to network I have enabled ICS (Internet Connection Sharing) in my own PC Other computers (Laptops, iPads etc.) are connecting to internet using my PC So my c works like a hotspot I am trying to see where they are connecting to and log their IP and MAC address. If I can do this, I will also

Is it possible to intercept dns queries using LSP/SPI?

孤街醉人 提交于 2019-12-02 01:53:55
问题 I wrote my own LSP which is working fine. However, I can not catch dns queries. For example there is no function like WSPGetHostByName or WSPGetAddrInfo. My lsp also supports UDP protocol but it is not working. If I run nslookup from console (cmd.exe) it seems working but i can not catch gethostbyname. Does anyone know how to do that? I don't think writing NSP (Name Service Provider) is a solution. But I might be wrong. Thanks 回答1: We have developed a LSP that can "intercept" DNS queries. The

Is it possible to intercept dns queries using LSP/SPI?

浪尽此生 提交于 2019-12-01 21:24:48
I wrote my own LSP which is working fine. However, I can not catch dns queries. For example there is no function like WSPGetHostByName or WSPGetAddrInfo. My lsp also supports UDP protocol but it is not working. If I run nslookup from console (cmd.exe) it seems working but i can not catch gethostbyname. Does anyone know how to do that? I don't think writing NSP (Name Service Provider) is a solution. But I might be wrong. Thanks Barak Weichselbaum We have developed a LSP that can "intercept" DNS queries. The only way to do it is by hooking into all of the DNS functions, keep in mind there are a