Home
The Broken Hut
Working my way up to a full-size building
Recent Entries 

The next instalment in this exciting saga of family feuds and cyberwarfare. Tybalt has sent an invitation email to Romeo, impersonating Juliet in order to tempt Romeo to reveal himself.

Romeo opens his mail and finds this message waiting for him:

From: “Juliet” juliet@capulet.net
To: “Romeo” romeo@montague.net
Subject: secret meeting

Come to the town square at midnight, behind the clock.
Come alone and make sure you’re not followed.

J. xxx

If he takes the bait and travels to meet his love, who knows what terrible fate will befall him?

Luckily, we don’t have to worry, because Romeo and Juliet have been smart. They’ve taken precautions.

Click to read more... )

Forging an email is the easiest thing in the world. Once you see how easy it is then I think you’ll understand why you should never trust the From header in an email.

A while ago I used the Montagues and Capulets to explain how the domain name system worked. I’ll do the same again to show how easy it is for anyone to spoof your email address.

The plot thickens!

As per the story, Romeo and Juliet are separated after the party. Tybalt wants to kill Romeo and knows he can use the lure of Juliet to trap him. Tybalt’s email address is tybalt@capulet.net but he wants to email romeo@montague.net as Juliet.

Ordinary email programs don‘t allow you to pretend to be someone else (though they could if they wanted). But when a program sends an email it is just having a very simple conversation with a mail server using a predefined protocol. So all Tybalt needs to do is have that same ’conversation’ with the mail server.

A program called telnet lets you get down to the gritty details. You can pretend you’re an email program, a web browser or anything else, as long as you give the correct response to the questions you receive from the other computer.

Tybalt gets started

First, he has to log in to the Capulet family mail server using telnet. The line with the dollar sign is where he runs it from the command line. You can easily try this at home if you know the name of your mail server.

$ telnet mail.capulet.net 25
Trying 192.168.2.14...
Connected to mail.capulet.net (192.168.2.14).
Escape character is '^]'.

The mail server sends messages prefixed with a number. This is the status code which your email program would recognise and respond to. The words on the rest of the line are put there for the benefit of people who want to test the system at this low level (or subvert it). Any line which doesn’t begin with a number is written by Tybalt.

First, the mail server identifies itself and then Tybalt does likewise—and pretends to be Juliet’s laptop.

220 mail.capulet.net ESMTP
HELO julietslaptop

The mail server then shows that it’s ready to take commands. This is where Tybalt pretends the email is coming from Juliet’s address and going to Romeo:

235 Nice to meet you julietslaptop
MAIL from: juliet@capulet.net
250 OK ... Sender accepted.
RCPT to: romeo@montague.net
250 OK ... Recipient accepted.

Then Tybalt has to tell the mail server to receive the content of the email, using the DATA command. Notice that he puts To and From information in this part of the message too. If he omitted these then Romeo would still get the message but the To and From headers in his email program would appear blank. This is like putting ‘Dear Romeo’ and ‘from Juliet’ inside the letter—the bit above is just the address on the envelope.

DATA
354 Ready for message. Enter "." on its own line to finish.
From: "Juliet" juliet@capulet.net
To: "Romeo" romeo@montague.net
Subject: secret meeting

Come to the town square at midnight, behind the clock.
Come alone and make sure you're not followed.

J. xxx
.
250 OK Message transmitted ID 82679401

The dirty deed is done. Tybalt can log off and head out to capture Romeo unawares.

Or will he?! Find out next time…

6th-Dec-2006 02:19 am - Alan Yentob on the World wide web

I watched this evening’s Imagine, (Alan Yentob culture show) for two reasons. One, it had Tom Reynolds on it — all too briefly, in fact. He certainly got less screen time than a man with a mask on, and a guy who put a cravat on to blog.

And two, because it was about the internet: specifically, the world wide web. I find it amusing to watch programs like that as an exercise in culture-watching. You can see how familiar the general populace is with technology by seeing how it is portrayed. And I was happy to note that there were no real technical errors in what was presented. Five years ago that would not have been the case. What’s more worrying is that this show was more grounded and far realler than anything Horizon would put on at the moment.

Read all about the intarwebs here! )

I am being entreated to send my credit card number and expiry date (that’s the CC’s expiry date, not mine) over unencrypted email to some person’s personal computer in order to assure a hostel reservation. Even though the actual rooms will be paid for with cash.

Um, why? Why would I trust someone who only ten minutes ago didn’t know I existed? Not to mention, that kind of behaviour probably contravenes any and all credit agreements I might have.

But that’s okay, because I don’t actually have a credit card. It does make things rather awkward though, since no-one wants to take a booking without one.

21st-Aug-2006 10:36 pm - In Korea only old people use mice

Two funny things to round off the day:

  1. There was a column in the paper about a 104-year old lady who uses the internet from her nursing home. Go old people! She insisted on calling the mouse a rabbit though, which is terminology I think we should all adopt in solidarity.

  2. The opening paragraph from this paper about knowing the limits of your own abilities:

    In 1995, McArthur Wheeler walked into two Pittsburgh banks and robbed them in broad daylight, with no visible attempt at disguise. He was arrested later that night, less than an hour after videotapes of him taken from surveillance cameras were broadcast on the 11 o’clock news. When police later showed him the surveillance tapes, Mr. Wheeler stared in incredulity. “But I wore the juice,” he mumbled. Apparently, Mr. Wheeler was under the impression that rubbing one’s face with lemon juice rendered it invisible to videotape cameras (Fuocco, 1996).

This page was loaded Mar 21st 2010, 3:52 am GMT.