Wednesday, July 24, 2013

WinDump: TCPDump for windows

WinDump: TCPDump for windows 


WinDump is TCPDump for windows.

What is TCPDUMP?

                        TCPDUMP is command for capturing TCP/IP packet on unix/linux platform i.e. it is command line network analyzer for UNIX. 
For more detail about TCPDUMP visit Click Here

What is WinDump?

                      WinDump is TCPDump command line packet analyzer for windows. WinDump is fully compatible with TCPDUMP have same commands and features available on windows. WinDump. If you want to traces the packets for some analysis purpose. We can easily capture packets on a particular network interface card  as well as trace route of packet using Win Dump. 

Installation of WinDump :

Step 1: Installation of WinPcap

For installation of WinDump we first require to install WinPcap. WinPcap is a set of network capture drivers require to WinDump to capture packets.

Download WinPcap from http://www.winpcap.org/install/default.htm then the following page appears in browser click on red circle icon then the WinPcap starts downloading


Once the download is completed start installation by double clicking the winPcap.exe file as shown below


Click on next button to start the installation of winPcap.


Then click on I Agree button as shown in above picture. 


Click on install to install winPcap in your computer



So click on finish button to complete installation of WinPcap.

Step 2:  Installation of WinDump
To download windump Click Here


Then above click downloads the windump.exe
then goto folder where the windump.exe is present.

Step 3: WinDump tutorial

                 Open the command prompt and then change the directory to path where windump.exe is present.
Here in my example i have put the downloaded windump.exe in  D drive
then follow the steps shown below,

Open command prompt by clicking (windows+R) button and type cmd in run window as shown below then click on ok


Then the comand prompt apperas as shown below


place the downloaded windump.exe in D drive as shown below


The red circle shown in above picture denotes  the drive D and windump.exe
 Then change the directory in command prompt to drive D as shown below


Now our environment is ready to capture packets.

To see the available options for windump enter  WinDump.exe -help in command prompt



Windump commands:

Enter the following command to capture packets in above open command prompt.
  • WinDump.exe -D  This command give us the list of available interfaces for capturing packets.

So there are two interfaces available first one for capturing packets over Ethernet interface i.e when computers are connected using wired LAN and second one interface is for capturing packets when the computer connected using wireless LAN.


  • WinDump.exe : This command is to capture packets on all available interfaces in this example we are listening on both interfaces


 So after stopping the packet capture by (control+C) button the log is generated. The generated blog is circled with red as shown below,



  • WinDump.exe -i <interface number>  : This command listen on the particular interface defined by -i parameter. In this case there are only two interfaces so interface number can be 1 and 2.

          So example WinDump.exe -i 1 reads or capture packets from interface number 1. Below snapshot of read packets on interface 1,



  • WinDump.exe -i <interface number> -port <port number> :  This command give us the two options to specify the interface number and port number on which we have to capture packets. So we can capture the packets on a particular port number like 80 if we want to capture the http packets. 

 So WinDump.exe -i 1 -port 80 to capture http packets on first interface as shown below



  • WinDump.exe > <output file name>  : This command used to capture packets on available interfaces and store it into output file for further analysis.
The command WinDump.exe > packets store the captured packets in packets file as shown below.


The above snapshot captures packets and store it into the file name packets.
The captured packets file we can open in notepad and see the captured packet list as shown below


Thanks for reading WinDump tutorial.
We can find more commands related to windump using WinDump.exe -help


Read More

Sunday, July 21, 2013

How to install XAMPP on windows

How to install XAMPP on windows

Xampp is open source, free and cross platform open source package. Xampp mainly contain apache http server and mysql database for php website development.

XAMPP stands for xml apache mysql php and perl.

 

Steps to install xampp as shown below

Step 1: Open your web browser and download XAMPP from http://www.apachefriends.org/en/xampp.html

Step 2: Click on XAMPP for windows link as shown below in 


Step 3:  Then on  XAMPP for windows page click on download xampp link

Step 4: Then click on installer link shown below


Step 5: Then the save the XAMPP installation


Step 6: So after download is completed follow the installation step of XAMPP as shown below


Click on next button,


Select all options which you want to install with the XAMPP and click on next button,


Select the drive to install XAMPP in above example 'C' drive then click on next to continue xampp installation and then follow the steps as shown below, Just click on the button circled by red color.









Once the installation is completed. How to start the apache server for php development is shown below,

Step 7: Find the installation path of XAMPP and select the XAMPP folder as shown below,


Step 7: Then find the XAMPP control panel in XAMPP folder and click on xampp-control.exe to open xampp control panel as shown below,


Step 8: The XAMPP control panel look like below. Click on start to start the apche https server.


Then the apache service is started on port number 80 for serving http request and port number 443 for serving https request as shown below. Click on stop for stopping the apche service.


Step 9: Check the apache server started or not by opening http:\\localhost in web browser  then the XAMPP home page appears in browser as shown below.
 

So successfully completed the XAMPP installation on window. 

Thanks for reading this article.
We will come soon with XAMPP installation on linux...



Read More

Saturday, July 20, 2013

How to start with PHP programming

How to starts with PHP programming

what is php?

    php is server side scripting language designed for web development. PHP stands for hypertext preprocessor. PHP is widely used open source general purpose scripting language specially for web development. PHP need not need to write in separate file. We can just embedded it into HTML. PHP code is interpreted by a web servers and it generate the php pages.

why php?

  • PHP is most popular scripting language
  • PHP can be deployed on most of web server, on almost every operating system and platform free of charge
  • Easy to learn
  • fast development

Required Software's 

   1)Apache server:

    PHP require apache server for serving the php page request. Apache is simple https server for server the http requests
  2) Mysql database 
   PHP support any database  but mysql with php is famous.


Start PHP development :

Step -1 : Download XAMPP

  • Xampp stands for xmp apache mysql php and perl. It is all in one package for php
  •  So easy to download and install XAMPP than seperate php and mysql
  • XAMPP provides control panel which make simple start and stop apache and mysql services





Step-2 : Install XAMPP 
                You can find simple article on how to install XAMPP on windows just Click Here for article. Follow the steps as show in article.
                Then start the apache server service by clicking start on the xampp control panel. In xampp htdocs default root directory to store the php web pages we change this path by editing config file of xampp. 
Then start the apache serever and check the server started or not by opening the http:\\localhost  in your web browser then it display the homepage of xampp. 

 

Create the first hello world program in php :

Crate index.php file in htdocs folder of xampp
Copy the below sample hello world code

<?
    echo "Hello world";
?>
 

Save index.php file.
Open the web browser and type url http:\\localhost\index.php. Then the output of index.php hello world is display in the browser.


Best of luck for programming and do some fun with php.........
Read More

Saturday, July 13, 2013

PHP program error : Call to undefined function curl_init()?


PHP program error : Call to undefined function curl_init()?


 
First you need to change the php.ini configuration file
Go To php installation directory search for php.ini file
Opne the php.ini file and search for below line
;extension=php_curl.dll
then delete the first semi-column (;) save the file
Before running php program restart the apache server.
Read More