Archive for the ‘geek stuff’ Category

inspecting direct tv hd dvr network traffic

Wednesday, May 21st, 2008

I recently upgraded my satellite service to the Direct TV HD+ and a HD DVR receiver. Upon receiving my new receiver, I discovered in order to access the On Demand content, the receiver had to be connected to a network, and have internet access. The network setup was simple, connect it to the switch and it grabbed it’s network info from DHCP. This is where the security geek in me got curious: what exactly is this fancy new receiver sending/receiving on the wire?

Click to continue reading

testing network throughput with iperf

Saturday, May 17th, 2008

iPerf is an excellent open source tool, for testing the throughput between to points on a network. This is not really related to IT Security, but I periodically like to test my network to make sure everything is operating as it should be. Recently, I have made some upgrades to my home network; pulling a new network drop and installing a new switch for the entertainment center devices. It’s been a few years since I have had to wire up anything and I wanted to make sure the new segment is performing correctly, enter iPerf.

iPerf operates in a client/server model, in order to test a network segment correctly; you will need two machines, one on each side of the segment to be tested. Keep in mind, to do this correctly there should be no other network traffic on the segment being tested.

I will continue to use my home network in this example, beginning with a brief explanation of the physical layout of my test. I created a new vlan for the new segment, while I am testing it. I assigned 2 ports on the main switch to the new vlan, one for the line to the new switch and one for my iPerf server (old Apple G4 running Debian PPC). The client on the far side of the segment is the mac mini that I use as a media center.

Click to continue reading

making my site iphone compatible

Monday, March 10th, 2008

This morning I got the motivation to attempt to make my blog format correctly on the iPhone. I expected it to be a lot more challenging then it really was. I began this project by reading the Apple provided Safari Web Content Guide for iPhone, specifically looking at Chapter 2: Configuring the Viewport. The viewport is how you tell your content, what the viewable area of the iPhone actually is.

Apple recommends that you set the viewport width to device-width so that the scale is 1.0 in portrait orientation and the viewport is not resized when the user changes to landscape orientation.

Click to continue reading

jailbreaking the iPhone for UNIX geeks - part 2

Saturday, February 23rd, 2008

In part 1 of ‘jailbreaking the iPhone for UNIX geeks’: I touched on the jailbreak process and then covered installing the BSD Subsystem, SUID Lib Fix for the 1.1.3 firmware and fixing a small problem with the google maps ‘locate me’ application. I hope you enjoyed reading it, and now let’s jump right into part 2, and show off what the the jailbroken iPhone can really do.

Click to continue reading

jailbreaking the iPhone for UNIX geeks - part 1

Saturday, February 23rd, 2008

For all of us UNIX geeks who purchased and love their iPhones, undoubtedly you have read about or heard about ‘jailbreaking’. At first it was a very complicated and possibly dangerous procedure to undertake, making it’s value questionable at best. But over time the jailbreak process for a 1.1.3 firmware iPhone, has finally matured to a ‘1-click-solution’. It’s reached a point where it’s easily done and also easily undone, so I decided to take the plunge and jailbreak my iPhone.

Sadly, I must preface the content of this post with the following statement:

I AM IN NO WAY RESPONSIBLE FOR YOUR IPHONE. JAILBREAKING WILL VIOLATE WARRANTIES AND SUCH, IF YOU CHOSE TO DO IT, YOU DO IT AT YOUR OWN RISK.

I am not going to go in depth into the actual jailbreak process, as I said earlier it’s a ‘1-click-solution’. I used the application called ZiPhone, available in both Windows and OSX versions, are available for download here. The method that I used, as I am a legitamite AT&T subscriber, was ‘Jailbreak’ only; if you are like me, there is no need to Active, or Unlock your iPhone. READ the included documentation, it’s straight forward and simple, however if anything goes wrong, see my disclaimer and their troubleshooting section.

Click to continue reading

fun with tcpdump bpf and udp

Saturday, February 9th, 2008

In an earlier post, I covered some basic and a few advanced techniques that can be done with tcpdump and bpf. Today I would like to expand upon those ideas just a little more.

Recently I was tasked with examining some traffic captures, looking for some specific UDP traffic. In this case, UDP traffic with a source port greater than or equal to 1024 and a destination port equal to 80. So how did I achieve this task with tcpdump?

tcpdump -n(r or i) <pcap.file or interface> ‘(udp[0:2] >= 1024 and udp[2:2]=80)’ -s0

So what does all that really mean? It’s actually pretty simple. The four most useful bpf statments to remember in regards to udp traffic are as follows:

udp[0:2] = source port
udp[2:2] = destination port
udp[4:2] = datagram length
udp[6:2] = UDP checksum

So in this example, I am simply asking tcpdump to show me udp traffic with a source port greater than or equal to 1024 and a destination port equal to port 80 and set the snaplen to 0 (show the entire packet contents).

This concludes another look into the endless possibilities that can be achieved with tcpdump and a good knowledge of berkly packet filters. Have fun with this, and nerd it up.

merging multiple pcap files into one file

Saturday, February 9th, 2008

Just a real quick tip today, while I get back into the swing of things, post-moving.

A friend of mine showed me a very useful utility called mergecap, which is included with the wireshark package (formally known as Ethereal). This is one of those “so simple it hurts” tools, that I wish I had known about years ago. So what is so special about mergecap? Well if you’ve ever had to deal with multiple capture files, you know what a pain it can be to search through them all. This is where mergecap comes in handy.

There are a few options discussed in the man page, but in it’s simplest form, from the command line:

mergecap *.pcap -w /path/to/output/dir/name.pcap

Now, you simply wait a few seconds and you will have a properly merged pcap file. I tested this method on a few pcap files gigabytes in size and mergecap only took about 10 seconds to do its job.

If you are like me, and do not have X or a monitor installed on your sniffing box, I suggest installing tethereal, which is the command line only version of the wireshark package. Mergecap is included in the wireshark-common portion of the required packages.

Enjoy this short little tip and as always have fun nerding it up.


Warning: stristr() [function.stristr]: Empty delimiter in /home/trepulli/public_html/wp-content/plugins/wassup/wassup.php on line 2093