none
packet moditification for specific url/ domain interception RRS feed

  • Question


  • Good day  forum.

    I writing  a packet modification for specific  url/ domain interception and redirect  with Windivert (https://github.com/basil00/Divert)

    What is want to achieve is this : Working with Windivert (https://github.com/basil00/Divert)
     show a packet be sent  from any  back listed  domain address, i want such  packets to be
     intercepted and redirected  to another DNS server.


    This part of the  code
    "

     typedef struct
    {
        char *domain;
        char *uri;
    } URL, *PURL;
    typedef struct
    {
        UINT size;
        UINT length;
        PURL *urls;
    } BLACKLIST, *PBLACKLIST;

    My questions  is this how  do i set up (BLACKLIST) and  modify the  code to intercept specific URL in the
     BLACKLIST, *PBLACKLIST.
     
     And finally be redirected to another DNS servier which is  198.200.200.2
    • Moved by CoolDadTx Monday, August 21, 2017 5:18 PM ASP.NET and/or third party product or C++ related
    Monday, August 21, 2017 11:06 AM

All replies

  • Questions related to using third party products need to be posted in their forums. We can only provide support for Microsoft products here. The code you posted is C++, not C#. Please post C++ related questions in the C++ forums.
    Monday, August 21, 2017 5:18 PM