Saturday, 4 May 2013

Some Important Commands On Cmd

| |
0 comments



Command Prompt (executable name cmd.exe) is the Microsoft-supplied command-line interpreter on OS/2, Windows CE and on Windows NT-based operating systems (including Windows 2000, XP, Vista, 7, 8, Server 2003, Server 2008, Server 2008 R2 and Server 2012). It is the analog of COMMAND.COM in MS-DOS and Windows 9x systems (where it is called MS-DOS Prompt), or of the Unix shells used on Unix-like systems.

[Image: Command_Prompt.png]

Now let me go straight to the main topic :

Here is some cool commands of CMD --------->

ipconfig :


This is the top most command for seeing the ip address,subnet mask and default gateway also includes display and flush DNS cache, re-register the system name in DNS.. This will most useful tool for viewing and troubleshooting TCP/IP problem.
  • To view ip ,subnet mask address : ipconfig
  • To view all TCP/IP information, use: ipconfig /all
  • To view the local DNS cache, use: ipconfig /displaydns
  • To delete the contents in the local DNS cache, use: ipconfig /flushdns

systeminfo

Have a need to display operating system configuration information for a local or remote machine, including service pack levels? Then systeminfo is the tool to use. When I need to connect to a system that I am not familiar with, this is the first tool I run. The output of this command gives me all the info I need including: host name, OS type, version, product ID, install date, boot time and hardware info (processor and memory). Also knowing what hot fixes are installed can be a big help when troubleshooting problems. This tool can be used to connect to a machine remotely using the following syntax: SYSTEMINFO /S system /U user

tasklist and taskkill 

If you work with Task Manager (ctrl+alt+del) ,you can easily understand this.Task list is list of task which are running on windows currently. If you open any application,it will be added to task.To List the Tasks type in cmd as :tasklistThis will show the list of task which are running.To stop the Process or task ,there is two methods :Using Image Name:We can kill the task using its Image Name as follows:tasklist /im notepad.exeUsing Process Id:we can stop the process using its process id as follows :tasklist /pid 1852

 type

type is used to read the text document in command prompt . You can read multiple text in continuously..

type filename.txt

netstat

Need to know who (or what) is making a connection to your computer? Then netstat is the tool you want to run. The output provides valuable information of all connections and listening ports, including the executable used in the connections. In additon to the above info, you can view Ethernet statistics, and resolve connecting host IP Addresses to a fully qualified domain name. I usually run the netstat command using the -a (displays all connection info), -n (sorts in numerical form) and -b (displays executable name) switches

net command

Although this tool is more known as a command, the net command is really like a power drill with different bits and is used to update, fix, or view the network or network settings.It is mostly used for viewing (only services that are started), stopping and starting services:

net stop servernet start servernet start (display running services)and for connecting (mapping) and disconnecting with shared network drives: net use m: \\myserver\sharenamenet use m: \\myserver\sharename /deleteOther commands used with net command are, accounts (manage user accounts), net print (manage print jobs), and net share (manage shares).Below are all the options that can be used with the net command.

[ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |HELPMSG | LOCALGROUP | PAUSE | PRINT | SESSION | SHARE | START |STATISTICS | STOP | TIME | USE | USER | VIEW ]

nslookup

With the Internet, DNS (Domain Name Service) is the key for allowing us to use friendly names when surfing the web instead of needing to remember IP Addresses. But when there are problems, nslookup can be a valuable tool for testing and troubleshooting DNS servers.Nslookup can be run in two modes: interactive and noninteractive. Noninteractive mode is useful when only a single piece of data needs to be returned. For example, to resolve google.com:

[Image: image.gif]

To use the interactive mode, just type nslookup at the prompt. To see all available options, type help 

[Image: image.gif]

Don't let the help results intimidate you. Nslookup is easy to use. Some of the options I use when troubleshooting are:set ds (displays detailed debugging information of behind the scenes communication when resolving an host or IP Address).set domain (sets the default domain to use when resolving, so you don't need to type the fully qualified name each time).set type (sets the query record type that will be returned, such as A, MX, NS)server NAME (allows you to point nslookup to use other DNS servers than what is configured on your computer)To exit out of interactive mode, type exit

ping and tracert 


These tools can be helpful with connectivity to other systems. Ping will test whether a particular host is reachable across an IP network, while tracert (traceroute) is used to determine the route taken by packets across an IP network.To ping a system just type at the prompt: ping http://www.google.com. By default, ping will send three ICMP request to the host and listen for ICMP “echo response” replies. Ping also includes switches to control the number of echo requests to send (-n ), and to resolve IP addresses to hostname (-a ).To use tracert, type at the prompt: tracerthttp://www.google.com. You can force tracert to not resolve address to hostnames by using the -d switch, or set the desired timeout (milliseconds) for each reply using -w switch.

gpresult

Used mostly in environments that implement group poicies, gpresults (Group Policy Results) verifies all policy settings in effect for a specific user or computer. The command is simple to use, just enter gpresults at the prompt. It can also be used to connect to computers remotely using the /S and /U switches.

Netsh

Without a doubt the most powerful command line tool available in Windows. Netsh is like the swiss army knife for configuring and monitoring Windows computers from the command prompt. It capabilities include:
  • Configure interfaces
  • Configure routing protocols
  • Configure filters
  • Configure routes
  • Configure remote access behavior for Windows-based remote access routers that are running the Routing and Remote Access Server (RRAS) Service
  • Display the configuration of a currently running router on any computer
Some examples of what you can do with netsh:Enable or disable Windows firewall:

Code:
netsh firewall set opmode disablenetsh firewall set opmode disable
Enable or disable ICMP Echo Request (for pinging) in Windows firewall:

Code:
netsh firewall set icmpsetting 8 enablenetsh firewall set icmpsetting 8 disable
Configure your NIC to automatically obtain an IP address from a DHCP server:

Code:
netsh interface ip set address "Local Area Connection" dhcp
(For the above command, if your NIC is named something else, use netsh interface ip show config and replace the name at Local Area Connection). 
Read More

Sunday, 28 April 2013

How to Scan Your Blogger Site for Malware Script

| |
2 comments



While choosing a Blogger template people often gets confused whether this template is potentially free from any kind of malware or the developer have incorporated some malicious scripts. Probably, the ideal way to tackle such malicious templates is to scan them through different tools available on the internet. It is always a good thing to inspect your Blogger site on a daily basis by scanning it for potential malware and etc. In this article, we will discuss a few quick ways on How to Scan Your Blogger site for Potentially Malware scripts.


Sucuri:

Sucuri is a globally recognize and by far the best Blogger security scanner. They offer a Free-to-use tool that scans your site and provides basic information whether there is any potential risk or not. However, if you are too much worried about your site’s security then you must try its Paid version because it provides a lot of in-depth details. To sum things up, after installing Sucuri it would keep an eye on your site 24x7 and would prevent your site from any security threat. Sucuri Blocks the IP of those users who are found doing suspicious activities. Additionally, they also send alert messages if they notice something Fishy going on your site. This does makes sense.

Believe it or not some leading companies like BBC, CNN, PC World, TechCrunch, TheNextWeb and other companies recommend these guys. These guys are too good and know how to handle things when you are away from your site.

VirusTotal Scanner:

VirusTotal is a subsidiary of Google, which is a free service that helps you to analyze suspicious files and URLs enabling you to identify worms, trojans, malwares and other suspicious files incorporated on your site. It allows you to scan your site on different leading antivirus engines and website scanners. Since, it is a Google service so you can rely on it.

To scan your site on VirusTotal, go to https://www.virustotal.com/en/#url and enter the URL of your site. Now as soon as you hit enter it would inspect your site across different leading scanners and would provide you in-depth details about your site’s security, and safety.

Comodo Web Inspector:

Comodo site inspector is another free tool that does the job quite impressively. It scans your site on the basis of Blacklist Checking, Phishing, Malicious Activity, Malware Downloads and Suspicious Activity. Often hackers target templates to inject links so, it protects your site from any kind of spammy links. Though, it doesn’t provide comprehensive details like Sucuri and VirusTotal but it is worth to check this free tool.

Note: This tool takes a while to scan your site, so please be inpatient when it is working. You can minimize the window and can continue with your work. It would notify you once the scanning is done.

We hope this article would help you to protect your site from any kind of malware or malicious scripts. We want to make this article a great resource for Blogger users, so if you have any better suggestions, then leave them in the comment below.
Read More