Coder Social home page Coder Social logo

Comments (55)

 avatar commented on June 7, 2024 2

@xdavidhu thank you and thank you to everybody for helping to fix this issue

from kickthemout.

 avatar commented on June 7, 2024 1

yes i did! @xdavidhu

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Hello there. What OS are you running? @kashkalik

from kickthemout.

hlagagoalga avatar hlagagoalga commented on June 7, 2024

I am running MAC os , has someone met this error before ? @k4m4

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Yes, indeed. There are some issues when running KickThemOut on a Mac, most of which, we can do very little about since its the module we are using that causes the error. Assuming that you have already installed the requirements, I would recommend running the following:

$ pip uninstall scapy
$ brew install scapy

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

For Mac OS X Installations run the following:

Install Requirements:
----------------------
$ sudo pip install pcapy
$ brew install libdnet
$ brew install scapy
--> You might be asked to run some commands after executing the previous step.

Clone Repository:
------------------
$ git clone https://github.com/k4m4/kickthemout.git
$ cd kickthemout/
$ python kickthemout.py

NOTE: You need to have Homebrew installed before downloading requirements.
(Thanks @SentinelWarren for your contribution)

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Let me know if this works for you please. @kashkalik

from kickthemout.

 avatar commented on June 7, 2024

For me stills giving me the error after brew installation

Warning: libdnet-1.12 already installed
name:kickthemout name$ brew install scapy
Warning: homebrew/python/scapy-2.3.3 already installed
name:kickthemout name$ cd
name:~ name$ cd Desktop/
name:Desktop name$ git clone https://github.com/k4m4/kickthemout.git
Cloning into 'kickthemout'...
remote: Counting objects: 201, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 201 (delta 8), reused 0 (delta 0), pack-reused 186
Receiving objects: 100% (201/201), 33.58 KiB | 0 bytes/s, done.
Resolving deltas: 100% (106/106), done.
Checking connectivity... done.
name:Desktop name$ cd kickthemout/
name:kickthemout name$ python kickthemout.py 

ERROR: Requirements have not been properly satisfied. Please try running:
	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues/

name:kickthemout name$ 

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Try uninstalling everything:

$ brew uninstall scapy
$ brew uninstall libdnet
$ sudo pip uninstall pcapy
$ sudo pip uninstall scapy

Subsequently, run the installation commands again.

$ sudo pip install pcapy
$ brew install libdnet
$ brew install scapy
--> You might be asked to run some commands after executing the previous step.
$ git clone https://github.com/k4m4/kickthemout.git
$ cd kickthemout/
$ python kickthemout.py

Let me know how it goes. @daniellogvin

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

@k4m4 libdnet is not in pip so it can only be installed from source or homebrew

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

That is correct, thank you. It was a typo. @SentinelWarren

from kickthemout.

girardthur avatar girardthur commented on June 7, 2024

I have the same problem than @kashkalik and @daniellogvin , I have reinstalled all the stuff like you said but it changed nothing.

Here are my versions:

  • macOS Sierra 10.12.2

  • Python 2.7

  • Homebrew 1.1.7

  • libdnet 1.12

  • pip 9.0.1

  • scapy 2.3.3

  • pcapy0.11.1

Let me know @k4m4 if you want more infos.

Thank you.

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

@suxxa did you try installing pypcap? pip install pypcap

from kickthemout.

girardthur avatar girardthur commented on June 7, 2024

@SentinelWarren Thank you for your time, pypcap was not installed. I installed it but the problem is still here.

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

is it the same error requirements not satisfied or your getting another error?

from kickthemout.

girardthur avatar girardthur commented on June 7, 2024

It is the same error.

ERROR: Requirements have not been properly satisfied. Please try running:
$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
https://github.com/k4m4/kickthemout/issues

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

ok! try deleting the local clone,the clone it again and repeat the installation steps again

from kickthemout.

girardthur avatar girardthur commented on June 7, 2024

I reinstalled all the packages (even pypcap) but nothing changed.

from kickthemout.

 avatar commented on June 7, 2024

nothing is working, look:

	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo pip install -r requirements.txt
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/daniellogvin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: scapy in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1))

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ 

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

@daniellogvin try installing without sudo,, just do pip install -r requirements.txt

from kickthemout.

 avatar commented on June 7, 2024

Requirement already satisfied: scapy in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1))

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

I don't think that would work. @SentinelWarren

from kickthemout.

 avatar commented on June 7, 2024

it's very weird

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Try running the following (in the exact order): @daniellogvin @suxxa

$ sudo pip uninstall scapy pcapy
$ brew uninstall libdnet scapy
$ sudo pip install pcapy
$ brew install libdnet scapy

Let me know how it goes.

from kickthemout.

 avatar commented on June 7, 2024

same thing....

from kickthemout.

 avatar commented on June 7, 2024
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo pip uninstall scapy pcapy
Password:
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Uninstalling scapy-unknown.version:
  /usr/local/lib/python2.7/site-packages/scapy
  /usr/local/lib/python2.7/site-packages/scapy-unknown.version-py2.7.egg-info
Proceed (y/n)? y
  Successfully uninstalled scapy-unknown.version
Uninstalling pcapy-0.11.1:
  /usr/local/lib/python2.7/site-packages/pcapy-0.11.1-py2.7.egg-info
  /usr/local/lib/python2.7/site-packages/pcapy.so
  /usr/local/share/doc/pcapy/LICENSE
  /usr/local/share/doc/pcapy/README
  /usr/local/share/doc/pcapy/pcapy.html
  /usr/local/tests/96pings.pcap
  /usr/local/tests/pcapytests.py
Proceed (y/n)? y
  Successfully uninstalled pcapy-0.11.1
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew uninstall libdnet scapy
Uninstalling /usr/local/Cellar/libdnet/1.12... (29 files, 389.7K)
Uninstalling /usr/local/Cellar/scapy/2.3.3... (150 files, 2.4M)
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo pip install pcapy
The directory '/Users/daniellogvin/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/daniellogvin/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting pcapy
  Downloading pcapy-0.11.1.tar.gz
Installing collected packages: pcapy
  Running setup.py install for pcapy ... done
Successfully installed pcapy-0.11.1
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew install libdnet scapy
Updating Homebrew...
==> Downloading https://homebrew.bintray.com/bottles/libdnet-1.12.sierra.bottle.2.tar.gz
Already downloaded: /Users/daniellogvin/Library/Caches/Homebrew/libdnet-1.12.sierra.bottle.2.tar.gz
==> Pouring libdnet-1.12.sierra.bottle.2.tar.gz
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/libdnet/1.12: 29 files, 389.7K
==> Installing scapy from homebrew/python
==> Downloading https://homebrew.bintray.com/bottles-python/scapy-2.3.3.sierra.bottle.tar.gz
Already downloaded: /Users/daniellogvin/Library/Caches/Homebrew/scapy-2.3.3.sierra.bottle.tar.gz
==> Pouring scapy-2.3.3.sierra.bottle.tar.gz
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
  mkdir -p /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages
  echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺  /usr/local/Cellar/scapy/2.3.3: 150 files, 2.4M
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo python kickthemout.py 

ERROR: Requirements have not been properly satisfied. Please try running:
	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ 

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

You missed some commands scapy asked you to run. Look at the spaces I left on your comment. Run those commands and let me know what happens.

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

It is most likely that the echo part wont work. In that case just do nano /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth and paste the following in the file:

import site; 
site.addsitedir("/usr/local/lib/python2.7/site-packages")

from kickthemout.

 avatar commented on June 7, 2024

added it, and did not work tho... it's very weird, and before that i also tried again the steps you told me to do

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

did you install python via brew?

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Hmm... very odd indeed. You have probably missed something. I cannot imagine anything else, since it definitely has to do with the requirement configuration.

from kickthemout.

 avatar commented on June 7, 2024

i believe i did it through brew

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

what is the output of which python ?

from kickthemout.

 avatar commented on June 7, 2024

/opt/local/bin/python

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

probably you installed python via macports since brew installation path is /usr/local/bin/pyhon long story short,

try doing the following

brew install python
brew linkapps python
brew link --overwrite python 

from kickthemout.

 avatar commented on June 7, 2024

that's totally true

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

That's right! Thanks @SentinelWarren for the support ;)
Did it resolve your issue? @daniellogvin

from kickthemout.

 avatar commented on June 7, 2024

i'm checking it now

from kickthemout.

 avatar commented on June 7, 2024

damn... i did the link and all that stuff and still not working:

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew install python
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
imagemagick@6                                                             open-mesh

Warning: python-2.7.13 already installed, it's just not linked.
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew linkapps python
Linking: /usr/local/opt/python/IDLE.app
Linking: /usr/local/opt/python/Python Launcher.app
Linked 2 apps to /Applications
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ brew link --overwrite python 
Linking /usr/local/Cellar/python/2.7.13... 7999 symlinks created
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ python kickthemout.py 

ERROR: KickThemOut must run as root. Try again with sudo/root:
	$ sudo python kickthemout.py

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo python kickthemout.py 
Password:

ERROR: Requirements have not been properly satisfied. Please try running:
	$ sudo pip install -r requirements.txt

If you still get the same error, please submit an issue here:
	https://github.com/k4m4/kickthemout/issues

Daniels-MacBook-Pro-2:kickthemout daniellogvin$ 

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

now try unistalling and reinstalling the modules again

from kickthemout.

 avatar commented on June 7, 2024

ok, let me try

from kickthemout.

 avatar commented on June 7, 2024

same thing...

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

damn!try doing this again

mkdir -p /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages

echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/daniellogvin/Library/Python/2.7/lib/python/site-packages/homebrew.pth

from kickthemout.

 avatar commented on June 7, 2024

WORKS!!!! PERFECTLY AWESOME!

from kickthemout.

 avatar commented on June 7, 2024

don't works at all good, but kinda works

from kickthemout.

 avatar commented on June 7, 2024

it has a problem obtaining the gateway

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

run the script with sudo privileges sudo python kickthemout.py

from kickthemout.

 avatar commented on June 7, 2024
Daniels-MacBook-Pro-2:kickthemout daniellogvin$ sudo python kickthemout.py 
Password:

^C
ERROR: Gateway IP could not be obtained. Please enter IP manually.

kickthemout> Enter Gateway IP (e.g. 192.168.1.1): ^CTraceback (most recent call last):

from kickthemout.

SentinelWarren avatar SentinelWarren commented on June 7, 2024

then enter the gateway IP as the script suggests!otherwise i think @k4m4 should take it from here :)!

from kickthemout.

 avatar commented on June 7, 2024

awesome, @k4m4 where are you?

from kickthemout.

xdavidhu avatar xdavidhu commented on June 7, 2024

@daniellogvin Just enter your gateway IP manually. It's possible that KickThemOut fails to detect it automatically.

from kickthemout.

 avatar commented on June 7, 2024

thanks @xdavidhu !

from kickthemout.

xdavidhu avatar xdavidhu commented on June 7, 2024

You are welcome!
Did you resolve the issue @daniellogvin?

from kickthemout.

xdavidhu avatar xdavidhu commented on June 7, 2024

@daniellogvin Happy to hear!
Thank you for submitting the issue!

from kickthemout.

k4m4 avatar k4m4 commented on June 7, 2024

Hello again @daniellogvin .
Sorry for the delayed response.
Glad to hear your issue has been resolved.

from kickthemout.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.