-
nvidia and cpyrit issue
Hi guys,
I am aware that this issue is not new, but I have tried almost everything the past 3 days without succes.
And I think i'm leaving kali if I cant fix this issue, because I have seen so many different errors and reinstalled kali a dozen of times, that I'm not willing to spend more time figuring this out.
I am installing kali rolling 2016.1 (64 bit) on my harddisk and I start with version 4.6.0.
After update && upgrade && dist-upgrade I get to version 4.8.0.
nvidia-kernel-dkms gives me nvidia version 367.57.20
Most important issues I've encountered:
- apt-get install nvidia-kernel-$(uname -r) <this command gives me:
* E: Unable to locate package nvidia-kernel-4.8.0-kali1-amd64
* E: Couldn't find any package by glob 'nvidia-kernel-4.8.0-kali1-amd64'
* E: Couldn't find any package by regex 'nvidia-kernel-4.8.0-kali1-amd64'
- Can't install or patch nvidia drivers manually (tried version 375.20).
- Can't build & install cpyrit 0.4.0.
Even if I manage to install nvidia drivers version 367.57.20 from terminal with the dkms command, cpyrit wont build & install.
And without cpyrit I can't make use from cuda. So my gpu isn't displayed when I enter: pyrit list_cores.
I don't have time for the coming days to post more errors, since I wont be home. But if needed, I can try to search them online and post them here.
-
Nevermind, I fixed it myself by reading the pyrit git: https://github.com/JPaulMora/Pyrit/w...U-Acceleration
I had some bugs, but the fixes can be found there.
Extra info on the nvidia drivers: I followed blackmoreops guide.
-
Well I got a new problem now with pyrit.
I got it worked with CUDA, but since I read that OpenCL is faster I tried this:
~/.pyrit/config
Code:
use_CUDA = false
use_OpenCL = true
But now when I try to list the cores I get this:
pyrit list_cores
Code:
Pyrit 0.5.0 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+
Traceback (most recent call last):
File "/usr/local/bin/pyrit", line 6, in <module>
pyrit_cli.Pyrit_CLI().initFromArgv()
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
func(self, **options)
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 291, in list_cores
with cpyrit.cpyrit.CPyrit() as cp:
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 447, in __init__
p = _cpyrit_opencl.OpenCLPlatform(platform_idx)
SystemError: Failed to enumerate devices on this platform (CL_DEVICE_NOT_FOUND)
And when I try an attack I get a slightly different output:
pyrit -r cap.cap attack_batch
Code:
Pyrit 0.5.0 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+
Connecting to storage at 'file://'... connected.
Parsing file 'cap.cap' (1/1)...
Parsed 2290 packets (2290 802.11-packets), got 1 AP(s)
Picked AccessPoint **:**:**:**:**:** ('wlan') automatically.
Traceback (most recent call last):
File "/usr/local/bin/pyrit", line 6, in <module>
pyrit_cli.Pyrit_CLI().initFromArgv()
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
func(self, **options)
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 166, in new_f
f(*args, **kwds)
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 1004, in attack_batch
with cpyrit.cpyrit.StorageIterator(storage, essid) as dbiter:
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 728, in __init__
self.cp = CPyrit() if yieldNewResults else None
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 447, in __init__
p = _cpyrit_opencl.OpenCLPlatform(platform_idx)
SystemError: Failed to enumerate devices on this platform (CL_DEVICE_NOT_FOUND)
I have tried a fix where you have to delete "/" at the end of multiple lines.
I've deleted them all and fixed the errors that came with them.
But after I have done that the same error like above came back.
I think there might be something wrong with the OpenCL installation, but if I understand it right, it should be installed with the nvidia drivers.
I've even tried to install AMD APP, but no succes to that.
Once again: I have followed blackmoreops tutorial on installing nvidia drivers and there was this one command:
Code:
aptitude install nvidia-cuda-toolkit nvidia-opencl-icd
So I am clueless on how to pick it up from here. Hope you guys can help me out a little.
Blackmoreops links:
https://www.blackmoreops.com/2014/03...er-kali-linux/
https://www.blackmoreops.com/2014/03...it-kali-linux/
-
Had a similar problem on my install. I got the video working fine but couldn't access the card with hashcat. I installed these packages at the end of this THREAD.
-
Thank you very much for your reply!
I have installed a few of these packages, since I didn't have them.
The compile in the folders pyrit and cpyrit_opencl went without errors.
But still I get the same errors:
pyrit list_cores
Code:
Pyrit 0.5.0 (C) 2008-2011 Lukas Lueg - 2015 John Mora
https://github.com/JPaulMora/Pyrit
This code is distributed under the GNU General Public License v3+
Traceback (most recent call last):
File "/usr/local/bin/pyrit", line 6, in <module>
pyrit_cli.Pyrit_CLI().initFromArgv()
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 117, in initFromArgv
func(self, **options)
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 291, in list_cores
with cpyrit.cpyrit.CPyrit() as cp:
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 447, in __init__
p = _cpyrit_opencl.OpenCLPlatform(platform_idx)
SystemError: Failed to enumerate devices on this platform (CL_DEVICE_NOT_FOUND)
Could it still be a misconfiguration in pyrit that I've missed?
Since I have a few locations where opencl.h file is added, but in some of these folders there are no other opencl files.
find / -name opencl*
Code:
/usr/include/CL/opencl.h
/root/Downloads/NVIDIA GPU Computing SDK/OpenCL/common/inc/CL/opencl.h
/root/Downloads/Pyrit-0.5.0/modules/cpyrit_opencl/opencl.h
/opt/AMDAPP/AMDAPPSDK-3.0/include/CL/opencl.h
/opt/opencl-headers/include/CL/AMDAPPSDK-3.0/include/CL/opencl.h
/opt/AMDAPPSDK-3.0/include/CL/opencl.h
~/Downloads/Pyrit-0.5.0/modules/cpyrit_opencl/setup.py
Code:
for path in ('/usr/local/opencl/OpenCL/common/inc',
'/opt/opencl/OpenCL/common/inc',
'/usr/local/opencl/include',
'/usr/local/cuda/include',
'/usr/include/CL',
'/root/Downloads/NVIDIA GPU Computing SDK/OpenCL/common/inc'):
if os.path.exists(path):
OPENCL_INC_DIRS.append(path)
break
Or maybe opencl isn't installed correctly?
I am trying some stuff, but I am really out of ideas.
-
Hey man, I am in the exact same situation as you where, I updated my kali and i got version 4.8.0
I have GTX860
I tried following the guide from blackmoreops that you said but my apt-get install nvidia-kernel-$(uname -r) doesnt work.
How did you install the driver ?? Can you share with me ??? I have reinstalled my kali so many times :(
-
when i use pyrit list_cores i have this error
my pc is I5 4440 my gpu is GT 640
yrit 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+
Traceback (most recent call last):
File "/usr/local/bin/pyrit", line 6, in <module>
pyrit_cli.Pyrit_CLI().initFromArgv()
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 118, in initFromArgv
func(self, **options)
File "/usr/local/lib/python2.7/dist-packages/pyrit_cli.py", line 295, in list_cores
with cpyrit.cpyrit.CPyrit() as cp:
File "/usr/local/lib/python2.7/dist-packages/cpyrit/cpyrit.py", line 463, in __init__
self.cores.append(CPUCore(queue=self))
TypeError: _cpyrit_cpu.CPUDevice.__new__(CPUCore) is not safe, use object.__new__()