Vadim Smirnov

Forum Replies Created

Viewing 15 posts - 1,066 through 1,080 (of 1,509 total)
  • Author
    Posts
  • in reply to: TDI driver filter #6433
    Vadim Smirnov
    Keymaster

      Гм, полез смотреть, и правда, при использовании IoAttachDeviceXXX обратная совместимость с TDI-фильтрами по видимому сохраняется. Так что беру свое утверждение обратно. 8)

      Другое дело, что если переносить LNM под Висту, то придется переделать его с патча мажоров на аттач к устройству. Разница невеликая конечно, но все же…

      in reply to: [eng][rus] ClientEventReceive problems #6443
      Vadim Smirnov
      Keymaster

        TDI_EVENT_DISCONNECT посылается, когда user-mode прога просит disconnect. Но до TDI_EVENT_DISCONNECT, должно быть несколько TDI_EVENT_RECEIVE, а ведь их вызывает драйвер TDI-протокола. Но почему тогда один раз?

        А что собственно видит сетевой сниффер? Два дампа для сравнения в студию, один с сети, другой с клиента. И кстати ClientEventChainedReceive, ClientEventReceiveExpedited, ClientEventChainedReceiveExpedited пошли лесом? С каким статусом обработался ClientEventReceive?

        А вообще, гадать по чему не работает код, которого ты никогда в жизни не видел можно долго… Советую поискать в сети что-то вроде оберток в виде сокетов или вспоиогательных функций вокруг TDI (от PCAUSA например, или те что в DriverStudio). TDI клиента написать это не пару функций вызвать, в свое время мне пришлось изрядно повозиться…

        in reply to: [eng][rus] ClientEventReceive problems #6441
        Vadim Smirnov
        Keymaster

          TDI клиентов писать не так уж просто, так что ошибка в драйвере – самое вероятное. Какая, это разбираться надо…

          in reply to: TDI driver filter #6431
          Vadim Smirnov
          Keymaster

            ЗЫ: вроде же в висте остался ТДИ уровень, да и фильтры там работают как нада. Если только аттач делать а не хук мажорных функций.

            Отсался он там для обратной совместимости, но теперь через него не идет весь трафик.

            in reply to: winpkflt can’t filter using winpcap library? #6429
            Vadim Smirnov
            Keymaster

              How can I do this?

              If you are asking about NDIS hooking driver modification then this can be done in your custom build by special request if you have got Developer license. If you have got the source code then you can do it yourself (the exact details can be queried from support(at)ntkernel.com).

              in reply to: winpkflt can’t filter using winpcap library? #6427
              Vadim Smirnov
              Keymaster

                but some network attack tool made by winpcap library.

                If network attack is performed from remote host to the system with WinpkFilter installed you will be able to intercept/block attacker packets sent with winpcap or anything else.

                If you want to block/inspect locally installed winpcap activities than this is also possible to do with simple extension of WinpkFilter (add winpcap to the list of hooked protocols in the NDIS hooking driver, NDIS IM build filters all protocols by default).

                in reply to: TCP/IP Hook – Traffic observing for all IP’s #6398
                Vadim Smirnov
                Keymaster

                  The sample above is good for blocking undesired content (not only URL’s). So I don’t think it is applicable for the reversed solution.

                  Basically you have several possibilities:

                  1) Allow only those IP’s which host permitted URL’s. If outgoing HTTP packet (with destination port 80) is destined to the IP address not in the list then just drop it.
                  2) Parse outgoing DNS packets and allow only those queries which are allowed in your URL list.
                  3) Parse HTTP GET request for each outgoing HTTP packet and match URL against your URL list.

                  in reply to: NDISRD rules #6422
                  Vadim Smirnov
                  Keymaster

                    А не планируются ли какие правила для NDISRD ? Гонять каждый пакет в юзермоду слишком накладно получается

                    В принципе ничего сложного нет, в течении дня можно сделать, если на уровне протокол/адрес/порт. Правда не уверен насколько это будет востребовано. Были случаи когда просили что-то подобное для кастом сборки, например когда нужно было ловить только SYN пакеты. Насколько кому-то нужны универсальные фильтры сказать сложно, но над возможностью реализации подумаю. 8)

                    in reply to: NDIS + TDI #6421
                    Vadim Smirnov
                    Keymaster

                      Собственно вот какой вопросец, в каком месте нужно получать ПИД процесса, который послал запрос на коннект, что бы при первом же поступлении этого пакета в WinPkFilter можно его отбросить или пропустить. Например я думаю если это сделать в комплит роутине на коннект, то NDIS филттру нечем будет руководствоваться при запросе или разрешении ПЕРВОГО пакета, т.к. такой инфы еще не будет.

                      Можно в запросе на коннет например…

                      Когда делаю IoCallDriver с параметром TDI_QUERY_ADDRESS_INFO, то возвращается ошибка STATUS_CANCELLED ((NTSTATUS)0xC0000120L)
                      В чем тут проблема то?

                      Судя по статусу IRP отменили… Может не на тот обьект был запрос?

                      in reply to: listadapters.exe doesnt work… #6420
                      Vadim Smirnov
                      Keymaster

                        Xp Sp2, yes i rebooted after the installation…and edited the reg’s files according to the installation in the help file.

                        Installer creates required registry entries itself and you don’t have to manually edit anything. The instructions are given for those who create their own installer which includes WinpkFilter. So may be editing the registry caused the observed behavior.

                        Another possible reason is installed third-party firewall/VPN/NAT software.

                        in reply to: listadapters.exe doesnt work… #6418
                        Vadim Smirnov
                        Keymaster

                          What operating system do you have? Have you rebooted after installation?

                          in reply to: IP-Adress Redirect? #6415
                          Vadim Smirnov
                          Keymaster

                            How can i modify the destination MAC?

                            MAC header is right before IP header.

                            in reply to: IP-Adress Redirect? #6413
                            Vadim Smirnov
                            Keymaster

                              That depends from proxy, if it is HTTP proxy there is no problem since HTTP GET request contains the exact URL.

                              in reply to: IP-Adress Redirect? #6411
                              Vadim Smirnov
                              Keymaster

                                1) In addition to IP address you also have to change the destination MAC address if proxy is located in the same network segment as you are.
                                2) You have to memorize the connection {source IP, source port, original remote IP, original remote port, new remote IP, new remote port}. When receiving a response on the redirected packet you have to find the connection in your connections table by destination IP/port which in your table should match source IP/port and substitute source IP/port in the packet.

                                in reply to: signed x64 driver for winpkfilter? #6417
                                Vadim Smirnov
                                Keymaster

                                  Taking into account that WinpkFilter is a development library but not an end user software we don’t find its drivers signing really necessary. When it is used for evaluation or private/non-commercial purposes it can be loaded on Vista x64 by choosing the “Enforce unsigned drivers loading” option in the boot menu. In case of commercial usage WinpkFilter custom build should be signed by the end vendor by its own signature.

                                  Our current point of view may change once Vista x64 becomes more popular when it is now.

                                Viewing 15 posts - 1,066 through 1,080 (of 1,509 total)