lemontree55 / packetgen

Ruby library to easily generate and capture network packets
MIT License
98 stars 13 forks source link

Unable to activate interface #120

Closed evilthreads669966 closed 1 year ago

evilthreads669966 commented 1 year ago

unable to activate interface: -8, wlp0s20f is the error message. I'm running the script as root. The name i pass for the interface is the name that shows up when I run ifconfig. I've installed libpcap-dev and the gem.

sdaubert commented 1 year ago

Hi @evilthreads669966. Usually, error -8 is about permissions : you have to be root to use packet injection and/or capture. Next, check your interface is up. If not : ip link set wlp0s20f up

evilthreads669966 commented 1 year ago

Thanks. I was worried that it had something to do with linux. I'm sorry for inconveniencing you with silly questions.