Pyrit
Pyrit copied to clipboard
Pyrit doesn't see Scapy 2.3.3
On MacOS 10.12
brew install pyrit wasn't working because of the "AttributeError: 'BitEnumField' object has no attribute 'names'" issue.
brew remove pyrit scapy
so I clone from github, install scapy and pyrit as per the wiki.
scapy 2.3.3 is there when I run scapy
but pyrit complains Scapy 2.x is required to use Pyrit's analyze/attack functions but seems to be unavailable.
scapy does have some errors. are they related?
INFO: Can't import matplotlib. Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
ERROR: Unable to import pcap module: No module named pcap/No module named pcapy
WARNING: No route found for IPv6 destination :: (no default route?)
INFO: Can't import python Crypto lib. Won't be able to decrypt WEP.
INFO: Can't import python Crypto lib. Disabled certificate manipulation tools
INFO: Can't import python ecdsa lib. Disabled certificate manipulation tools
Welcome to Scapy (2.3.3)
Edit:
I followed this issue: https://github.com/JPaulMora/Pyrit/issues/206 and installed pcapy with sudo pip install pcapy
Then with pyrit we are back to "AttributeError: 'BitEnumField' object has no attribute 'names'"
macOS 10.12.2, stuck at the same step,
Chetans-MacBook-Pro:~ chetanpm$ scapy WARNING: No route found for IPv6 destination :: (no default route?) INFO: Can't import python cryptography lib. Won't be able to decrypt WEP. INFO: Can't import python cryptography lib. Disabled certificate manipulation tools INFO: Can't import python ecdsa lib. Disabled certificate manipulation tools INFO: Can't import python cryptography lib. Disabled IPsec encryption/authentication. WARNING: Combined crypto modes not available for IPsec (pycrypto 2.7a1 required). Welcome to Scapy (2.3.3.dev156)
pyrit complains Scapy 2.x is required.
For what it is worth, I managed to get things working with homebrew on Python 2.7.13 like this:
git clone https://github.com/JPaulMora/Pyrit.git
sudo -H pip install psycopg2
sudo -H pip install scapy==2.3.2
sudo -H pip install pcapy
cd Pyrit
python setup.py clean
python setup.py build
sudo python setup.py install
Chetans-MacBook-Pro:~ chetanpm$ ls /usr/local/lib/python2.7/site-packages/ _pcapmodule.so psycopg2-2.6.2.dist-info cpyrit pylibpcap-0.6.4-py2.7.egg-info cpyrit_opencl-0.5.0-py2.7.egg-info pyrit-0.5.1-py2.7.egg-info easy_install.py pyrit_cli.py easy_install.pyc pyrit_cli.pyc pcap.py pyrit_cli.pyo pcap.pyc scapy pcapy-0.11.1.dist-info scapy-2.3.2.dist-info pcapy.so setuptools pip setuptools-32.3.1.dist-info pip-9.0.1.dist-info wheel pkg_resources wheel-0.29.0.dist-info psycopg2
Followed exact procedure @2600box mentioned. Still it says:
`Chetans-MacBook-Pro:test chetanpm$ pyrit -r wpapsk-linksys.dump.gz analyze Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora https://github.com/JPaulMora/Pyrit This code is distributed under the GNU General Public License v3+
Scapy 2.x is required to use Pyrit's analyze/attack functions but seems to be unavailable.`
Sorry I haven't been around, there was a PR recently in dev branch that addressed this issue. I just tested it with Scapy 2.3.3 installed from brew in macOS 10.12.2 and it seems to work correctly, I will merge dev branch with master now. Feedback is appreciated
@JPaulMora But brew doesn't have scapy..
Chetans-MacBook-Pro:Pyrit chetanpm$ brew install scapy Updating Homebrew... Error: No available formula with the name "scapy" ==> Searching for similarly named formulae... Error: No similarly named formulae found. ==> Searching taps... Error: No formulae found in taps.
installed from scapy.git. The version is 2.3.3 yet again pyrit built from the latest merge says:
`Chetans-MacBook-Pro:test chetanpm$ pyrit -r wpapsk-linksys.dump.gz analyze Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora https://github.com/JPaulMora/Pyrit This code is distributed under the GNU General Public License v3+
Scapy 2.x is required to use Pyrit's analyze/attack functions but seems to be unavailable.`
huh.. weird
[JP@Apple ~]$ brew list scapy
/usr/local/Cellar/scapy/2.3.3/bin/UTscapy
/usr/local/Cellar/scapy/2.3.3/bin/scapy
/usr/local/Cellar/scapy/2.3.3/lib/python2.7/ (137 files)
/usr/local/Cellar/scapy/2.3.3/libexec/vendor/ (7 files)
/usr/local/Cellar/scapy/2.3.3/share/man/man1/scapy.1.gz
@JPaulMora: scapy seem to be found nowhere in brew for me. Brew formulae search.
I have however installed scapy 2.3.3 from its source. scapy binary is in the /bin folder
Chetans-MacBook-Pro:~ chetanpm$ brew list scapy /usr/local/Cellar/scapy/2.3.3/bin/UTscapy /usr/local/Cellar/scapy/2.3.3/bin/scapy /usr/local/Cellar/scapy/2.3.3/lib/python2.7/ (137 files) /usr/local/Cellar/scapy/2.3.3/libexec/vendor/ (6 files) /usr/local/Cellar/scapy/2.3.3/share/man/man1/scapy.1.gz
But pyrit still doesn't see it!!
`Chetans-MacBook-Pro:test chetanpm$ pyrit -r wpapsk-linksys.dump.gz analyze Pyrit 0.5.1 (C) 2008-2011 Lukas Lueg - 2015 John Mora https://github.com/JPaulMora/Pyrit This code is distributed under the GNU General Public License v3+
Scapy 2.x is required to use Pyrit's analyze/attack functions but seems to be unavailable.`
yeah, same problem here, i am waiting for a solution have some months...
someone know some workaround? installing python2-scapy package don´t solve the problem here for me...
thanks in advance
seems like duplicate thread https://github.com/JPaulMora/Pyrit/issues/521