예제 #1
0
def send():
    hpcap = pcap.pcap_open_live(device, 65535, True, 0)
    pcap.pcap_sendpacket(
        hpcap,
        b'datadatadatatdatadafjasdkfjkasjdfkasdfklajsdfjlksaflsjkfjaskdjfasjfdk'
    )
    pcap.pcap_close(hpcap)
예제 #2
0
파일: test.py 프로젝트: public0821/libpcapy
 def test_pcap_sendpacket(self):
     pcap.pcap_sendpacket(self.hpcap, b'datadatadatatdatadafjasdkfjkasjdfkasdfklajsdfjlksaflsjkfjaskdjfasjfdk')
예제 #3
0
 def test_pcap_sendpacket(self):
     pcap.pcap_sendpacket(
         self.hpcap,
         b'datadatadatatdatadafjasdkfjkasjdfkasdfklajsdfjlksaflsjkfjaskdjfasjfdk'
     )
예제 #4
0
def send():
    hpcap = pcap.pcap_open_live(device, 65535, True, 0)
    pcap.pcap_sendpacket(hpcap, b'datadatadatatdatadafjasdkfjkasjdfkasdfklajsdfjlksaflsjkfjaskdjfasjfdk') 
    pcap.pcap_close(hpcap)