idlethreat

stupid is durable

Random Stuff

without comments

Sometimes I need a paste spot to throw things that I will probably be using again sometime in the future. So, if you’re looking for some coding something and find this page, have at it and enjoy!

tom


Remove IP Addresses using Sed

sed 's/\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\}/x.x.x.x/g'

How to use:

cat myfile.txt | sed 's/\([0-9]\{1,3\}\.\)\{3,3\}[0-9]\{1,3\}/x.x.x.x/g' > newfile.txt

FATAL ERROR: Unknown keyword ‘ dce_iface’ in rule!

Happens sometimes with the new Snort 2.4.8 rules. A workaround I’ve done to fix it on a temporary basis is something like:
cd /etc/snort/rules; for i in `ls *.rules`; do sed -i /'dce_iface'/d $i; done
Restart Snort and you should be good to go.

Written by tgiles

June 2nd, 2009 at 3:17 pm

Posted in

Leave a Reply