Userland: Kali linux socket: Permission denied, run ettercap failed

Created on 1 Dec 2018  路  14Comments  路  Source: CypherpunkArmory/UserLAnd

Device: [e.g. Pixel XL 2]
Android Version: 8.0.0
UserLAnd Version 1.0.2

Run UserLAnd
Click on Apps
Click on Kali
Then wait till it is installed
Next, I connect to this kali by ssh

ettercap can't run

I install ettercap by this:

sudo apt-get install zlib1g zlib1g-dev
sudo apt-get install build-essential
sudo apt-get install ettercap-text-only

add try to run ettercap

ettercap -T

and then get this error:

ettercap 0.8.2 copyright 2001-2015 Ettercap Development Team

ERROR : 13, Permission denied
[/build/ettercap-sGGsY1/ettercap-0.8.2/src/ec_capture.c:capture_getifs:114]

 socket: Permission denied

image

netdiscover can't run

I install netdiscover by this:

sudo apt-get install netdiscover

add try to run netdiscover

netdiscover -i wlan0

and then get this error:

pcap_open_live(): socket for SIOCETHTOOL(ETHTOOL_GET_TS_INFO): Permission denied

image

Am I missing something? Or does anyone have a good idea to solve this problem?

Most helpful comment

i did sudo su
then sudo ettercad -G and it worked for me

All 14 comments

you may need to use:

$ sudo su (to go into root mode) and then use your command
or
$ sudo (and your command)

you may need to use:

$ sudo su (to go into root mode) and then use your command
or
$ sudo (and your command)

Still, it can't work. I get the error Permission denied again.
Maybe that's because my phone is no rooted?

no... the file system has access to itself so I don't know...

no... the file system has access to itself so I don't know...

I think maybe it's because that we don't have high privilege authorization to access and control the network device.

you might be right there...

Anyone find a solution for this?

Um not yet... It may be the program just can't run in a chroot.

I've read it's possibly missing ath10k drivers or something? I'm going to try a usb wifi dongle and see what happens

Same issue with my Samsung s9 plus, I'm thinking need external wifi card that's compatible. Anyone else try one yet with same issues ?

same on my s9 with ping. strace showed permission denied opening a socket with admin and raw capabilities. found a workaround in another thread so repost here for orthers. run su (even though you are allready root) and the new shell is initialised properly and then it works. looks like a kali bug, nothing to do with your hardware.

as root, in roots home dir, i ran:
echo "su" >> .bash_profile
to do this everytime the shell starts. now kali chroot is working as expected from the start.
note that you cant put su - in .bash_profile because that will run the profile again. just plain su will not.

i did sudo su
then sudo ettercad -G and it worked for me

i dont think this is a permanent solution. Im running arp-scan --local then also erro arrives: my_lookupdev: Permission Denied

Same issue on my Samsung Galaxy Note 9 with UserLand Kali session

i dont think this is a permanent solution. Im running arp-scan --local then also erro arrives: my_lookupdev: Permission Denied

Yep same issue on Huawei P30 Pro. su sudo didn't work in either arp-scan nor netdiscover

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Enzycal picture Enzycal  路  7Comments

drhuffman12 picture drhuffman12  路  4Comments

mkevinam picture mkevinam  路  4Comments

lewisdonofrio picture lewisdonofrio  路  4Comments

lapsio picture lapsio  路  4Comments