Creating man-in-the-middle script