Page 1 of 1

etterfilter syntax error

PostPosted: Sun Nov 06, 2011 7:27 pm
by _jb123_
I used this simple script to get a little practice with ettercap:

Code: Select all
if (ip.proto == TCP && tcp.dst == 80) {
        if (search(, “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