Feeds:
Posts
Comments

Posts Tagged ‘security’

A good script.

A good script.

I just finished setting up something neat for my MacBook Pro: a script that takes the IP address of the laptop on wake and writes it to a file that is then synced online via Dropbox.

It starts with the set of terminal commands on scripts called SleepWatcher. This program looks for a file called .sleep and .wakeup int he users home directory and executes them upon sleep and wake respectively. They can contain any UNIX script from say “Goodnight Michael” to, well, grabbing the current IP.

The command used to get the current IP and write it to a file is:

curl http://myip.ozymo.com -o /Users/michaelhutchins/Documents/Dropbox/wan_ip_mac.txt

With the /michaelhutchins… part replaced with your username and where you want the file to go (and be called). To make the use TextEdit or anything to make a file called sleep.txt. Then rename this to .sleep saying yes to all the warning of hidden files and removing the .txt extension. My full script is the above with one added line:

sleep 5;

curl http://myip.ozymo.com -o /Users/michaelhutchins/Documents/Dropbox/wan_ip_mac.txt;

The sleep 5 just waits five seconds so the computer can make the connection to the internet. Once it was done in Terminal I typed chmod +x .wakeup to make it executable. With this and sleepwatcher installed it now updated the IP address whenever it wakes up.

Why is this useful? I see it as a security measure. If my laptop is ever lost or stolen I can use the IP to SSH in to maybe find out where it went or at least narrow down the options. I can also use Screen Sharing through OS X to see what is on the screen by connecting with the IP address. Or if the IP is for a coffee house or public place a well placed “say “I am stolen!” on repeat may help.

Also in the future I may see about setting my computer up as a file server I can wake remotely in case I need to get a file. Though I have yet to experiment with that.

Advertisements

Read Full Post »

If I every have security or body guards, I know what they will be wearing.

If I every have security or body guards, I know what they will be wearing.

Passwords are tricky things.

On one hand it is often said to have unique, complex passwords for each website and every computer. On the other hand we can only remember so much before resorting to password books, spreadsheets of logins and sticky notes on monitors.

In years of part time computer consulting I have seen a bunch of different ways of approaching the password problem. Some have used the same four letter password for everything, occasionally appending a set of numbers if the site requires 6+ characters and numbers to be involved. Others have small address books with websites listed alphabetically with their logins and unique passwords. And recently I have seen an excel spreadsheet with websites, logins and passwords all neatly typed up with notes.

I have done my best to help secure everyone with decent password practices, or at least those best suited to the individual. For those with short and frequently used passwords I had them create a complex password for critical logins like e-mail and computer accounts. Those with small books are actually doing alright, even if their unique passwords are all one word with a number appended or pre-fixed every now and then. And for the individual with a spreadsheet, I could not stop the practice so I made them used an encrypted disk image to hold the password, encouraging them to store it on a flash drive, along with a printed copy as backup.

The challenge for most people in passwords is creating those that are complex enough yet memorable. I found the best method for people is in taking a phrase they know or like and altering it into something unrecognizable. For example a famous quote:

One day, Sir, you may tax it.

– Michael Farady in response to British Prime Ministers Gladstone’s question, “What good is electricity?”.

Then take a short segment of it, “you may tax it”, which is eleven characters and use that as a basis. Add in capitalization of each word, replace characters with numbers and maybe add a few extra on the end. For bonus points add in non-alphanumeric characters. To show how it looks:

  • youmaytaxit – remove the spaces
  • YouMayTaxIt – capitalize
  • Y0uM4y74xIt – replace letters with numbers
  • Y0uM4y&4x!7 – use the shift key
  • Y0uM4y&4k!7 – replace letters with their phonetic counterpart, or similar looking characters
  • Y0uM4y&4k!767 – add some number (the year Faraday died)

The beginning may still look recognizable but the end looks like random characters. A trick to use is just hold down shift for a particular segment, I find that most passwords become muscle memory so after adding in numbers throw in a shift key to get those odd characters.

Of course some websites don’t like this very much. I recently tried to update all of my credit card passwords only to find my sweet new passwords was not accepted due to some unacceptable characters.

Finally I don’t use the unique password for every site technique. Instead I have a half dozen or so passwords that are used depending on how secure that login needs to be. Internet forums have a simple six character password while banks and sites that store credit card information have longer, more complex passwords. Every now and then I introduce a new password and sort of shift everything down a level.

The best thing to do is practice so that password becomes set in muscle memory. Of course if you have ever have to login used an iPhone then all bets are off.

Read Full Post »

 

Some things are too heavy to carry.

Some things are too heavy to carry.

Having the right things with you can make or break a trip. Every pound matters when trekking between train stations and hostels, especially when you find yourself with four hours before the hostel opens for checkin. I prefer traveling with only one carry on bag. In that bag I fit a messenger bag for the day and all of the clothing and supplies I need for the entire trip. Many websites and guidebooks say not to bring jeans due to their weight, size and slow drying feature. I scoffed at this advice and took a pair with me to Europe (in early spring so I needed warmth), I also brought a pair of lightweight quick-dry pants (or trousers) and some long underwear. I wore the pair of jeans for the entire trip so I never had to pack them away. 

No matter where a trip is going to go clothing is an important decision. Everything from weather and local custom influences what to pack. An example is white socks in England. Short white socks are normally worn for sport and exercise only and not for day to day activities. I had been living in Scotland before my trip to Europe so my clothing did not make me look like a tourist (the backpack gave that away), I wore relatively plain brown shoes, blue jeans, long sleeved shirts (dark blue and green) and if it was cold or raining black gloves and a black rain jacket. I did not have any bright colors or t-shirts with prints on them. For particular countries guidebooks are handy for helping with ways to blend in.

Weather also plays a role in what to wear. While a wool scarf helped greatly in Copenhagen in December it would have just taken up room for Ireland in May. My best friend in all my trips no matter the country or season was a small, thin, bright green umbrella. It easily fit into bags and jacket pockets. A bandanna also helped as a very utilitarian item: tablecloth, hand towel, small sack, packing cushion, sweat rag and I suppose it could double as a head band as well. Flip flops are good for sketchy hostel bathrooms.

Other items that are useful:

  • Locker lock – needs to be thick enough (3/8″ or 1 cm)
  • Security cable – a discreet cable to lock bags to bed frames (make sure the bed frame is secure!)
  • Fabric wash – Small bottle or a solid to get through airport security
  • Clothesline – Clothes need a non-dusty place to dry
  • Ziplock bags – For leftover food, preventing leaks or to keep papers dry
  • Alarm Clock – I forgot this on my first trip, I never did again
  • Flashlight – For searching through bags in a dark hostel room
  • Reusable water bottle – Save money by drinking tap water, I use Klean Kanteen (Can carry on airplanes if it is empty).
  • Money belt – Never worry about your bag if you have your passport and credit cards with you at all times

Of course you don’t need any security items if you don’t bring anything worth stealing. The only valuables I had were on my in my money belt, with the exception of my camera. I have seen some people bring laptops with them and I could not imagine ever doing that. I can only see the need for a laptop for two reasons: downloading photos and e-mail. It would be cheaper to either buy more camera memory or utilize photo download services, there are kiosks and stores everywhere that will download all your photos to a CD or DVD for you for a small charge.

As for e-mail internet cafés are in every city if not in the hostel. Many hostels have a free internet terminal, some tourist information centers (Rothenburg is one) have free internet, public libraries are a great place for free internet (Amsterdam has a good one) or pay a few euros to use the internet every few days. The only exception for cheap internet was a small town in the Swiss Alps, that was not cheapest but still cheaper then lugging a laptop around with me.

Another packing tip: bring enough socks and underwear for at least four days, then wash and dry while wearing the last pair. Any sink will work for washing clothes, use a drain stopper or a rolled sock to hold the water in. I suppose a laundromat could work but I see no reason why a bathroom sink would not function just the same. Though be prepared to miss a laundry day or two if there is no place to do laundry, while wearing the same underwear and socks more then a day or two in a row may seem odd, no one will know (unless you wear socks for three days or more days in a row, then someone might notice).

Now what to put everything in. I have been using the same bag for the past thirteen years, a durable green Jandd bag. I prefer soft-sided bags with should straps without an internal frame. Waterproofing or at least water resistance is important, rain can strike at any moment (notably in Scotland). I also use a messenger bag from Timbuk2 as my day bag, it is less obvious then other means and holds just the right amount of stuff: camera, water bottle, guidebook, journal and some food. For my camera I used a small plain black case, but as my travels went on I just threw the camera into the bag. Recently though I upgraded from a superzoom camera to a Nikon D60 DSLR camera, for this new camera I am going to get a camera bag from Think Tank Photo (I also currently work there, mostly for organizing inventory).

A final tip I picked up from a travel site or a guidebook: pick up every item and think whether if it is worth bringing or if you can buy it abroad if the need arose.

Read Full Post »