Mar 28, 2011

How to Split Large Packet Capture Files on the Linux Operating System


This article describes how to split large packet capture files on the Linux operating system.

On occasion, you obtain packet captures that are too large for Wireshark to manage and you receive the following error message:

"Out Of Memory!

Sorry, but Wireshark has to terminate now!"


Option 1

An option to reduce the size of this file is to use a Perl script that is available for download from This script can be used to extract packets from a specified time period (using the timestamp in the packet header) out of a huge dump file and copy them into a new file that should be much smaller and much easier and faster to analyze.

Alternatively you can use it to split the huge file into several smaller files of x MB each.

Option 2

It is also possible to use the libpcap filter language to extract packets from the source file as shown below:

pcap-util filter nstrace2.pcap before-trace.pcap "host and port 22"

This utility makes use of Net::Pcap module, which you can get from CPAN, or if you are on a Debian distribution such as Ubuntu, you can just "apt-get install libnet-pcap-perl".

A Fedora based system with yum can use “yum install perl-Net-Pcap.i386”.


In this example, the file nstrace2.pcap is split into files with the prefix before_trace and the size of 500MB.


The command to do this is:

# /home/etargonski/ split nstrace2.pcap before_trace 500

This results in the following :

-rw-r--r-- 1 root root 497M 2008-11-07 12:52 before_trace.0.tcpdump

-rw-r--r-- 1 root root 497M 2008-11-07 12:53 before_trace.1.tcpdump

-rw-r--r-- 1 root root 497M 2008-11-07 12:54 before_trace.2.tcpdump

-rw-r--r-- 1 root root 497M 2008-11-07 12:54 before_trace.3.tcpdump

-rw-r--r-- 1 root root 277M 2008-11-07 12:54 before_trace.4.tcpdump

Now you will be able to open these files with no errors related to file size. The described script is also able to filter packets out from a specific time period and can filter packets using the libpcap filter language as stated:

Extract packets from time period


/home/etargonski/ time <infile> <outfile> <Start time> <End time>

Extract packets using libpcap filter language


/home/etargonski/ filter <infile> <outfile> "libpcap filter string"

More Information

Download for script


or simply

You can use tcpdump itself with the -C, -r and -w options

tcpdump -r old_file -w new_files -C 10

Mar 23, 2011

Blogspot domain to paid domain

How did you start your blogging? on paid domain or on free domain?

if you have not started then what i will suggest you know?

i will suggest you a free domain first. As at the beginning of your blogging you shall not be able to grab the visitors too much on your blog. As there shall be too much less back linking to your blog. so, start your blog at blogger or wordpress. when you get a good traffic for your blog then convert it to paid domain.After all a paid domain is given a value. you will start making money when you will have paid domain. you will make money by your blogging when you will have paid domain. i will tell you here how to convert your blogspot hosted blog to your paid domain without affecting your page rank of google.

i would like to clear some thing here that when you convert your blog to a paid domain then your previous url address will redirect the user to your new paid domain that is boon for the blogger. ok guys now lest see how to convert your free domain to paid domain on

1.just go to your blog url and click on CUSTOMISE. this button is upper right side of your blog see it in the picture below.

2. Now you can see the option of settings in the left hand side of the top of the blog. click on the setting then on publishing button. see it clearly in the picture clearly here.In publishing section you can change the name of your blog as well or you can buy the domain.Paid domain will increase your income too much in comparison to a free domain.As no one is going to give you value of free domain as you can close your blog any time then why they should waste money on you. so convert your free domain to paid domain.

3. Now you have come to the region to set up domain name. if you don't have domain name then buy it using blogger. See the below picture type you desired domain name like- and click to will lead you to Google Apps domain purchase website. If your domain name will be available then it will proceed to registration of your domain name. Finally for the payment you will be paid using Google checkout. it will be registered with the partner of Google. You can pay using Visa card, Master card, Amex, Cascover.

You'll get a domain registration confirmation email from Google application in your given email id. There will be one link,after clicking the link in this email allows you to sign this domain up for an Apps account. If you want an receipt they will send it.

One limitation that i would will say is that there is no payment method using PAYAPL. i think this will make it more flexible.

4. This was the method how to buy a domain name in Google. But if you already have a domain even then you can convert your blogspot blog to a paid domain. This is going to host your content as before but it will be under new address bar that will be your registered domain name. In FTP publishing you will have to buy domain name and will have to buy space for hosting as well. but we are fortunate that on blogger they are going to host our content without price. Now proceed further.

5. Now you will have register your domain name with any domain name provider. you can see them here. Domain name provider. Hey dear we can use .com, .org ,.info or any valid limitation is that you will have to setup the DNS server in your domain. i will teach you how to setup for DNS. if you buy directly from blogger then they setup automatically.

6.Upadate your DNS settings:-DNS server determines what is the site a given address takes you. Though, we have a domain name but servers should know what to do with it yet. for this work we had to do two work.

(A)- Create a CNAME for the address of your blog. this should be a subdomain of type

The exact procedure for creating CNAME varies depending on your domain registrar, but here you can find instructions for many common registrars here(click on the link). Even then if you have a problem or if you face other difficulties, you can contact your registrar.

(B)- create A NAME for you domain without www in the address bar. it is also called naked domain (

    Creating A records for your naked domain is important as it allows Google to redirect people who use in your naked domain name ( to your blog page ( If you do not do this, visitors who leave off the www will see an error page.
    There are four separate A records you will create, and can be done from the same control panel you accessed your CNAME records. Simply point your naked domain (, without the 'www') to each of the following IP addresses:
you have completed the DNS setting dear now come to next.

you can buy your own domain using paypal on any domain provider. this is one of the freedom i can see in this. but if blogger is going to accept payment via paypal i think a lot of users will directly use it who have no credit card.

Update Your Blogger Settings have a domain name, and the DNS servers know to direct people to Google when they want to see your blog. But Google hosts lots of blogs, so we have to make sure the right one is associated with this domain. You'll do this on the Settings | Publishing tab for your blog in Blogger.



now you will find some text with a link named switch to:custom Domain. click on that link.The Blog*Spot Address setting now changes to Your Domain. Fill in the domain you registered, and then save your settings.

 hip hip hurrah dear now you total set up is complete. Some good news and some bad news i would like to tell you. the most important good news is that your old address with will redirect the visitors to your new own domain. the bad news is that you can't make your blog like this but i think you are interested for this.

please give me a comment if you liked this.

Mar 19, 2011

The New Myvi 2012 Perodua

Mar 7, 2011

Find 3 Baby's Face

Find all three baby faces in this image.... nevermind next image will give you the location.

Find three baby face

Mar 2, 2011

Installing Wordpress On Windows

Install Wordpress in Windows OS

It has been quite a while for me to test a few things out of my daily routine job. I use localhost apache web server to test my php, few years back when I installed Apache web server, mysql ver. 4 and php4 in my windows xp SP2 , the chemistry between them is not promising. A lots of bugs need to be fixed , and few patches I assumed will resolved the problem, during that time all of these mysql, apache and php works very well with linux or unix base OS. I'm not really good in Linux coz I use almost everyday windows os , right now XP and 7 Vista dughhhh!!!. I face a lots of problem testing one by one, I mean , the apache server is easy to install, but when came up with the php and mysql , oh no ... "connectivity problem" know "dynamic web page issues", problems like ODBC and others.

Hmmm, why localhost?, coz it is easy for me to test the code when I'm mobile , then when it is success , I 'll try it at server later on. Since my primary OS is windows, so I need to find the installer for windows, you know the .exe and .msi file.

Since I leave for study, most of the time I'm using GUI base apps, I'm blogging with and wordpress blog, so everything is what you see is what you get - WYSIWYG, and of coz in a matter of click here and click there environment then you're set. The bad news is, I'm not writing programs a lot,most of the time is modifying the CSS for the web interface and XML, XHTML conversion from HTML those who use blogger/blogspot know about this, so my logic and skills is retarded huhu...

So, today without any doubt, I download several so called laa... the latest version of mysql5, wordpress3.1 and phpmyadmin3. Since the php and apache is already installed, so I need to install mysql and phpadmin. After the apache web server + php5 + mysql + phpmyadmin can sit and talk together, I upload the wordpress3.1 in my localhost. Surprisingly, it took me less than 5 minutes without any error or complication, the wordpress blog is up and running. is truly amazing GUI process.

If you want to know how the "dynamic web page" works, this is the best way for you to study and see for yourself how it works. It is a good for those who are not familiar with non-windows OS.

I'll try to give a simple tutorial how to do this later on with the screen capture perhaps, and of coz laa it also will help me and my students as well. Most of the file needed is in the image above, you must have apache web server, php and mysql. Then you need Zend optimizer for php, phpmyadmin for web base mysql management tools, and lastly wordpress3.1 for blog site. Even though there are some installer packages like easyphp or wampserver that bundle together php,mysql and apache, I'm prefer to install it separately, you can try it , very simple click n installed.

You may consider others open source php base product like b2evolution, Nucleus , Noahs Classifieds, Content Management like Drupal, Geeklog, Joomla, Mambo, PHP-Nuke, phpWCMS, phpWebSite, Siteframe, TYPO3, Xoops, Zikula and many others.....enjoyyy....huhu


Installing wordpress

Mar 1, 2011

Suzuki Swift White 2010

Dah lama nak upload perkembangan terkini kete org rumah aku, sebelum dia bawak kete ni, aku dah hantar solek kat beberapa kedai, dan terobek lah poket aku, hanya aku dan tokey kedai jer yg tau, anggaplah "carwarming" utk dia, cuma masih lagi ketandusan idea rim sukan yg macamna nak letak, 15" or 16", .....

Keadaan asal

order this decal, on its way to my door step .....

redirect my WordPress RSS Feeds to Feedburner Feeds using htaccess file

Feedburner is a great service from Google to track your blog RSS Subscribers, and Feedburner can give you a full control on your RSS Feeds.
You can get many reports about your RSS Subscribers, such as; what RSS Readers your blog visitors use? How many subscribers do you have? You can also add to your WordPress blog an RSS subscription services that will help you to increase your RSS Subscribers.

All the reasons above are enough to encourage you to redirect your original WordPress RSS Feeds to Feedburner RSS Feeds.

Another important reason to encourage you to redirect your WordPress Feeds to Feedburner Feeds is Google Adsense! Google Adsense publishers can add Google Adsense ads to their Feedburner Feeds page, if you don’t redirect your WordPress Feeds to Feedburner, then you can’t make enough money using Feedburner Feeds page right? So if you already an Adsense Publisher, then you should redirect your WordPress RSS Feeds to your Feedburner RSS Feeds.

It’s easy and simple! We will just paste a code inside the .htaccess file that exists in your home directory.
Login to your website Cpanel account or any control panel, go to “File Manager” and then go to your home directory root (Public_html) and look for your .htaccess file inside your home directory root.

#Feedburner Redirect
Options +FollowSymLinks
RewriteEngine on
rewritecond %{http_host} ^ [NC]
rewriterule ^(.*)$$1 [L,R=301]

Before you copy this code, replace “” to your blog URL, if your domain is with www, then just add “www” to your website URL, and don’t type “http” in your website URL.

Also change “zuraidin” to your Feedburner id.

Now copy the code and paste it in your .htaccess file and finally save the changes.

That’s it! You’ve finished! If you have any questions feel free to ask me.
Related Posts with Thumbnails