tope awolowo

tope awolowo

  • NA
  • 11
  • 2.5k

packet moditification for specific url/ domain interception

Aug 21 2017 11:54 AM
hello forum.
 
Am writting  a packet modification project  with https://github.com/basil00/Divert.
 
 
I need  to call this function ina  windows servoce application. 
 The section is  shown  below
 
// Open the Divert device:
handle = WinDivertOpen(
"outbound && " // Outbound traffic only
"ip && " // Only IPv4 supported
"tcp.DstPort == 80 && " // HTTP (port 80) only
"tcp.PayloadLength > 0", // TCP data packets only
WINDIVERT_LAYER_NETWORK, priority, 0
);
 
"
My question is this : I want to redrect  all  packets to a DNS SERVER on 124.3.3.3.
 
 
 How i achieve this pls.
 
Thank you 
 
Thank you