How-To: Backtrack 4 with CUDA

This is for the Defcon 18/Blackhat Version of BT4.

+++Stuff in italics means YOU type it.

  1. Boot CD or USB of BT4
  2. startx
  3. Bring up a terminal
  4. Make sure you are root. If not type su hit enter.
  5. passwd
  6. ssh-keygen
  7. sshd-generate
  8. cd /etc/rc2.d/
  9. ln -s ../init.d/networking S13networking
  10. ln -s ../init.d/ssh S98ssh
  11. nano /etc/network/interfaces
  12. apt-get update
  13. apt-get upgrade
  14. reboot
  15. wget http://developer.download.nvidia.com/compute/cuda/3_0-Beta1/drivers/cudadriver_3.0-beta1_linux_32_195.17-beta.run
  16. chmod 777 cudadriver_3.0-beta1_linux_32_195.17-beta.run
  17. ./cudadriver_3.0-beta1_linux_32_195.17-beta.run —extract-only
  18. cd NVIDIA-Linux-x86-195.17-pkg1/
  19. patch -p1 < nvpatch.txt
  20. ./nvidia-installer
  21. modprobe nvidia
  22. apt-get install cuda-toolkit
  23. apt-get install pycuda cpyrit-cuda
  24. pyrit list_cores
  25. pyrit benchmark
  26. ln -s /usr/lib/libOpenCL.so.1.0.0 /usr/lib/libOpenCL.so
  27. apt-get install cuda-multiforcer
  28. LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/pentest/passwords/cuda-multiforcer/lib32/
  29. ldconfig
  30. At this point /pentest/passwords/cuda-multiforcer may run (I have problems making it work). Pyrit and oclHashcat certainly work.
--- usr/src/nv/nvacpi.c    2009-12-10 18:25:16.711696181 +0300
+++ usr/src/nv/nvacpi.c   2009-12-10 18:26:02.189383388 +0300
@@ -506,7 +506,7 @@
     *handlesPresent = 0;

     acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT, 
-                        ACPI_UINT32_MAX, nv_acpi_find_methods, NULL, NULL);
+                        ACPI_UINT32_MAX, nv_acpi_find_methods, NULL, NULL, NULL);

     if (nvif_handle)
     {
@@ -1184,7 +1184,7 @@
             "NAMESPACE INVALID\n");
     }

-    acpi_walk_namespace(ACPI_TYPE_ANY, handle, 1, nv_acpi_walk_callback, acpi_name, NULL);
+    acpi_walk_namespace(ACPI_TYPE_ANY, handle, 1, nv_acpi_walk_callback, acpi_name, NULL, NULL);

     os_free_mem(acpi_name);
 }
1
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License