10 ms·
Anyone have ideas on getting it running on OS X? One downside to some (often interpreted) languages is that there isn't always an easy way to package them up i
by tibbon 16y ago
Anyone have ideas on getting it running on OS X?
One downside to some (often interpreted) languages is that there isn't always an easy way to package them up into a single binary for user consumption.
- kijinbear 16y agoInstall Python, go to terminal, and type `python idiocy.py`
- tibbon 16y ago$ python idiocy.py Traceback (most recent call last): File "idiocy.py", line 2, in <module> import getopt, sys, pcap, dpkt, re, httplib, urllib ImportError: No module named pcap I'm not a python programmer. I don't see anything the equivalent of 'gem' to install modules. Googling isn't helping. Here's what I thought to try so far. $ easy_install libpcap python-pcap python-dpkt Searching for libpcap Reading http://pypi.python.org/simple/libpcap/ http://pypi.python.org/simple/libpcap/ Couldn't find index page for 'libpcap' (maybe misspelled?) Scanning index of all packages (this may take a while) Reading http://pypi.python.org/simple/ http://pypi.python.org/simple/ No local packages or download links found for libpcap error: Could not find suitable distribution for Requirement.parse('libpcap')
- deathbob 16y agomaster>python idiocy.py Traceback (most recent call last): File "idiocy.py", line 2, in <module> import getopt, sys, pcap, dpkt, re, httplib, urllib ImportError: No module named pcap Is there a python equivalent to RubyGems ?
- BrianLy 16y agoDistribute. See http://python-distribute.org/pip_distribute.png http://python-distribute.org/pip_distribute.png
- tibbon 16y agoNope. $pip install python-dpkt && pip install libpcap && pip install python-pcap Downloading/unpacking python-dpkt Could not find any downloads that satisfy the requirement python-dpkt No distributions at all found for python-dpkt Storing complete log in /Users/davidfisher/.pip/pip.log
- deathbob 16y agoYeah how do you use this? I see pcap here http://pypi.python.org/pypi/pcap/1.1 http://pypi.python.org/pypi/pcap/1.1 but can't seem to install it. master>pip install pcap Downloading/unpacking pcap Could not find any downloads that satisfy the requirement pcap No distributions at all found for pcap Storing complete log in /Users/bob/.pip/pip.log
- aiurtourist 16y agoGrab the tarball from http://downloads.sourceforge.net/project/pylibpcap/pylibpcap/0.6.2/pylibpcap-0.6.2.tar.gz http://downloads.sourceforge.net/project/pylibpcap/pylibpcap... and then "pip install pylibpcap-0.6.2.tar.gz" You'll need the Apple Developer tools / XCode first.
- ovi256 16y agoI'm pretty sure you can install all the dependencies with macports, but you can't put the wireless card in monitor mode using the 'iw' command, because there's no iwtools on the mac AFAIK. And monitor (or promiscuous) mode is necessary.