I've tried to run this code using Pycharm in VirtualMachine Kali Linux and failed.
How to import scapy? I've also tried adding scapy to file > settings > ProjectInterpreter in Pycharm but it still doesn't work.
I'm sure I did install scapy using pip install scapy
. What's the issue now?
from scapy.all import *
def scan(ip):
scapy.arping(ip)
scan("10.0.2.1")