Ettercap / ettercap

Ettercap Project
http://www.ettercap-project.org
GNU General Public License v2.0
2.37k stars 492 forks source link

Exiting on GUI when starting wlan0 eth0 etc #1204

Open nobidebian opened 2 years ago

nobidebian commented 2 years ago

i also edited the /etc/ettercap/etter.conf ec_uid = 0 ec_gid = 0

when im starting it up: ettercap -G

It shows the GUI, but when im starting it to wlan0 eth0 etc it exits automatically and shows this ERROR

ERROR : 1, Operation not permitted [./src/ec_network.c:source_init:183]

pcap_open_live: wlan0: You don't have permission to capture on that device (socket: Operation not permitted)

when i tried to run it with sudo ettercap -G it shows this

ettercap 0.8.3.1 copyright 2001-2020 Ettercap Development Team

Authorization required, but no authorization protocol specified

GTK3 failed to initialize. Is X running?

hopefully u guys can help me out with this im currently new and learning pentest

koeppea commented 2 years ago

Which exact distribution + version are you using?

commands that i use: sudo -E ettercap -G and it shows: ettercap GUI when im starting it: ettercap 0.8.3.1 copyright 2001-2020 Ettercap Development Team Warning: Extension tcp revision 0 not supported, missing kernel module? Warning: Extension REDIRECT revision 0 not supported, missing kernel module? iptables v1.8.8 (nf_tables): Could not fetch rule set generation id: Invalid argument FATAL ERROR: Can't insert firewall redirects Note: i also set this to 0 [privs] ec_uid = 0 # nobody is the default ec_gid = 0 # nobody is the default and i also uncomment this 2 lines redir_command_on = "iptables -t nat -A PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport" redir_command_off = "iptables -t nat -D PREROUTING -i %iface -p tcp --dport %port -j REDIRECT --to-port %rport"

koeppea commented 1 year ago

Have you tried starting ettercap with sudo ?