Hi, so Ive played around with some filter expressions and the one thing I have consistently failed to do it correctly filter OUT certain domains. For example I’d like to filter out everything that has ‘accuweather’ in the URL. Furthermore I’d like to be able to filter out multiple domains this way. I’m doing this using the ‘Filtering saved traffic’ feature mitmdump provides.
Heres what I know
mitmdump -nr Infile -w testFilter google.com filters everything but google.com in the URL
when I try to use a Unary not it produces an error “-bash: !: event not found”. I assumed that if you could filter everything but something, you could filter out just that one url. But this doesn’t work with a !. Even trying the filter expression !(~q & ~t “text/html”) as a test to see if unary not worked…didn’t work.
So if anyone could provide help with this this would be much appreciated.
ps I’ve tried to use --ignore but that doesn’t quite seem to work. I don’t think Ive quite grasped it.