- Code: Select all
if (ip.proto == TCP && tcp.dst == 80) {
if (search(DATA.data, “Accept-Encoding”)) {
replace(”Accept-Encoding”, “Accept-Rubbish!”);
# note: replacement string is same length as original string
msg(”zapped Accept-Encoding!\n”);
}
}
if (ip.proto == TCP && tcp.src == 80) {
replace(”justin bieber”, “my fat cock“);
msg(”Filter Ran.\n”);
}
etterfilter gives me this message when I try to compile it:
- Code: Select all
[simple.ecf:2]: syntax error, unexpected 's', expecting offset or function
Any ideas what I'm doing wrong? Running BT5r1 KDE 32

