EONRaider/Arp-Spoofer

[BUG FIX] sysctl is located in : /sbin/sysctl on some linux (and maybe elsewhere on others)

raclure opened this issue · 0 comments

Python version :Python 3.7.3
OS : Raspbian GNU/Linux 10 (buster)

sysctl is located in : /sbin/sysctl

How to trigger the error :
sudo python3 arpspoof.py 10.185.2.10 -f

Traceback (most recent call last):
File "arpspoof.py", line 124, in
spoofer.execute()
File "arpspoof.py", line 28, in execute
self.__check_ipv4_forwarding()
File "arpspoof.py", line 41, in __check_ipv4_forwarding
stdout=DEVNULL, stderr=DEVNULL)
File "/usr/lib/python3.7/subprocess.py", line 342, in check_call
retcode = call(*popenargs, **kwargs)

             gateway_mac: str, gateway_ip: str,

File "/usr/lib/python3.7/subprocess.py", line 323, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.7/subprocess.py", line 775, in init
restore_signals, start_new_session)
File "/usr/lib/python3.7/subprocess.py", line 1522, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/usr/sbin/sysctl': '/usr/sbin/sysctl'