Power User: Command line tools rule when an OS is under attack

 

Connecting state and local government leaders

No power user worthy of the name should ignore the command line tools that still underlie Microsoft Windows' graphical interface.

No power user worthy of the name should ignore the command line tools that still underlie Microsoft Windows' graphical interface.Remember the recent Blaster worm? It made thousands of systems reboot so quickly'often in 60 seconds or less'that even users who knew how to download a patch couldn't do so before the next shutdown.From the command line, you can often abort a shutdown with this command: shutdown -a. Get to the command line by clicking Start and Run and typing cmd.I didn't encounter Blaster, so I'm not certain that shutdown -a would have worked in that instance, but I've seen reports that it did. In my experience it certainly has come in handy combating other malware.You can also control a shutdown with shutdown.exe in combination with switches. Administrators of small networks, for example, can manage remote computers' shutdown schedules via the -m switch without needing a reboot of local computers.For a look at the basic tools, try the help command: shutdown /?. There's even a graphical interface for shutdown -i that makes remote management a snap on small systems.Simply closing the program that's running can disable some worms and viruses, but you can't always do so through the Windows Task Manager. Another command line tool, taskkill.exe, might work. Taskkill also lets you shut down processes running on remote systems.Tasklist, a related tool, lists applications and processes on a local or remote computer.Because the command line interface can be so useful for automating jobs, some utilities are still available for it.Sureshot Software, a Swedish division of Bysoft Data AB, at , sells a $30 command line e-mailer that can batch-process messages or add e-mail capability to an application. The company's $15 E-mail Extractor will pull e-mail addresses from almost any file, including Microsoft Office documents.A $40 tool, EmailSpider, downloadable from , extracts e-mail addresses from Web sites. This has obvious spammer uses, but it also can scan your sites for agency addresses that attract spam, and it can build departmental mailing lists. The first step in reducing spam is to keep legitimate addresses out of spammers' reach.If you run Windows XP, you already have a task scheduler or two.schtasks.exe, the replacement for the older at.exe, lets administrators query, schedule, run and end tasks on local as well as remote systems.at.exe, combined with it.exe, lets Windows 2000 users schedule tasks from the command line. at.exe is included with XP for compatibility, but you really should use schtasks.exe instead.One of the most useful jobs for these tools is to set up a regular routine for XP's command line disk defragmenter.If you're a network administrator, you probably have much more powerful tools available. But there's a good reason why you should know how to use all the command line tools anyhow.Consider the at /delete command. Someone who types that, whether accidentally or on purpose, will cancel all the tasks you've scheduled for remote systems.The same goes for schtasks /Delete/F. That command not only kills a task but blocks a warning that the currently running task is being killed. It doesn't take much of a hacker to find ways to use schtasks for mischief.These and lots of other command line tools shouldn't be readily available to the curious. Consider removing them, perhaps remotely via schtasks.A final word to power users: Someone else might sit down at your computer from time to time. Perhaps you should clean out some of the more potentially dangerous command line tools to protect yourself.

John McCormick



















www.sureshotsoftware.com

www.RebrandSoftware.com

















John McCormick is a free-lance writer and computer consultant. E-mail him at powerusr@yahoo.com.
X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.