CMDOW.EXE Virus? Hacktool.HideWindow Hacktool.HideWindow
#1
Posted 07 June 2006 - 09:23 AM
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
Posted 07 June 2006 - 09:39 AM
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
Posted 07 June 2006 - 09:48 AM
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
Posted 07 June 2006 - 09:53 AM
#5
Posted 07 June 2006 - 02:26 PM
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..
-SteveM
#6
Posted 07 June 2006 - 02:35 PM
#7
Posted 07 June 2006 - 03:31 PM
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
i prefere to see a dos window vs. an antivirus alert.
especially when i insert my WPI DVD in other computer (friends... !)
#8
Posted 08 June 2006 - 05:53 AM
oneless, on Jun 7 2006, 04:31 PM, said:
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
Posted 08 June 2006 - 01:33 PM
#10
Posted 08 June 2006 - 01:58 PM
krawz187, on Jun 8 2006, 09:33 PM, said:
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
Posted 08 June 2006 - 02:15 PM
You people are too paranoid.
#12
Posted 08 June 2006 - 05:21 PM
#13
Posted 08 June 2006 - 06:46 PM
Crash&Burn, on Jun 8 2006, 06:21 PM, said:
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.
#14
Posted 08 June 2006 - 08:57 PM
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.
#15
Posted 09 June 2006 - 07:17 AM
#16
Posted 19 June 2006 - 06:22 AM
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
Posted 19 June 2006 - 05:45 PM
Quote
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
#18
Posted 12 July 2006 - 07:54 AM
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
Posted 12 July 2006 - 12:28 PM
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
Posted 12 July 2006 - 09:44 PM
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



Help


Back to top









