Scripts to mangle packets using divert sockets