Showing posts with label Windows. Show all posts
Showing posts with label Windows. Show all posts

Friday, August 19, 2011

Countinous ping from windows and Solaris

Sometime you may need to do continuous ping from your machine to another machines :

You can use simply use ping command from Linux machines, But you have to do that in following ways in Windows and Solaris

Windows : ping <ipaddress< -t
Solaris : ping -s <ipaddress> or ping -s <ipaddress> <no_of_pings>



Thursday, August 18, 2011

Find all the used ip address in LAN (single network)

You can use following command to find all the used ip address in LAN (single network
) from windows machine

FOR /L %i IN (1,1,254) DO ping -n 1 192.168.0.%i | FIND /i "Reply">> c:\ipaddresses.txt


The "-n 1" is for only 1 ping packet to be sent to each computer.

Change 192.168.0 to match you own Network ID.

This will ping all IP addresses on the 192.168.0.0 network segment and create a text file called IPADDRESSES.TXT in C:\, where it will list only the IP addresses that gave a reply.



You can use following script to find all the used ip address in LAN (single network
) from Linux/Unix machine

a=0
COUNT=4
IPRANGE="192.168.0"

while [ $a -le 254 ]
do
myHost=$IPRANGE""$a
count=$(ping -c $COUNT $myHost | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
if [ $count -ne 0 ]; then
echo $myHost >> ipaddress
fi
a=`expr $a + 1`
done


Change 192.168.0(IPRANGE) to match you own Network ID.

This will ping all IP addresses on the 192.168.0.0 network segment and create a text file called ipaddress in current location, where it will list only the IP addresses that gave a reply.




Friday, May 28, 2010

HTTP header in Internel Explorer

ieHTTPHeaders is an extension to the Internet Exploer browser. ieHTTPHeaders is similar to the LiveHTTPHeaders except it is built for Internet Explorer instead of Mozilla based browsers. ieHTTPHeaders is also free, although a donation to the author would be appreciated.

Click for ieHTTPHeaders website.

ieHTTPHeaders is another quick and easy tool used for sniffer traces within the Internet Explorer browser. It is also very easy and quick to install. There is very little configuration needed. Once you install ieHTTPHeaders navigate to the tool bar, click View, click Explorer Bar, and check the
ieHTTPHeaders listed there. This will place the ieHTTPHeaders at the bottom of your browser.
Again this is so simple to install and use. You can view the packet captures quickly and easily. It again only has tracing from the browser and not from applications outside of the browser. And there is not a whole lot of capability to filter out specific results.
Unfortunately ieHTTPHeaders does not have the capability to replay packets with different value likes LiveHTTPHeaders does.
One last dis-advantage is that it only works in Internet Explorer. Luckily this is so easy to use and very similar to LiveHTTPHeaders you will find using both of them is really easy to switch make and forth. There is very little learning curve.
Overall ieHTTPHeaders is an excellent tool to use and keep. I would recommend downloading it right away and try it out. Both ieHTTPHeaders and LiveHTTPHeaders are so easy to use and install, install both of them today and start sniffing. The best way to get better at sniffer traces is to capture and analyze numerous sniffer traces on all sorts of different sites. Start sniffing today!

Wednesday, April 28, 2010

Add Facebook Chat to Pidgin




Want to keep in touch with your Facebook friends throughout the day?  Here we’ll show you how to easily add Facebook chat to the popular multi-protocol chat client Pidgin.
Facebook has recently added support for XMPP chat, which means you can easily add it to popular chat clients such as Pidgin.  Previously you could only add Facebook chat to Pidgin through a plug-in that didn’t always work correctly.  Here we’ll walk you through setting up your Facebook account in Pidgin.

Getting Started
First, make sure you have a username for your Facebook account (link below).  This is a relatively new feature for Facebook, so if you’ve had your account for a while you may need to choose one


If you already have one, you should see it listed instead.

Now, open Pidgin, and click Manage Accounts.


















Click Add…
















Now, enter your Facebook username without the facebook.com part (e.g your.facebook.username, not http://www.facebook.com/your.user.name).  Then, enter chat.facebook.com for the Domain, and enter your standard Facebook password.  You can check the “Remember password” box if you’d like Pidgin to automatically sign in to Facebook chat.
                                                             
Now Facebook will show up in your list of accounts, with the username your.facebook.username@chat.facebook.com.

 Your Facebook friends will show up directly in your Buddy list, complete with their full name and Facebook profile picture.  Any users that are not in a group will show under your standard list, while ones in a Facebook group will be shown in a separate group.  You can move which groups your Facebook friends show up in, just like you can with other chat contacts.

And no matter if your friend is logged in on the standard Facebook website or through another chat application, it will work the same as always.


This is a great way to keep in touch with your Facebook friends throughout the day.  If you like Facebook chat and already use Pidgin, now you can keep from switching between programs and just chat with all your friends from a central location.
 
Links:

 Download Pidgin
Set your Facebook username 

Sunday, April 25, 2010

Check Open files in windows



If you manage a Windows XP peer-to-peer network, you regularly need to be able to find out who is remotely using files on a particular system. This task probably makes you wish that Windows XP contained an updated version of Net Watcher—that's the neat utility in Windows 98 that showed you what files were open and who was using them.
Unfortunately, Net Watcher never made it to the newer versions of the Windows operating system. However, newer versions of the Windows operating system does come with a command-line tool called Openfiles.exe that performs the same function (even though it's not quite as snazzy as its GUI predecessor).
To use Openfiles, all you have to do is open a Command Prompt window and type:
Openfiles [/parameter]
where /parameter is one of three settings that you can use to configure Openfiles:
  • /Disconnect: Disconnects one or more open files.
  • /Query: Displays files opened locally or from shared folders.
  • /Local: Enables/disables the display of local open files.

Tuesday, April 20, 2010

How to find the system uptime in Windows Vista/Server 2008/XP/2003


Finding the uptime in Windows Vista/XP or Windows Server 2008/2003 is not as straight forward as running the command “uptime” in Linux or Unix. However, it isn’t difficult either.
There are two ways to find the system uptime in Windows Vista/Server 2008/XP/2003.


1 Using Systeminfo utility
The Systeminfo utility shows you the system boot time. The time originally the system was booted and running from.
To run the command,
1. Click Start – search and type “cmd” (Start – Run, cmd in Windows XP/2003). This should launch the command prompt.
2. From the command prompt, type “systeminfo“. This should check various system stats like installation date, hotfixes etc. Look for the “System boot time” as follows:










Also you can type as following too:
systeminfo|find "Up time" or systeminfo|find "System Boot Time"

2 Using “net statistics” command
The “net” command can perform various operations and one of them is the system statistics of a workstation or a server.
From the command prompt run, the following command
c:\>net statistics workstation
This will run a check and provide with the system statistics. Look for the line which reads as “statistics since” where it indicates the stats are from the last system startup time as follows:


Friday, April 16, 2010

Find string in files recursively





Windows :

FINDSTR /S [[drive:][path]filename[ ...]]

Note : FINDSTR /? for more information

Linux :

find * -exec grep -l "strings" {} \;

 
Free Website Hosting