-
Replaying PCAP Dumps
Thu, 11 Mar 2010 08:35:40 -0500
-
Step 1) Collect data.
tcpdump -w logPackets.pcap tcp port 53
Step 2) Statup virtual machine
Step 3) Copy logPackets.pcap to VM.
Step 4) tcpreplay-edit -i eth0 --enet-dmac <your mac address on physical node> logPackets.pcap
If your using an older copy tcpreplay or do not have tcpreplay-edit installed, then you can either use tcpprep to write a cache file to separate the client and server instances ... this will also be able to modify the destination mac address. Alternatively you can use macchanger and just change the mac address on your physical ethernet device. Either way works.
- Keywords:
- work
- linux
- administration
- notes
- quick tips
- dns
-
Erlang Trim
Thu, 11 Feb 2010 13:30:13 -0500
-
This is a nice piece of code that I stumbled upon a few months ago while wanting to string the white space off the end of a string. Thanks go to Steve Davis for his contribution.
-module(trim). -author('Steve Davis < steven · charles · davis ? gmail · com >'). -export([trim/1]). trim(Bin) when is_binary(Bin) -> list_to_binary(trim(binary_to_list(Bin))); trim(String) when is_list(String) -> String2 = lists:dropwhile(fun is_whitespace/1, String), lists:reverse(lists:dropwhile(fun is_whitespace/1, lists:reverse(String2))). is_whitespace($\s) -> true; is_whitespace($\t) -> true; is_whitespace($\n) -> true; is_whitespace($\r) -> true; is_whitespace(_Else) -> false.- Keywords:
- notes
- quick tips
- erlang
-
Announcing DNSQuery
Mon, 30 Nov 2009 22:04:42 -0500
-
Announcing a new DNS Query toolkit developed exclusively for the Android mobile platform. I have released it in relation to my company Comwired.com The github presence can be found here http://github.com/pingwin/DNSQuery
- Keywords:
- work
- life
- site updates
- linux
- administration
- dns
-
Current Projects
Wed, 25 Nov 2009 16:16:44 -0500
-
Currently am working on a number of DNS specific applications, hopefully a couple I can release.
The first being an IO event handler in C, sorta like libevent but without the threading issues, also can discover interfaces for udp handling. Will be helpful for a league of users.
The second project is the next generation of an Android application for testing DNS resolution against a configurable list of resolvers. Will later evolve into being able to run predefined lists of queries and checking responses, sorta like a typical monitoring setup (read nagios) but not as automated.
0 comments. More... -
Being Away
Thu, 3 Sep 2009 12:58:07 -0400
-
Sorry for the emptiness, I have been quite busy lately. Having relocated the family to Berea, Kentucky has been very taxing on my time and energy. I have some cool stuff I'm working on in erlang and I hopw to be able to make a post about that soon. As well as maybe a C network event driven library for TCP/UDP over IPv4 and IPv6 soon.
0 comments. More...