Scripts for mangling packets with divert sockets