etterfilter syntax error

What's the best way to setup a home network? Why should I care about BGP?

etterfilter syntax error

Post by _jb123_ on Sun Nov 06, 2011 7:27 pm
([msg=62849]see etterfilter syntax error[/msg])

I used this simple script to get a little practice with ettercap:

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
_jb123_
New User
New User
 
Posts: 1
Joined: Sun Nov 06, 2011 7:14 pm
Blog: View Blog (0)


Return to Networking

Who is online

Users browsing this forum: No registered users and 0 guests