import os, sys
from select import select
from scapy.all import Ether

f = os.open("/dev/tap12", os.O_RDWR)
while 1:
    r = select([f],[],[])[0][0]
    if r == f:
        packet = os.read(f, 4000)
        # print len(packet), packet
        ip = Ether(packet)
        ip.show()

d862904f17d7e685d564e61938077f7fcf76674b
<mask token>

<mask token>
while 1:
    r = select([f], [], [])[0][0]
    if r == f:
        packet = os.read(f, 4000)
        ip = Ether(packet)
        ip.show()

<mask token>
f = os.open('/dev/tap12', os.O_RDWR)
while 1:
    r = select([f], [], [])[0][0]
    if r == f:
        packet = os.read(f, 4000)
        ip = Ether(packet)
        ip.show()

import os, sys
from select import select
from scapy.all import Ether
f = os.open('/dev/tap12', os.O_RDWR)
while 1:
    r = select([f], [], [])[0][0]
    if r == f:
        packet = os.read(f, 4000)
        ip = Ether(packet)
        ip.show()

import os, sys
from select import select
from scapy.all import Ether

f = os.open("/dev/tap12", os.O_RDWR)
while 1:
    r = select([f],[],[])[0][0]
    if r == f:
        packet = os.read(f, 4000)
        # print len(packet), packet
        ip = Ether(packet)
        ip.show()
