Giter VIP home page Giter VIP logo

Comments (21)

k4m4 avatar k4m4 commented on August 12, 2024 3

I see. Generally, there are quite a few issues when installing scapy on a Mac OS X. I would recommend doing $ sudo pip uninstall scapy and attempting to download it through homebrew: $ brew install scapy.

from kickthemout.

Maslor avatar Maslor commented on August 12, 2024 1

Ok, I think I know what my problem is. It seems that non-linux distributions require installing libpcap and libdnet and their Python wrappers.
But the brew version of scapy works, thanks!

from kickthemout.

SentinelWarren avatar SentinelWarren commented on August 12, 2024 1

@k4m4 @xdavidhu sorry, i meant the module won't be on formulae but in homebrew/python/scapy python tap so was supposed to be something like brew install homebrew/python/scapy at least its how it works to me when i install python modules using brew!

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

Try running sudo pip install -r requirements.txt.

from kickthemout.

Maslor avatar Maslor commented on August 12, 2024

Could not open requirements file: [Errno 2] No such file or directory: 'scapy'

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

Sorry, there was a typo in the command I shared with you. I fixed it now. Please give it another shot and let me know what happens.

from kickthemout.

Maslor avatar Maslor commented on August 12, 2024

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

I ran pip install pcapy and now, instead of complaining about the pcapy module, it's complaining about a dumbnet module.

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

Try doing:

$ sudo pip uninstall scapy
$ sudo pip install scapy

What OS are you running?

from kickthemout.

Maslor avatar Maslor commented on August 12, 2024

I'm running macOS Sierra version 10.12.2, python 2.7.13

After uninstalling and installing scapy I keep getting the pcapy module error. I installed the pcapy module and the message is as follows:

(kickthemout) Gabriels-MacBook-Pro:kickthemout Maslor$ python kickthemout.py 
Traceback (most recent call last):
  File "kickthemout.py", line 12, in <module>
    import scan, spoof
  File "/Users/Maslor/Desktop/kickthemout/scan.py", line 9, in <module>
    import scapy.config, scapy.layers.l2, scapy.route, socket, math, errno
  File "/Users/Maslor/Desktop/kickthemout/lib/python2.7/site-packages/scapy/layers/l2.py", line 16, in <module>
    from scapy.ansmachine import *
  File "/Users/Maslor/Desktop/kickthemout/lib/python2.7/site-packages/scapy/ansmachine.py", line 14, in <module>
    from scapy.sendrecv import send,sendp,sniff
  File "/Users/Maslor/Desktop/kickthemout/lib/python2.7/site-packages/scapy/sendrecv.py", line 14, in <module>
    from scapy.arch.consts import DARWIN, FREEBSD
  File "/Users/Maslor/Desktop/kickthemout/lib/python2.7/site-packages/scapy/arch/__init__.py", line 79, in <module>
    from scapy.arch.pcapdnet import *
  File "/Users/Maslor/Desktop/kickthemout/lib/python2.7/site-packages/scapy/arch/pcapdnet.py", line 471, in <module>
    import dumbnet as dnet
ImportError: No module named dumbnet

from kickthemout.

kanherepratik avatar kanherepratik commented on August 12, 2024

While running python kickthemout.py
ImportError: No module named scapy.config.
please help...!!

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

Hi there. It seems that you haven't installed the requirements. Try running: $ sudo pip install -r requirements.txt. What OS are you running? @kanherepratik

from kickthemout.

thisisALPINE avatar thisisALPINE commented on August 12, 2024

I'm having the same exact issue. I'm running on a MacOsX, El Capitan. Firstly I entered sudo pip install -r requirements.txt, then I tried brew uninstall scapy and then brew install scapy, but when I run the program it keeps saying that the requirements are not satisfied.

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

Generally, scapy raises quite a few issues when it comes to Mac OS. @thisisALPINE
Try running the following:

$ pip uninstall scapy
$ brew uninstall scapy
$ brew install scapy

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 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.

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

If you are running on Mac OS X, try the above solution & please let me know if the issue gets resolved. @thisisALPINE @kanherepratik @Maslor

from kickthemout.

SentinelWarren avatar SentinelWarren commented on August 12, 2024

@k4m4, you can't install a python module with brew sir! cause it won't be installed installed as a module! inspect brew won't even be able to install scapy since its not in the formulae but in python/scapy tap.

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

I've tested and confirmed that you can use brew to install both scapy and libdnet. @SentinelWarren

from kickthemout.

xdavidhu avatar xdavidhu commented on August 12, 2024

@SentinelWarren You can install python modules with brew. Take scapy for example.

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

That is correct. However, in some cases, brew install scapy works just fine. Otherwise, it will simply ask you to run a different command. @SentinelWarren

from kickthemout.

gowrav avatar gowrav commented on August 12, 2024

Its apparently moved to a new tap > https://github.com/Homebrew/homebrew-python/pull/388
Homebrew/homebrew-core#1106

from kickthemout.

k4m4 avatar k4m4 commented on August 12, 2024

@gowrav pcapy doesn't seem to exist anymore on homebrew; use pip instead.

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.