MSFN Forum: CMDOW.EXE Virus? Hacktool.HideWindow - MSFN Forum

Jump to content



  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

CMDOW.EXE Virus? Hacktool.HideWindow Hacktool.HideWindow Rate Topic: -----

#1 User is offline   Express 

  • Express
  • PipPip
  • Group: Members
  • Posts: 159
  • Joined: 08-August 05

Posted 07 June 2006 - 09:23 AM

Hi All,

Ok here's my problem I have successfully created a unattended DVD installation of XP and Office 2003, there is a cmdow.exe file in $$\System32 that I have been using for the longest I can't even remember at this point what was it for. But in any case yesterday my helpdesk tells me viruses are being picked up from these installs from Symantec.

The "Risk" Hacktool.HideWindow Threat Type Hack Tools the file name as mentioned above is cmdow.exe. Can someone PLEASE tell me whats going on. Like i said I forget what was the purpose of the cmdoe.exe but now its showing up as a virus threat.

Do I need to use CMDOW.exe? Has anyone else have had these issues and what was done to rectify them.

Thanks any help will be appreciated...
EXPRESS


#2 User is offline   larson 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 11-August 03

Posted 07 June 2006 - 09:39 AM

It (CMDOW.exe) isn't a virus; its purpose is to (as Symantec claims) hide the window of your choice.

Used in such context as CMDOW @ /HID, this command is popular among users making unattended installations of Windows-- that DON'T want to show the end user some ugly DOS box that could be closed with the click of "X".

By the words "help desk," I'm guessing you're in a business and have no choice but to use Symantec products. You have my deepest condolences.

In the event that I'm wrong, may I suggest AVG (the Firewall edition, especially) or Avast! Antivirus: two solutions that won't bring a fresh new processor to its knees.

Unfortunately, I have the job of installing Norton on new computers, but I've never gone the unattended route with strangers' computers, and as such, I've never seen that warning.

But fear none-- you're not being hacked. CMDOW.exe is your friend (just not Norton's).

-L

#3 User is offline   Express 

  • Express
  • PipPip
  • Group: Members
  • Posts: 159
  • Joined: 08-August 05

Posted 07 June 2006 - 09:48 AM

Thanks Larson for the prompt reply, you are correct Symantec is our Antivirus product so thats not going to change.

So currently I have it being installed on to the local mahcines when doing the installs can i just not included in there, in other words use it to do the installs then remove the cmdow.exe?

Thanks for you help.
EXPRESS

#4 User is offline   mmarable 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 377
  • Joined: 01-November 03

Posted 07 June 2006 - 09:53 AM

Sure, you could leave CMDOW on your install media, you would just need to add the full path to any batch file that you are calling it from. Putting it into System32 makes it simple to just put CMDOW @ /HID at the top of any batch script. If you keep it on your install media, you would just need to change it to something like: f:\Installs\Tools\CMDOW @ /HID (of course the path would be to where you do have it).

#5 User is offline   stevem99 

  • Group: Members
  • Posts: 4
  • Joined: 14-May 04

Posted 07 June 2006 - 02:26 PM

If your running Symantec System Center you can add Hacktool.Hidewindow to the global security risk exclusion list.

On a stand-alone client it's easy too..
Configure> File System Auto-Protect> Actions> Security Risks> Exceptions> Add..


..or you could switch from SAV to AVG.. :blink:

-SteveM

#6 User is offline   jrf2027 

  • Member
  • PipPip
  • Group: Members
  • Posts: 238
  • Joined: 06-September 04

Posted 07 June 2006 - 02:35 PM

For my personal unattended installation, I just deleted cmdow.exe. Yeah, now I get the command windows popping up during installation and when I run my file backup command, but for my own personal system I don't really care - plus, I don't think my three-month-old son knows how to use a mouse yet, let alone how to close the command window. :D

#7 User is offline   oneless 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 07-January 05

Posted 07 June 2006 - 03:31 PM

file deleted here too.
false positive , or maybe the antivirus producers know some i dont.

after 18 months on my computer cmdow.exe was
first detected on-line scanning , 4..5 weeks ago, sorry dont remember who/where
and from 2..3 weeks my local bitdefender says same about cmdow.
.. ?

Quote

Do I need to use CMDOW.exe?
no you dont. cmdow just hide a .cmd/DOS window.
i prefere to see a dos window vs. an antivirus alert.
especially when i insert my WPI DVD in other computer (friends... !)

#8 User is offline   Express 

  • Express
  • PipPip
  • Group: Members
  • Posts: 159
  • Joined: 08-August 05

Posted 08 June 2006 - 05:53 AM

Many good advices, I will have to rethink this. The question mark that ONLESS possed made me think. Hmmm how about if there is something lurking in the background which none of us knows whats going on?

View Postoneless, on Jun 7 2006, 04:31 PM, said:

after 18 months on my computer cmdow.exe was
first detected on-line scanning , 4..5 weeks ago, sorry dont remember who/where
and from 2..3 weeks my local bitdefender says same about cmdow.
.. ?

Maybe if I just use it from the cd without copying it to the local computer... mmarable you may have a good idea.

Hey jrf2027 becarefull with your 3 month old, he may not know how to close a dos window but I bet he can drop his bottle on the keyboard :-) ...

Thank you all,
EXPRESS

#9 User is offline   krawz187 

  • Group: Members
  • Posts: 3
  • Joined: 06-June 06

Posted 08 June 2006 - 01:33 PM

I had the same virus detection warning come up today on our SAV Corporate Edition. I'm thinking it's just detected as such because it's in \%SystemRoot%\System32. I bet if it was located somewhere less suspicious like C:\install, it wouldn't be picked up. That's just my conspiracy theory. ;)

#10 User is offline   oneless 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 374
  • Joined: 07-January 05

Posted 08 June 2006 - 01:58 PM

View Postkrawz187, on Jun 8 2006, 09:33 PM, said:

...That's just my conspiracy theory. ;)
like i said : or maybe the antivirus producers know some i dont.
and after 18 months on my computer cmdow.exe...
i realize now than i never copied cmdow in my \%SystemRoot%\System32 ..!
and yes was detected there too...???
i use it since i discover WPI here at MSFN .
maybe WPI copy it there ? i dont think this...
so.. deleted ... and ask help from autoIT to do the job .

#11 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 08 June 2006 - 02:15 PM

Of late, AntiVirus vendors have been including spyware/malware into their definitions and any program that could be used to support them. CMDOW is such a program. It is not a program, and all it does it hide a window. It's detected because one or two pieces of software could use it maliciously so you don't see what's happening to your computer.

You people are too paranoid.

#12 User is offline   Crash&Burn 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 364
  • Joined: 11-March 05
  • OS:2000
  • Country: Country Flag

Posted 08 June 2006 - 05:21 PM

People would be suprised how little anti-spyware and anti-viral programs are needed in the home-computing arena when you don't utilize IE & OutLook. Ask staunch Opera users how often they need such tools ;-)

#13 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 08 June 2006 - 06:46 PM

View PostCrash&Burn, on Jun 8 2006, 06:21 PM, said:

People would be suprised how little anti-spyware and anti-viral programs are needed in the home-computing arena when you don't utilize IE & OutLook. Ask staunch Opera users how often they need such tools ;-)

Threats are only warranted when the targets a numerous. There's no reason for a hacker to target a browser utilized by a small percentage. Toute all you want about browser security regardless of browser, but if there's little gain for the effort it won't be done. :hello:

#14 User is offline   blinkdt 

  • Somewhat Knowledgeable
  • PipPipPipPip
  • Group: Members
  • Posts: 582
  • Joined: 30-September 03
  • OS:Vista Ultimate x64
  • Country: Country Flag

Posted 08 June 2006 - 08:57 PM

I don't get it. I have been using Outlook and IE for years. I have not seen a virus/trojan/spyware/malware item on my machine in all of that time, and have watched the Firefox/Opera hooplah come and go. I am not impressed.

People who bring their machines to me with problems have been visiting naughty Web sites or clicking silly links or failed to update their OS in all cases. The basics. We all learn, but some learn the hard way.

Maybe they should have, like, a test similar to a driver's license test. If you don't get 17 out of 20 correct, you can't operate a computer. Naaaaah, then my side income would disappear. :P

#15 User is offline   RyanVM 

  • Like a big surly teddy bear.
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,661
  • Joined: 31-August 03

Posted 09 June 2006 - 07:17 AM

It's not a matter of being paranoid, it's a matter of having to change my default settings so that AutoProtect doesn't just delete the file without my permission, which of course become annoying for any other malware that's not CMDOW.

#16 User is offline   aquarius 

  • Newbie
  • Group: Members
  • Posts: 18
  • Joined: 03-May 06

Posted 19 June 2006 - 06:22 AM

Hello all!

Here is a script for you that I made to avoid using CMDOW with Windows Post-Install, hope it will help!
Upgrading to WPI 5.0 might allso help, since it eliminates wpi.cmd, but you might still want this :-)

You can use it to start programs (e.g. wpi.cmd from Autorun) like this:
OPEN=WScript.exe wpi\lh.vbs wpi.cmd

Note: To avoid putting a long path in there twice, the cmd file is assumed to be in the same folder as the script. (\WPI in the example)
I know it's not very good when it comes to handling arguments, because you will lose quotes...

Here is it:
' rh.vbs - Run (a cmd batch) hidden - aquarius 11:58 14.12.2005
' Example: WScript.exe wpi\rh.vbs wpi.cmd
' Assumes wpi.cmd is in same folder as rh.vbs
' quoted arguments not handled well...

Dim objArgs, WshShell
Dim strWindowStyle, DebugWait, strCMD, strShellRun, ProgFolder, Prog, strApp, I

Set objArgs = WScript.Arguments
Set WshShell = WScript.CreateObject("WScript.Shell")

Const nDebug = false	' nDebug=true for Debug mode 
strWindowStyle = 0
DebugWait = false
strCMD = "Cmd /c "

If nDebug then
	strWindowStyle = 1
	DebugWait = True
	strCMD = "Cmd /c CLS & "
End If

if WScript.Arguments.Count = 0 then
	msgbox "strApplication requires an argument" & VbNewline &_
		"Example: WScript.exe wpi\rh.vbs wpi.cmd"
	WScript.Quit (-1)
End If

' Find folder and program to launch (arg 0) in the same folder as the script
ProgFolder =  Left( WScript.ScriptFullName, InStrRev( WScript.ScriptFullName, "\" ))
Prog = objArgs(0)

strApp = """" & ProgFolder & Prog & """"
' Add all arguments (following arg 0 which is the cmd file)
For I = 1 to objArgs.Count - 1
   strApp = strApp & " " & objArgs(I)
Next

strShellRun = strCMD & strApp
If nDebug then
	if wshShell.Popup( "Do you want to execute " & strShellRun & " ?", 10, "Confirm", 1 ) <> 1 then
		wScript.Quit(1)
	End If
End If

WScript.Quit (WshShell.Run( strShellRun, strWindowStyle, DebugWait ))


As you can see, you can set the nDebug to true to verify it's actions.
Allso, instead of using CMDOW @ /VIS for handling error messages, here is another script to display error dialogs etc.

'dialog.vbs  - Aquarius, 23:32 15.06.2006
'WScript.exe dialog.vbs "Message" [/T:"Title"] [/S:type] [/W:SecondsToWait]
'The returned errorcode will be like Windows Script Host Popup Method 
' except if no arguments where passed, in which case it returns -2
'Put strings with spaces inside quotes (message and title)

Dim WshShell, DlgTitle, nSeconds, nType
Dim argsNamed, argsUnnamed

nSeconds=0
nType=0

set WshShell = WScript.CreateObject("WScript.Shell")

if WScript.Arguments.Count = 0 then
  WshShell.Popup "Syntax: wscript.exe dialog.vbs " + chr(34) + "Message" + chr(34) + " [/T:" + chr(34) + "Title" + chr(34) + "] [/S:type] [/W:SecondsToWait]", 0, "Dialog.vbs", 4112
  WScript.Quit (-2)
end if

Set argsNamed = WScript.Arguments.Named
if argsNamed.Exists("t") then DlgTitle=argsNamed.Item("t")
if argsNamed.Exists("s") then nType=argsNamed.Item("s")
if argsNamed.Exists("w") then nSeconds=argsNamed.Item("w")

WScript.Quit (WshShell.Popup( WScript.Arguments.Unnamed(0) , nSeconds, DlgTitle, nType))


Here is an example:
ifmember.exe  administrators && (
	WScript.exe %wpipath%dialog.vbs "You are not an administrator. Log in with admin rights to use this program" /T:"WPI"
	Exit
)


It does pass on errorcodes from the dialog, so you can use it to do some decision making in the batch.
The full syntax is in the script :-)

I hope these may help you further!
Aquarius

This post has been edited by aquarius: 19 June 2006 - 06:24 AM


#17 User is offline   urie 

  • Senior Member
  • PipPipPipPip
  • Group: Members
  • Posts: 507
  • Joined: 30-July 03

Posted 19 June 2006 - 05:45 PM

Quote

with symantec all you need to do is set cmdow.exe as one of your exceptions this is saved in a file called,
SRTSEXCL.DAT but to be safe all i do is copy all .DAT files when installing SAC


REG ADD %KEY%\1001 /VE /D "Symantec Antivirus Corp v10.1.0.401" /f
REG ADD %KEY%\1001 /V 101 /D "CMD /C Start /Wait C:\Install\Symantec\Symantec_AntiVirus.msi /QB RUNLIVEUPDATE=0 REBOOT=ReallySuppress" /f
REG ADD %KEY%\1001 /V 102 /D "CMD /C COPY \"C:\Insatll\Symantec\*.DAT\" \"%ProgramFiles%\Symantec AntiVirus\" /Y" /f


:thumbup

#18 User is offline   core22 

  • Group: Members
  • Posts: 8
  • Joined: 03-June 04

Posted 12 July 2006 - 07:54 AM

I just noticed this problem too bacause I updated my install DVD so my SAV installer has the definitions current as of July 2006. Here's what I did... I just modified my RunOnceEx.cmd to run something called PreClean.cmd. PreClean.cmd ends the rtvscan.exe (display name=Symantec Antivirus) service prior to running Cleanup.cmd, so Cleanup.cmd can execute with cmdow.exe so it remains hidden. If anyone can show me how to do a NET STOP from a REG ADD in RunOnceEx.cmd, so I don't have to resort to that extra file, that would be great. Here's what I included in it...
NET STOP "Symantec Antivirus"
EXIT




This should let Cleanup.cmd run unhindered and the last few lines of Cleanup.cmd deletes cmdow.exe prior to reboot as seen here...
cmdow @ /HID
DEL "C:\Documents and Settings\Administrator\Desktop\Spybot - Search & Destroy.lnk"
DEL "C:\Documents and Settings\Default User\Start Menu\Programs\Remote Assistance.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\New Office Document.lnk"
DEL "%AllUsersProfile%\Start Menu\Open Office Document.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"
DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"
RD "C:\Documents and Settings\All Users\Start Menu\Programs\Java Web Start" /s /q
RD "C:\Documents and Settings\All Users\Start Menu\Programs\PrintMe Internet Printing" /s /q
DEL C:\addUsepmtimer.exe /s
DEL C:\agrep.exe /s
DEL C:\ATICCC.ins /s
DEL C:\devcon.exe /s
DEL C:\DPs_fnsh.cmd /s
DEL C:\fnsh_log.cmd /s
DEL C:\cmdow.exe /s
DEL C:\Windows\System32\cmdow.exe /s
DEL C:\Docume~1\AllUse~1\Desktop\MSN*.* /s
net user aspnet /delete
shutdown.exe -r -f -t 60 -c "Windows XP will restart in 1 minute..."
EXIT



I just burned the change and my laptop is building, should know in an hour or so if this worked. If so, it's a better solution than adding hacktools to the SAV exclusion list.

This post has been edited by core22: 12 July 2006 - 08:28 AM


#19 User is offline   core22 

  • Group: Members
  • Posts: 8
  • Joined: 03-June 04

Posted 12 July 2006 - 12:28 PM

OK so the method above failed...rtvscan.exe respawned and during Cleanup.cmd the virus warning pops up. I just changed to method #2, using a vb script instead. I'm calling cleanup.vbs (instead of cleanup.cmd) from runonceex.cmd, and that vb script is calling cleanup.cmd to start minimized.

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run "cleanup.cmd", 2, true


I have preclean.cmd delete cmdow.exe just prior to starting the Symantec AV install from RunOnceEx. Just using preclean.cmd without the vb script will work, but the window is not minimized and it looks "ugly". if the cleanup.vbs fails I'll just resport to keeping the window in view for the 5 or 10 seconds it takes to run cleanup.cmd.

#20 User is offline   azaze1 

  • Junior
  • Pip
  • Group: Members
  • Posts: 61
  • Joined: 20-February 05

Posted 12 July 2006 - 09:44 PM

I had this problem too and thought I'd get rid of it with a few lines using AutoIT

It works beautifully. Just compile this to an exe, and make it the first thing you run via CMDLINES.TXT (if you have batch scripts running before GUI setup is complete). ALSO, make it the first thing run via GuiRunOnce if that is how you start WPI (most do).

While 1 < 10
  WinWait("C:\WINDOWS\")
  WinSetState("C:\WINDOWS\system32\cmd.exe", "", @SW_HIDE)
  WinSetState("C:\WINDOWS\SYSTEM32\cmd.exe", "", @SW_HIDE)
WEnd


IMPORTANT NOTE: You must launch it via a batch script itself so that the install doesn't hang waiting for the autoit script to terminate. Because this is going to run until reboot (or until forcably stopped) you need to launch the exe in a batch with something like

@ECHO OFF
start %SYSTEMDRIVE%\INSTEMP\CMDHIDE.EXE
EXIT


Share this topic:


  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy