You are currently viewing all posts in the general category.

Blacklist: *@*

I spent most of yesterday playing with SpamAssassin, ending up installing my own copy instead of using Dreamhost’s instance. It seems to be working, more or less, but will take some time to train. If you send me an email sometime within the next month, and I don’t reply within a few days (and your message warranted a response), try to send it to me again. Or contact me through other means.

(I will be checking my “Spam of Death” folder for false-positives and correcting them, but you never know.)

Thanks for that

Someone set off the fire alarm in my building last night at 2am. Just as I was about to go to bed. Luckily, the alarm isn’t tied directly to the sprinklers.

How to Own the Air

Before moving into my new place last month, I had planned on paying an ISP for internet access. But, complications arose with the company I had chosen, so I decided to cancel my order soon after it was placed. Instead, I planned to borrow internet access from my neighbors (hey, they’re pumping signals into my air-space). Trouble was, everyone had encrypted their networks with WEP. No doubt this is a good thing, and a vast improvement from the last time I had scanned down here (about 8 months ago), but I wanted in. I was able to justify cracking in to myself by recognizing that my paranoia isn’t limited just to the “others” out on the global interwebs – no, I’d be just as paranoid about the owner of whomever’s network I was breaking into watching my traffic. There was no question I’d make ample use of encryption, which, as a side benefit, meant that anything I did through his connection would be rather difficult to trace back. So, he was protected. As long as he wasn’t paying for bandwidth by the KB, he’d not be much affected by my leeching. (I use the pronoun “he” because I know now that the owner of my primary network is, in fact, a he – put a password on your routers, people!).

But there was another problem, in addition to WEP: during reconnaissance, I would rarely pick up any connected clients. Perhaps I was always trying at the wrong time of day. Or perhaps people pay for internet access and never use it. Regardless, it would have taken weeks of constant logging to gather enough IVs to crack the WEP key. So, the first step was to take the money I had saved by canceling my order with the ISP, and invest in a new wireless card that supported packet injection.

The Proxim 8470-WD (from aircrack-ng’s recommended list) caught my eye, though it took a while before I could find it a decent price. To do my initial cracking, I popped in Backtrack and followed aircrack-ng’s newbie guide. (I had upgraded my trusty old Auditor cd to Backtrack just for this occasion. It’s quite the nice distribution.) Within about 5 minutes, I had gained access to the first network. Goes to show how secure WEP is.

Though the Proxim card is plug and play in Ubuntu, the steps to crack WEP are a little different. Here’s what I do (note that I do recommend using Backtrack, instead).

First, of course, one must install aircrack:

sudo apt-get install aircrack

You may change your mac address manually, or, if you aren’t concerned with anonymity, don’t change it all. I have a preference of using the macchanger tool:

sudo apt-get install macchanger

Set your card’s MAC address randomly. In this case, the network device is at ath0:

sudo ifconfig ath0 down
sudo macchanger -r ath0
sudo ifconfig ath0 up

Put your card into monitor mode:

sudo iwconfig ath0 mode monitor

Start scanning:

sudo airodump ath0 dump 0

In this case, dump is the file prefix for airodump’s output and the 0 tells airodump to channel-hop. Now you want to pick your target network from the scan. It should have at least one client connected (displayed at the bottom of airodump’s output), the more the merrier. (Hopefully that client is transmitting data, too.)

When you pick your target, kill the first instance of airodump and start it up again, this time specifying the channel of your target:

sudo airodump ath0 targetdump 9

The targetdump is the file prefix and 9 is the channel. Optionally you can add a 1 to the end of the command, which tells airodump to only capture IVs (which is what you’re after). I normally don’t bother.

When you’ve captured somewhere in the range of 250,000 - 500,000 data packets (shown by airodump in the “Packets” column of your target client), you can start cracking:

aircrack -b 00:12:34:45:78:A3 targetdump.cap

In this case, -b is the essid of your target network. Cracking could take minutes, hours, days, weeks, months, or years. I’ve never had to wait over 20 minutes.

But what if the client is being a party-pooper and not transmitting? That’s where packet injection comes in. From aircrack’s guide:

ARP works (simplified) by broadcasting a query for an IP and the device that has this IP sends back an answer. Because WEP does not protect against replay, you can sniff a packet, send it out again and again and it is still valid. So you just have to capture and replay an ARP-request targeted at the AP to create lots of traffic (and sniff IVs).

You’ll want to keep airodump running, so that all the traffic you generate will be captured. In another terminal, start injecting:

sudo aireplay -3 -b 00:12:34:45:78:A3 -h A3:78:45:34:12:00 ath0

The -3 tells airepay you want to replay ARP requests, -b is that target network, and -h is the client. In a little bit, aireplay should inform you that it has captured 1 (or more) ARP packets. Sit back and watch airodump count up the IVs.

If that pesky client still isn’t cooperating, you can give it a little motivation. From aircrack:

Most operating systems clear the ARP cache on disconnection. If they want to send the next packet after reconnection (or just use DHCP), they have to send out ARP requests. So the idea is to disconnect a client and force it to reconnect to capture an ARP-request. A side-effect is that you can sniff the ESSID during reconnection too. This comes in handy if the ESSID of your target is hidden. ...the risk that someone recognizes this attack or at least attention is drawn to the stuff happening on the WLAN is higher than with other attacks.

Keep airodump and aireplay running, and in a new terminal give it a little kick in the butt:

sudo aireplay -0 5 -a 00:12:34:45:78:A3 -c A3:78:45:34:12:00 ath0

The first switch, -0, informs aireplay you want to force the client to be unauthenticated, -a is the target network, -c is the target client. When the client reconnects, you should start grabbing ARP requests.

After you have enough packets, crack the WEP key as before.

To manage and connect to my wireless networks, I’ve taken to using wifi-radar. It scans for networks, allows you to specify which networks you prefer and, for each network, allows you to set preferences such as the WEP key, whether to use dynamic or static addresses, and the like. What I like best is the connection commands, which allows you to set commands you want executed before wifi-radar connects to the network, and after. In the before field, I have it randomly change my mac address:

ifconfig ath0 down && macchanger -r ath0 && ifconfig ath0 up

After it connects, I restart tor:

/etc/init.d/tor restart

(As another reference for you, this site keeps turning up as a guide to cracking WEP in Ubuntu.)

Three Worlds Gone Mad

Three Worlds Gone Mad: The Hunter, The Hammer, and Heaven gets back to what RYP does best: storytelling. The book documents Robert Young Pelton’s journeys to three different war-zones (Sierra Leone, Chechnya, and Bougainville) and his attempts to understand the place and its people. Like in DP, Pelton manages to explain the places better than any history text. Where else are you able to see from the eyes of pirate hunting mercs, American ex-CIA jihadists, and hermit rebel leaders? Unconstrained from the limits of a journalism, Pelton shows us firsthand a world outside of our own – a glimpse into war-torn regions of the world – and the ordinary people who inhabit them.

I highly recommend this book to and fans of RYP and, for those who have never read his works, this is a good place to start.

Always Have a Camera Ready

Around 11PM tonight I heard a bunch of yelling and screaming out my window. At first I thought nothing of it – there’s always a bunch of drunk kids around here at night having a good time – but it was persistent, so eventually I peeked through my blinds. Across the street, there were perhaps 10 people kicking and stopping on one guy curled up on the ground. I grabbed my camera and started shooting video of it. In about 30 seconds, a car pulled up, two people got out and scared the small gang away. After the video stops I called 911, but they had already had it reported. The cops and medics arrived about a minute later and I went over and showed them what I captured. They were all rather adamant about confiscating my camera for evidence, but I suggested they find someone else with video of the event and confiscate his camera. One of them took it over to where another cop had detained one guy, but that turned out to be uneventful, as they let him go. After about half an hour of standing around, a cop suggested I go with one of them down to the station where they could download the video (they weren’t up to me just emailing it to them). So, I hopped into the car of Officer Brian Chissus (badge #220) and off we went to the evidence room of the police station. I had to walk him through how to download the video (funny how I know the police’s own computer system better than the police themselves). Then he gave me a ride back to my apartment (they don’t make the back seats of those cars very comfortable).

It was interesting to see the inside of the station. It was also the first time I was able to get a close up look at the laptops they all have in their cars. Everything ran Windows XP.

Anyway, I’m going to bed now. I’ll upload the video I shot tommorrow.

Edit: Video here: http://files.pig-monkey.com/video/rr-fight.avi

Update:

Reported: Oct 10 2006 10:54PM Offense: ASSAULT-FELONY Case #: 06B43705 (V1) and (V2) assaulted by a group at the above location. Arrested: QUINTON, KEITH EDWARD Age: 0 (DOB: Jun 23 1982 ) Arrested: PINNER, MICHELLE NICOLE Age: 0 (DOB: Oct 1 1988 )
Reported: Oct 10 2006 10:55PM Offense: WARRANT - LOCAL Case #: 06B43713 (A1) had three warrants for his arrest. Arrested: QUINTON, KEITH EDWARD Age: 24 (DOB: Jun 23 1982 )

A Scanner Darkly (film)

Tonight I went to a $2 showing of A Scanner Darkly, a very good film. Though there are some significant changes, I don’t think fans of the novel will be disappointed. The general feel of the book is there, and the main plot and characters remain intact. On the downside, they didn’t really get across the whole Fred/Bob disconnect idea very well, and their representation of the scramble suits weren’t exactly what I had in mind – but, hell, the whole book is pretty hard to transfer to film. It stands as a good film on its own, and should please any who would have an interest in seeing it. Certainly superior to the last few Hollywood interpretations of Philip K. Dick’s work.

Autobiography of Benjamin Franklin

I picked up the Autobiography of Benjamin Franklin at one of those library book sales a few years ago for something like $1. It’s been sitting on my bookshelf, neglected, ever since – though I kept telling myself I’d read it one day. Finally, I have.

I enjoyed the book a good deal. Though I can’t say I agree with all of Franklin’s politics or his racist leanings, I did enjoy the writing style and the insight into the times. It’s impressive how varied a man he was, seemingly every institution and employment being touched by him at some point. (And the book only goes to 30 years before his death.) I wouldn’t use the book as a mold to shape my life to, which was the book’s intention, but it’s still a good read.

TAD Stealth Hoodie Gen 2

TAD has released the second generation of their Stealth Hoodie Tactical Soft Shell. The big change seems to be in their new “rhino” fabric. Other than that, some small changes in the hood design, and new cuffs, the jacket doesn’t look to be much different from the first generation, which I’ve owned in ME Green for about 9 months now. I’ve been meaning to write a review of it, but, until I do, suffice it to say that I love it and was worth the money.