I need to use scapy on remote server to dump traffic like this
sniff(filter='icmp', iface='eth1', timeout=5)
To connect to remote server I'm using RPyC.
conn = rpyc.classic.connect(HOST_IP)
but I can not understand how to use scapy on remote server. How to call sniff function on remote server through RPyC?
The question may be considered wider - how to import module on remote machine and use its functions?