How do I modify a HTTP response packet with winpcap?
        Posted  
        
            by httpinterpret
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by httpinterpret
        
        
        
        Published on 2010-05-10T11:23:43Z
        Indexed on 
            2010/05/10
            17:44 UTC
        
        
        Read the original article
        Hit count: 388
        
There are two problems here:
- What if content is encoded:gzip...
- Do I also need to change the header part to make the HTTP packet valid(checksums if any?)
UPDATE
Can someone with actual experience elaborate the steps involved?
I'm using winpcap and bpf tcp and src port 80 to filter the traffic,so my job lies in this callback function:
void packet_handler(u_char *param, const struct pcap_pkthdr *header, const u_char *pkt_data)
© Stack Overflow or respective owner