My Wife, the Hacker

Susan called me yesterday and posed an interesting challenge. Susan had found a local online phonebook that listed contact information for local businesses, but the website limited you to viewing one category at a time. You could click the word “Automobile Repair” and it would show all the entries in that category, and you could click the word “Dentist” and it would show all the dentistry-related entries, but the website was lacking a button that would display the entire list all at once.

Her question was simple enough: “How do I see the entire list?” With that, the two of us went to work.

The site’s URL made it pretty clear how the query worked. You had the link to the website followed by two variables: town=TOWNNAME and CATEGORY=”X”. “X” changed depending on the category, so obviously by manually changing “X” in the URL you could hit all the different categories. By glancing at the menu it looked like there were about 130 different categories and I really wasn’t in the mood to cut/paste that URL 130 times and copy and paste the results into a big text file.

After trying all the basics (CATEGORY=ALL, CATEGORY=*, CATEGORY=%, etc) and not getting anywhere I opted for a different approach. In about two minutes I whipped out a quick VB script that would hit the URL in question 200 times, incrementing X by one each time. Each time the page loaded it would dump the contents into a text file. It worked, and I had the complete list in about five minutes.

(I should note that there is nothing illegal about this — I did not obtain any information from their web server that they do not freely offer to the public. All I did was automate the process, saving myself 200 mouse clicks.)

The best part of this story however was the ride home with Susan. We compared notes and I was both surprised and impressed by the things she had tried. She too had tried the “CATEGORY=ALL” idea, but from there our paths split. While I took a more technical route, Susan figured out the software the website was running and then Googled for other places running the same software. After finding some she went to those sites and looked at their queries. Some of them had additional parameters, which actually worked on the site we were poking around on. She had a couple of other novel ideas too; none of which panned out, but great ideas nonetheless.

While we talked on the way home, I was reminded of my generation’s hacker craze, spawned by WarGames (1983). Shortly after that movie, kids began running around asking that elusive question: “how do I become a hacker?” So many of us had so many people ask us that question that it became a joke.

Hacking has never been about any specific program or technique. It’s always — ALWAYS — been about just trying to figure out how stuff works. (And sometimes inadvertently breaking it in the process.) Yes, there are bad guys, script kiddies, misguided youths and foreign spies all out there tearing up virtual worlds in the name of “hacking,” but when you really get down to the spirit of hacking, that’s what it was (and should still be) all about — a natural curiosity about how stuff works. And how do you teach that? In short, you don’t. “Teach me to be curious.” Sorry, I can’t.

Anyhoo, congrats to Susan for finding her inner-hacker — we’ll make a nerd out of her yet!

1 comment to My Wife, the Hacker

  • Mom

    Bad hackers are the same as the destructive youth on the streets. They’re vandals, just with a different venue!

.xX[ MY INFO/LINKS ]Xx.

My EMAIL
My RSS FEED
My SUBSCRIPTION (Blog)
My Twitter
My YouTube

My Books
My Portfolio
My Podcasts
Review-O-Matic (Reviews)

.xX[ SUB-PAGES ]Xx.

My ARCADE GAMES
My SOFTWARE
My PHOTO GALLERY
My WRITING ADVICE
Every CAR I'VE OWNED
Every STATE I'VE VISITED

Latest Tweets