This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#On macOS Mojave, this script must run in root, otherwise you will | |
#get a runtime error due to "No permission" error when create raw socket | |
import socket | |
import io | |
import struct | |
import sys | |
class flushfile(io.FileIO): | |
def __init__(self, f): |