Month: August 2009

htaccess redirects

Posted by – August 31, 2009

I recently had someone ask me if they could set the priority of some pages. In this specific case they wanted index.php to take precedence over index.html. Well, on shared hosting you can’t change the server config to do this (which by the way is in the httpd.conf for Apache). So the next best thing to do is .htaccess redirects.

htaccess will only work on Apache webservers, if in doubt consult your webhost. To use these, you will need to create a text file and call it htaccess. Input code from below into it to suit your needs, and upload to your site via ftp. You will then need to rename the file to .htaccess

There are a couple different codes that are returned to the browser on redirects.

301 – Permanent Redirect. Good for moving files forever. This tells the search engine and clients that it has moved permanently and should use the new URI.

302 – Temporary Redirect. It tells the search engine and client that it’s redirecting and should continue to use the requested URI.

Here are some sample redirect usages:

301 Moving a single page

Redirect 301 /oldpage.html http://www.example.com/newpage.html

301 Move entire site

Redirect 301 / http://www.example.com/

To do 302 redirects, just replace 301 with 302.

notacon 2006

Posted by – August 30, 2009

I had the opportunity to give a talk at Notacon 2006. I choose to give a talk on encryption and geared it towards programmers. It was kind of an overview of different algorithms. If you with to listen to an mp3 of the talk, download it here. If you wish to watch it in AVI format, download here. You may also obtain them from the Notacon Media archive located here, http://www.notacon.org/media/2006media.html.

You can also download the Powerpoint presentation file I used here: NotaconIII.ppt.

Irongeek and I developed a trifold flyer packed with great tips and tricks for people using wireless internet at hacker conventions. You can find it here, hackerconflyer.pdf or on Irongeek’s site here.

orinoco monitor mode

Posted by – August 29, 2009

Edit: This is an old article (circa 2006)

My main linux distribution of choice is Slackware Linux. I recently installed it on my Thinpad 600X. I have a classic Orinoco wireless card that is pretty cool, of course, it doesn’t compare to the Senao cards. Anywho, I wanted to run kismet on this laptop, but Slack uses the orinoco 0.13d drivers. These drivers do not support monitor mode (also called promiscuous mode) which allows for scanning passively. Thus, I had to update the drivers. I have yet to find a site that has complete directions on how to do this, though the shmoo group developed the driver, their directions are not simple for *nix n00bs.

Below you will find how to easily install the patches to enable monitor mode for Orinoco cards so that you can use kismet, tcpdump, etc

Step 1. What we’re going to do is patch the original driver. To do this we need the original driver. You can obtain it from orinoco driver homepage. You will want to get version 13e. Alternatively, you can grab it from my site here

Step 2. Now that we’ve got the driver, we need the monitor mode patch. This is just a *.diff file from the shmoo group. The patch (orinoco-0.13e-patch.diff) can be obtained from their site here http://airsnort.shmoo.com/orinocoinfo.html or alternatively, from my site here.

Step 3. Now you can go ahead and grab the patch to improve channel changing. This patch is from the kismet wireless homepage. This is the orinoco-0.13e-dragorn3.diff patch. I’ve got a local copy of it as well located here.

Step 4. We can now begin the installation of the driver and patches. First you will untar the orinoco driver using

$ tar zxpvf orinoco-0.13e.tar.gz

Step 5. You can begin patching the code now. Change into the directory just created

$ cd orinoco-0.13e

Step 6. And now apply the patch

$ patch -p1 < ../orinoco-0.13e-patch.diff

Step 7. Now apply the performance patch

$ patch -p1 < ../orinoco-0.13e-dragorn3.diff

Step 8. After everything is patched, you need to compiled the driver using

$ make

Step 9. When it is done compiling, you will need to be root to install it

$ su

Step 10. You can now install the driver

$ make install

Step 11. If you haven’t received any errors (which you shouldn’t have), everything has worked fine. You can now plug in your wireless card to see if it worked with the iwpriv command.

the 7 days of twitter

Posted by – August 28, 2009

If you’re on Twitter you might have noticed some hashtags quite a bit each day. Here’s the skinny on them:

Sunday – ????
Monday – Music Monday, #musicmonday What is it? List cool music.
Tuesday – Travel Tuesday, #traveltuesday What is it? Mostly travel deals and tips to save money.
Wednesday – Happy Hump Day, #happyhumpday What is it? Wednesday is hump day. [insert favorite hump day joke here]
Thursday – I never did see one for Thursday.
Friday – Follow Friday, #followfriday What is it? Just list people you think are worth following.
Saturday – ????

Anyone know what goes on for the missing days?? Leave a comment!

Edit: What about: #SuperSaturday and #SlowSunday?