Friday, August 21, 2009

Debug a Windows XP batch file and output the current date and time to a log file

The Windows 2003 Resource Kit comes with a batch file command, logtime, that lets you output the current time, date, and a custom text message to a log file. This is great for benchmarking batch files and commands in that you can output when such a command starts and completes.

To run logtime, first download and install the Windows Server 2003 Resource Kit using the instructions mentioned in MalekTips (check the other Windows XP and DOS command tips).

Once the Resource Kit is installed, to view the online help for logtime:

C:\>logtime /?

To write a message to the text file "logtime.log" in the current directory, just issue this command:

C:\>logtime "MESSAGE"

For example, the following command will write the current day, time, and message "Command just completed" to the file logtime.log:

C:\>logtime "Command just completed"

Note that this will display the results of the command to the standard output as well. To hide this:

C:\>@logtime "Command just completed" > nul

XP: kill a Windows process from the command line with taskkill


The ability to perform tasks from a system’s command line allows those tasks to be used in batch files. This recipe describes several uses of taskkill to terminate Windows processes.

If you know the name of a process to kill, for example notepad.exe, use the following command from a command prompt to end it:

taskkill /IM notepad.exe


This will cause the program to terminate gracefully, asking for confirmation if there are unsaved changes. To forcefully kill the same process, add the /F option to the command line. Be careful with the /F option as it will terminate all matching processes without confirmation.To kill a single instance of a process, specify its process id (PID). For example, if the desired process has a PID of 827, use the following command to kill it:

taskkill /PID 827


Using filters, a variety of different patterns can be used to specify the processes to kill. For example, the following filter syntax will forcefully kill all processes owned by the user Quinn:

taskkill /F /FI “USERNAME eq Quinn”


The following table shows the available filters and their use.

Filter Name Valid Operators Valid Value(s)
———– ————— ————–
STATUS eq ne RUNNING | NOT RESPONDING
IMAGENAME eq ne Image name
PID eq ne gt lt ge le PID value
SESSION eq ne gt lt ge le Session number.
CPUTIME eq ne gt lt ge le CPU time in the format
of hh:mm:ss.
MEMUSAGE eq ne gt lt ge le Memory usage in KB
USERNAME eq ne User name in [domain\]user
format
MODULES eq ne DLL name
SERVICES eq ne Service name
WINDOWTITLE eq ne Window titleeq: equals ne: not equal
gt: greater than lt: less than
gt: greater than or equal le: less than or equal

WindowsXP: Using the Command prompt to see and kill processes

If you are a WindowsXP user then you must be already familiar with the life-saving graphical tool called “Task Manager” on Windows. Whenever the PC starts hanging and the processes start eating up a lot of memory (Sadly most of the time its Firefox for me), we press the alt+ctr+del key to bring up the the “Task Manager” and try to kill the memory eating processes and the ones which are “not responding”. Well, you should also know that this can be done efficiently from the command prompt as well.

As my project work requires writing and running codes, I generally have at least one Windows command prompt open. If this is the case with you then it is much faster to manage your windows processes from command prompt than to open up the Task Manager, just like we do on Linux using “ps” and “kill” command. Get to know the following commands and you can easily use the command prompt to see and kill processes.

1. Tasklist : This command is similar to “ps” command on Linux and is used to see the details of the programs and processes that are running in Windows. Tasklist can be applied to see how much memory and CPU time running processes are using, what DLL files they rely on, and other information. Thus it can be a very useful troubleshooting tool.

  • Processes info: When you enter tasklist on the command prompt, you can see the following informations by default. Image Name, PID, Session Name, Session#, Mem Usage
  • Processes detailed info: Additional info like, Status, User Name, CPU Time, Window Title can be displayed using tasklist /v
  • Services and Processes info: Use tasklist /svc to get a table relating Image Name, PID, and Services, very useful to know the relationship between a process and the services that are running on a system.
  • dlls and Processes info: Tasks and Use tasklist /m to find which DLLs are used by each process.
  • Filtering processes: Processes can be filtered using ImageName, PID, MemUsage, Status, Username and WindowTitle. For Example,
    • Use the following command to to find processes that are not responding.
      • tasklist /fi "status eq not responding"
    • Use the folliwing to list the processes eating up more than 10MB.
      • tasklist /fi "memusage gt 10000"
  • More Info: To get more info on advanced syntax of the command use tasklist /? or refer to Microsoft’s documentation.

(NOTE: Although Tasklist is a part of Windows XP Professional, it does not come with the Home edition. Those with the Home version of XP can download this file and can put it in the system path.)

2. Tskill : This command is used to end a process, using its name of its PID.

  • Kill with name: Use tskill processname to kill a process with name processname. For example:
    • tskill winword (closes all the Microsoft documents that you have open)
  • Kill with PID : Similarly use tskill processid to kill a process with PID processid. Tasklist can be used to find the PID of a process.
  • More Info: To get more info on advanced syntax of the command use tskill /? or refer to Microsoft’s documentation.

(NOTE: Tskill is a part of both Windows XP Professional and the Home edition.)

3. Taskkill : Similar to Tskill, this command is also used to end a process but it provides us more options in doing so. Apart from specifying the PID or the image name of the process to kill, we can also use ceratin filters to kill the matching processes as explained below.

  • Kill with name: Use taskill /IM imagename to kill a process with the given Image name. For example:
    • taskkill /im notepad.exe /f (forces notepad to be killed.)
  • Kill with PID : Use taskill /PID processid to kill a process with the given processid.
  • Filtering Taskkill: Processes to be killed can be filtered using ImageName, PID, MemUsage, CPUTime, Session, Status, Username, WindowTitle, Services or Modules (dll). For Example,
    • Use the following command to forcefully shut down all the processes that are not responding.
      • taskkill /f /fi "status eq not responding"
    • Use the folliwing to close down all programs using more than 10 MB..
      • taskkill /f /fi "memusage gt 10000"
  • More Info: To get more info on advanced syntax of the command use taskkill /? or refer to Microsoft’s documentation.

(NOTE: Taskkill is only a part of Windows XP Professional.)

Sunday, August 16, 2009

How To Hack Isp To Use Internet For Free (tools and video tutorial)

Superscan

Superscan is a free connect-based port scanning software designed to detect open TCP and UDP ports on a target computer, determine which services are running on those ports, and run queries such as whois, ping, ICMP traceroute, and Hostname lookups.

Superscan 4, which is a completely-rewritten update to the other Superscan, features windows enumeration, which can list a variety of important information dealing with Microsoft Windows such as:

* NetBIOS information
* user and Group Accounts
* Network shares
* Trusted Domains
* Services - which are either running or stopped

Superscan is a tool used by both system administrators, crackers and script kiddies to evaluate a computer's security. System administrators can use it to test for possible unauthorized open ports on their computer networks, whereas crackers use it to scan for a potentially insecure port in order to gain illegal access to a system.

Superscan 4 is produced by the Foundstone, a division of McAfee.

Here are some of the new features in this version.

* Superior scanning speed
* Support for unlimited IP ranges
* Improved host detection using multiple ICMP methods
* TCP SYN scanning
* UDP scanning (two methods)
* IP address import supporting ranges and CIDR formats
* Simple HTML report generation
* Source port scanning
* Fast hostname resolving
* Extensive banner grabbing
* Massive built-in port list description database
* IP and port scan order randomization
* A selection of useful tools (ping, traceroute, Whois etc)
* Extensive Windows host enumeration capability


a-Change Mac Address 5.0

Change Mac Address in seconds! Scan Mac Address within any range of IP address. Exports the scanning results from a Mac Address Lookup list. Spoofing the Mac Address of your network card to any new Mac Address.
Wake on Lan. Win Ipconfig.Port Scan.
Scan any range of IP for the proper Mac Address.
Support changing Mac Address of any network cards under Windows NT/2000/XP/95/98/2003.
Support exporting scanning mac address results to txt file.

A-MAC Address Change is a lightweight, easy-use MAC Address scanning and changing software. Don't let its small size fool you! It's filled with features such as:

* It's shockingly easy to use — just a simple input and click, that's it!
* It can scan any range of IP for the proper MAC Address.
* It supports exporting results of your scan to a text file.
* It runs on all Windows™ operating systems.
* It supports any network cards under Windows Me/95/98/NT/2000/XP/2003/Vista.
* It supports changing back to its original physical address.
* It recommends the proper Ethernet network card.
* It displays the information of your computer.
* It automatically checks the legality of IP range.
* It supports changing MAC searching speed.



But what does all this mean to you? Simple...

* You don't blow your time calling the ISP vendor and ask them to update the registered MAC Address to match the new hardware. Some Cable Modem ISP's assign IP addresses base on the PC's MAC addresses. For whatever reason, if you need to swap 2 PC's regularly to connect to the cable modem, it would be a lot easier to spoof MAC Addresses rather than to change Network Interface Card (NIC).
* You can scan the MAC Address of destination computer.
* You can perform security checking on MAC Address based authentication and authorization systems
* You can build Stand-by (offline) systems with the EXACT same Computer Name, IP address, & MAC Address as the Primary Systems. If Stand-by systems should be put online, NO arp table refresh is necessary, which eliminates extra downtime.
* Test network management tools.
* Some software can ONLY be installed and run on the systems with pre-defined MAC address in the license file. Now you can install one of these applications to another system with a different NIC.
* Troubleshoot Network problems: ARP Tables, Routing, Switching, etc.



Download


XP Account Hacker (See Passwords)

Here this is a really nice Live CD i found a long time ago.

"Ophcrack is a Windows password cracker based on rainbow tables. It is a very efficient implementation of rainbow tables done by the inventors of the method. It comes with a GTK+ Graphical User Interface and runs on Windows, Mac OS X (Intel CPU) as well as on Linux."


It will give you the Accounts Passwords after a couple minutes most of the time!





Download:


ophcrack-win32-installer-3.2.rar



Boot your PC in less than 10 seconds


Seems Interesting when you think, how PC Boot within 10 Seconds? Well, you have come to the right place. To a daily user, shaving that extra few seconds for booting up can go a long way. Before I proceed, may I ask for you to backup your data and registry first just to be safe. You are warned, use with caution.


How to bootup computer in 10 seconds lesser?

1) Press Windows Key and "R" to launch the run command.

2) Type "regedit" inside the input space.

3) Navigate to the registry key

HKEY_LOACAL_MECHINE\SYSTEM\CurrentControlSet\Control\ContentIndex

4) Locate the key"Startup Delay" and double click on it.


5) Select Decimal, and change the value to 40000

Enjoy the reduction in startup time and I look forwarding to hearing good news from all of you.

Free FTP Sites for download software, games, movies and music etc....

Recently, i covered the 12+ Free Torrent ,movies, software sites that also offered free content. So read too the list of Top Ranked Torrent Sites.I have posted many internet tools that given free services like online movies , games, internet tv, etc . Today i have another interesting sharing for you. I gethered those ftp websites that provides you software, games, movies and music for downloads. FTP allow you to download absolute free.

Below is the list of more then 50+ FTP sites that give you free content to download like games, books, songs, movies,software etc. I hope you should share and bookmark this page for other can take advantage of it.



Here is the list of FTP websites offered to free Service: