You are required to install the following packages.
gfxCardStatus will switch to nVidia GT650M automatically when the software running is capable for 3D acceleration, such as VirtualBox. Or, you can switch it manually.
CUDA will be loaded automatically when the softwares are using CUDA feature.
That's all! See you.
Open Source is a great idea and it has changed the world!
Open Source forever ....
While you do not know attack, how can you know about defense? (未知攻,焉知防?)
Do BAD things .... for the RIGHT reasons -- OWASP ZAP
It is easier to port a shell than a shell script. -- Larry Wall
Most of you are familiar with the virtues of a programmer. There are three, of course: laziness, impatience, and hubris. -- Larry Wall
为天地立心, 为生民立命, 为往圣继绝学, 为万世开太平。 -- 王炜
Wednesday, October 24, 2012
Tuesday, October 16, 2012
HOWTO : nVidia Optimus on Back|Track 5 r3
(A) Hardware (nVidia Optimus)
Brand : Asus n82jv-vx072v
CPU : Intel i5 450M, 2.4Ghz
RAM : 4096MB DDR3 1066
Display card : nVidia GeForce GT335M 1G VRAM DDR3
(B) Hardware (nVidia GeForce)
Any computer comes with nVidia GeForce display card that is CUDA capable.
Problem
You will be experienced to get a black screen when boot up and you cannot go further to get the Back|Track to be installed. This tutorial not only apply for Back|Track but also apply for other Linux distributions.
Solution
Step 1 :
When bootup in the "Boot Option Menu", press "
*** Remarks : "i915.modeset=1 nomodest" is for Optimus only. If nVidia GeForce, just need "nomodeset".
Step 2 :
Once booted up and installed, do not restart and continue to test. Mount up the hard drive and you need to edit as the following :
Locate '
and it will be looking like this :
The following command is for Back|Track only.
Step 3 :
Reboot your computer.
Step 4 (If you do Step 4a, DO NOT do this step, skip it.) :
Not to run "startx". This step should be running without X. For other Linux distributions, press "Alt + F2" to console mode.
Download CUDA 5.0 for 64-bit :
Download CUDA 5.0 for 32-bit :
or
Then run the following command.
or
Answer "accept" and install nVidia driver (current version is 304.54) as well as nVidia CUDA Toolkit (current is 5.0.35). If you want to install samples, please do. When asking for the path or directory, please press enter to accept the default setting.
Remarks : Please note that CUDA has an updated version.
Step 4a (Don't do with Step 4 together, only one of it) :
Not to run "startx". This step should be running without X. For other Linux distributions, press "Alt + F2" to console mode.
Edit : The x-swat ppa does not work anymore. Use Back|Track repos instead. Just do the following commands only.
Your nVidia driver has been installed (current version is 304.60).
Download CUDA 5.0 for 64-bit :
Download CUDA 5.0 for 32-bit :
or
Then run the following command.
or
Answer "accept" and DO NOT install nVidia driver. Only install nVidia CUDA Toolkit (current is 5.0.35). If you want to install samples, please do. When asking for the path or directory, please press enter to accept the default setting.
Remarks : Please note that CUDA has an updated version.
Step 5 :
The below is for Back|Track only. If other Linux distributions, please replace "root" with any username.
Append the following :
Or, you can do the following instead for any Linux distributions.
Save and then run the following command :
Then, reboot.
Step 6 : (For nVidia Optimus only)
To install Bumblebee :
Then, reboot the box.
Step 7 : (For nVidia Optimus only)
To test it to see if nVidia driver is workable or not :
Step 8 : (Optional)
Go to the official site of pyrit.
Download pyrit and cpyrit-cuda (the current version is 0.4.0 at the time of this writing). Back|Track 5 r3 may installed pyrit but not for the CUDA.
To test if the installation is correct or not. If you are not using Optimus, the "optirun" is not required.
Finally, thank you for
That's all! See you.
Brand : Asus n82jv-vx072v
CPU : Intel i5 450M, 2.4Ghz
RAM : 4096MB DDR3 1066
Display card : nVidia GeForce GT335M 1G VRAM DDR3
(B) Hardware (nVidia GeForce)
Any computer comes with nVidia GeForce display card that is CUDA capable.
Problem
You will be experienced to get a black screen when boot up and you cannot go further to get the Back|Track to be installed. This tutorial not only apply for Back|Track but also apply for other Linux distributions.
Solution
Step 1 :
When bootup in the "Boot Option Menu", press "
Tab
" (Other version of Linux will be different) and append the following to the end of the kernel option line :text splash vga=791 i915.modeset=1 nomodeset
*** Remarks : "i915.modeset=1 nomodest" is for Optimus only. If nVidia GeForce, just need "nomodeset".
Step 2 :
Once booted up and installed, do not restart and continue to test. Mount up the hard drive and you need to edit as the following :
nano /etc/default/grub
Locate '
GRUB_CMDLINE_LINUX_DEFAULT="text splash vga=791"
' and append the following :text splash vga=791 i915.modeset=1 nomodeset
and it will be looking like this :
GRUB_CMDLINE_LINUX_DEFAULT="text splash vga=791 i915.modeset=1 nomodeset"
update-grub
The following command is for Back|Track only.
fix-splash
Step 3 :
Reboot your computer.
Step 4 (If you do Step 4a, DO NOT do this step, skip it.) :
Not to run "startx". This step should be running without X. For other Linux distributions, press "Alt + F2" to console mode.
Download CUDA 5.0 for 64-bit :
wget http://developer.download.nvidia.com/compute/cuda/5_0/rel/installers/cuda_5.0.35_linux_64_ubuntu10.04.run
Download CUDA 5.0 for 32-bit :
wget http://developer.download.nvidia.com/compute/cuda/5_0/rel/installers/cuda_5.0.35_linux_32_ubuntu10.04.run
chmod +x cuda_5.0.35_linux_64_ubuntu10.04.run
or
chmod +x cuda_5.0.35_linux_32_ubuntu10.04.run
Then run the following command.
./cuda_5.0.35_linux_64_ubuntu10.04.run
or
./cuda_5.0.35_linux_32_ubuntu10.04.run
Answer "accept" and install nVidia driver (current version is 304.54) as well as nVidia CUDA Toolkit (current is 5.0.35). If you want to install samples, please do. When asking for the path or directory, please press enter to accept the default setting.
Remarks : Please note that CUDA has an updated version.
Step 4a (Don't do with Step 4 together, only one of it) :
Not to run "startx". This step should be running without X. For other Linux distributions, press "Alt + F2" to console mode.
add-apt-repository ppa:ubuntu-x-swat/x-updates
Edit : The x-swat ppa does not work anymore. Use Back|Track repos instead. Just do the following commands only.
apt-get update
apt-get install nvidia-current nvidia-current-modaliases nvidia-settings
Your nVidia driver has been installed (current version is 304.60).
Download CUDA 5.0 for 64-bit :
wget http://developer.download.nvidia.com/compute/cuda/5_0/rel/installers/cuda_5.0.35_linux_64_ubuntu10.04.run
Download CUDA 5.0 for 32-bit :
wget http://developer.download.nvidia.com/compute/cuda/5_0/rel/installers/cuda_5.0.35_linux_32_ubuntu10.04.run
chmod +x cuda_5.0.35_linux_64_ubuntu10.04.run
or
chmod +x cuda_5.0.35_linux_32_ubuntu10.04.run
Then run the following command.
./cuda_5.0.35_linux_64_ubuntu10.04.run
or
./cuda_5.0.35_linux_32_ubuntu10.04.run
Answer "accept" and DO NOT install nVidia driver. Only install nVidia CUDA Toolkit (current is 5.0.35). If you want to install samples, please do. When asking for the path or directory, please press enter to accept the default setting.
Remarks : Please note that CUDA has an updated version.
Step 5 :
The below is for Back|Track only. If other Linux distributions, please replace "root" with any username.
nano /root/.bashrc
Append the following :
PATH=$PATH:/usr/local/cuda-5.0/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.0/lib:/usr/local/cuda-5.0/lib64:/lib
export PATH
export LD_LIBRARY_PATH
Or, you can do the following instead for any Linux distributions.
nano /etc/ld.so.conf.d/cuda.conf
/usr/local/cuda-5.0/bin
/usr/local/cuda-5.0/lib
/usr/local/cuda-5.0/lib64
Save and then run the following command :
ldconfig
Then, reboot.
Step 6 : (For nVidia Optimus only)
To install Bumblebee :
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
Then, reboot the box.
Step 7 : (For nVidia Optimus only)
To test it to see if nVidia driver is workable or not :
glxspheres
optirun glxspheres
Step 8 : (Optional)
Go to the official site of pyrit.
http://code.google.com/p/pyrit/downloads/list
Download pyrit and cpyrit-cuda (the current version is 0.4.0 at the time of this writing). Back|Track 5 r3 may installed pyrit but not for the CUDA.
tar -xzvf pyrit-0.4.0.tar.gz
cd pyrit-0.4.0
python setup.py build
python setup.py install
tar -xzvf cpyrit-cuda-0.4.0.tar.gz
cd cpyrit-cuda-0.4.0
python setup.py build
python setup.py install
To test if the installation is correct or not. If you are not using Optimus, the "optirun" is not required.
optirun pyrit list_cores
optirun pyrit benchmark
optirun pyrit benchmark_long
Finally, thank you for
Malko
to test it and confirm it is working.That's all! See you.
Labels:
Back|Track,
Optimus
Saturday, October 13, 2012
HOWTO : Cracking WPA2 Passpharse Made Easy
Many people out there still think that cracking WPA2 passpharse requires dictionaries. However, it is not true.
You can brute force the WPA2 passpharse with the help of GPUs. Here is my discoveries on April 16, 2010 and May 22, 2011.
If the wifi router is equipped with WPS (Wifi Protected Setup) and it is enabled, to crack it is very easy with the tool namely reaver.
In additional, it is risky to use public wifi or public free wifi too. No matter they have passpharse or not. (Please refer to "
Alfa Network produces some high power and long range wifi adaptors, such as Alfa AWUS036H and Alfa AWUS036NHR. They can connect to the vicitm's wifi router in the distance of 1KM+ away.
That's all! See you.
See Also :
HOWTO : Sniffing SSL with ettercap on Back|Track 5
HOWTO : Protect you from being ARP spoofing
You can brute force the WPA2 passpharse with the help of GPUs. Here is my discoveries on April 16, 2010 and May 22, 2011.
If the wifi router is equipped with WPS (Wifi Protected Setup) and it is enabled, to crack it is very easy with the tool namely reaver.
In additional, it is risky to use public wifi or public free wifi too. No matter they have passpharse or not. (Please refer to "
See Also
" for details) You are also be informed that there are some high power and long range wifi adaptors in the market.Alfa Network produces some high power and long range wifi adaptors, such as Alfa AWUS036H and Alfa AWUS036NHR. They can connect to the vicitm's wifi router in the distance of 1KM+ away.
That's all! See you.
See Also :
HOWTO : Sniffing SSL with ettercap on Back|Track 5
HOWTO : Protect you from being ARP spoofing
Wednesday, October 03, 2012
EXPLOIT-DEV : CentOS 6.3 vs Ubuntu 12.04
There are many methods to exploit Local File Inclusion (LFI) of a vulnerability PHP web application in Linux systems. Some of them are invalid in the latest version of Linux distributions, I think. For example, those methods are processes injection, log files injection, session files injection and etc.
Unfortunately, in my recently research, I find out that PHP session files of CentOS 6.3 (maybe applied for previous versions) in default settings can be injected and loaded. However, Ubuntu 12.04 cannot. (Remarks : I did not check the other Linux distributions for this research.)
When the PHP session files can be injected and loaded along with LFI vulnerability, a remote shell can be obtained by attackers.
Basically, CentOS is a clone of RedHat Enterprise Linux.
Reference : Web vulnerabilities to gain access to the system
That's all! See you.
Unfortunately, in my recently research, I find out that PHP session files of CentOS 6.3 (maybe applied for previous versions) in default settings can be injected and loaded. However, Ubuntu 12.04 cannot. (Remarks : I did not check the other Linux distributions for this research.)
When the PHP session files can be injected and loaded along with LFI vulnerability, a remote shell can be obtained by attackers.
Basically, CentOS is a clone of RedHat Enterprise Linux.
Reference : Web vulnerabilities to gain access to the system
That's all! See you.
Subscribe to:
Posts (Atom)