Asked by:
RootKitRevealer Won't Run

Question
-
I am logged in as administrator on a Windows 2003 SP2 workgroup server and am trying to run RootKitRevealer. I get the error "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." The SYSTEM account and administrator account all have full control permissions to the %TEMP% folder, as well as the Authenticated Users group. I'm not sure what other permissions are needed to run this software. What file, device, or path is the error alluding to? What am I missing here?
All replies
-
-
molotov:At the moment, there is no AV or security software installed. The Security Configuration Wizard was run when the NOS was installed though. The error is presented exactly as "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item." I can't figure out where the software is being blocked or denied access to system resources. I don't know what sequence of eevents has to take place for RKR to run. I do know that a temporary exe has to be created in the %TEMP% folder.
-
-
-
-
-
-
-
-
Using psexec as suggested, I get the following response:C:\>C:\Utility\psexec -sid c:\Utility\rootkitrevealer.exePsExec v1.72 - Execute processes remotely
Copyright (C) 2001-2006 Mark Russinovich
Sysinternals - www.sysinternals.com
c:\Utility\rootkitrevealer.exe started on [server name] with process ID 304.PID 304 lists rootkitrevealer.exe using 3604 K of memory but there is no UI. CPU stays at 00 so the process is not active. -
-
PID 304 lists rootkitrevealer.exe using 3604 K of memory but there is no UI. CPU stays at 00 so the process is not active.I'd expect that it's awaiting EULA acceptance, but it was executed with the -i param.
Wonder if you might try killing the currently executing rootkitrevealer.exe process, setting [HKEY_USERS\.DEFAULT\Software\Sysinternals\RootkitRevealer\EulaAccepted] (REG_DWORD) to 1, and trying again.
-
For what it is worth, I get the same behavior when I run Process Explorer (I just tried it). I suspect that PE goes through the same startup routine.Both PE and RKR extract and load a driver; it seems like your Administrator account may not be able to do this.
Perhaps, try running procexp.exe with psexec -sid as well... -
So we are not loading a driver. Starting PE with psexec does start a new process in Task Manager but there is no UI. Starting RKR with the Registry set as suggested starts a new process but it apparently terminates immediately. No rootkitrevealer process shows up in Task Manager under that PID.
-
Starting PE with psexec does start a new process in Task Manager but there is no UI.Try setting [HKEY_USERS\.DEFAULT\Software\Sysinternals\ProcessExplorer\EulaAccepted] (REG_DWORD) to 1, and running Procexp.exe again. Do you get the same behavior as with rootkitrevealer.exe?No rootkitrevealer process shows up in Task Manager under that PID.Is there an odd, random-character process name (something goofy like lxjkkvng.exe, for example) running?
I assume you will encounter a similar behavior, if you try running Process Monitor...
-
-
-
This time psexec stays in memory as psexec.exe and PSEXESVC.exe and PE is also loaded but there is no UI as last time. I had to end the process manually.With RKR, I got this:Error:1063
c:\Utility\rootkitrevealer.exe exited on [server name] with error code 0. -
Error 1063 would seem to be:ERROR_FAILED_SERVICE_CONTROLLER_CONNECT: The service process could not connect to the service controller
That would give a bit more idea about why things are acting the way they are. Are you able to successfully stop and start a service such as the Print Spooler (unless, of course, print services are critical, etc.)?
Try running PE with psexec, but specify the same credentials you used to log in as an administrator (psexec -u admin -p pass c:\path\to\procexp.exe). Any PE UI by doing this?
-
I can stop and start services such as the print spooler as admin. PE did start the UI when using the -u and -p switches. At least I have a way of running that now. RKR said that it did start with a PID under psexec with -u -p, but that PID did not show up in the Task Manager when I looked and no UI. Interesting.
-
-
-
-
-
If you exit PE, can you restart it as you normally would launch it (by double-clicking the EXE rather than using PsExec and specifying the administrator credentials)?
Using File -> Runas in PE did not work to run RKR, specifying the administrator credentials?
-
-
-
-
-
I compared a system with PE that RKR runs on and the affected system. The driver RKREVEAL150.SYS does not load on the affected system when the error is displayed. I do see the driver for PE in the DLL list under System in PE. It seems that the driver cannot be created in the %WINNT%\System32\Drivers folder. Is there anything that has to take place between the KR exe running and prior to that driver being created?
-
-
I played around with PM yesterday and this morning to see if I could learn any more. I have not come up with anything useful. When I start RKR, it seems to go through four iterations of the same processes, all successful according to PM. A snippet of the processes from PM are as follows:"Time of Day","Process Name","PID","Operation","Path","Result","Detail"
"09:14:36.8829340","Procmon.exe","1832","IRP_MJ_QUERY_INFORMATION","C:\Utility\RootkitRevealer.exe","SUCCESS","Type: QueryNameInformationFile, Name: \Utility\RootkitRevealer.exe"
"09:14:36.9186007","Procmon.exe","1832","IRP_MJ_QUERY_INFORMATION","C:\Utility\RootkitRevealer.exe","SUCCESS","Type: QueryNameInformationFile, Name: \Utility\RootkitRevealer.exe:Zone.Identifier"
"09:14:38.7006080","Explorer.EXE","3896","FASTIO_NETWORK_QUERY_OPEN","C:\Utility\RootkitRevealer.exe","SUCCESS","CreationTime: 11-01-2006 12:07:06, LastAccessTime: 02-05-2009 09:14:32, LastWriteTime: 11-01-2006 12:07:06, ChangeTime: 02-05-2009 09:12:52, AllocationSize: 335,872, EndOfFile: 334,720, FileAttributes: N"
"09:14:38.7008094","Explorer.EXE","3896","IRP_MJ_CREATE","C:\Utility\RootkitRevealer.exe","SUCCESS","Desired Access: Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened"
"09:14:38.7008659","Explorer.EXE","3896","FASTIO_ACQUIRE_FOR_SECTION_SYNCHRONIZATION","C:\Utility\RootkitRevealer.exe","SUCCESS","SyncType: SyncTypeCreateSection, PageProtection: PAGE_EXECUTE"
"09:14:38.7008818","Explorer.EXE","3896","FASTIO_QUERY_INFORMATION","C:\Utility\RootkitRevealer.exe","SUCCESS","Type: QueryStandardInformationFile, AllocationSize: 335,872, EndOfFile: 334,720, NumberOfLinks: 1, DeletePending: False, Directory: False"
"09:14:38.7008962","Explorer.EXE","3896","FASTIO_RELEASE_FOR_SECTION_SYNCHRONIZATION","C:\Utility\RootkitRevealer.exe","SUCCESS",""
"09:14:38.7009106","Explorer.EXE","3896","FASTIO_ACQUIRE_FOR_SECTION_SYNCHRONIZATION","C:\Utility\RootkitRevealer.exe","SUCCESS","SyncType: SyncTypeOther"
"09:14:38.7009225","Explorer.EXE","3896","FASTIO_RELEASE_FOR_SECTION_SYNCHRONIZATION","C:\Utility\RootkitRevealer.exe","SUCCESS",""
"09:14:38.7009912","Explorer.EXE","3896","IRP_MJ_CLEANUP","C:\Utility\RootkitRevealer.exe","SUCCESS",""
"09:14:38.7010135","Explorer.EXE","3896","IRP_MJ_CLOSE","C:\Utility\RootkitRevealer.exe","SUCCESS",""All of this will repeat three more times from the third timestamp to the last one. There are no failures or access denied errors that I can see that are associated with trying to start RKR. I would have expected to see some sort of access denied or something when trying to create RKREVEAL150.SYS. It appears that we are not even getting that far.Does RKREVEAL150.SYS actually get created in %WINNT%\System32\Drivers\? I ask because in running PE, a driver, PROCEXP113.sys is created with that path, as indicated in PE. However, no such file can be found in that path. Is this a virtual driver? -
What filter were you using in Procmon? Recall that RootkitRevealer.exe creates and starts a temporary, randomly named service, which will load the driver when started.Does RKREVEAL150.SYS actually get created in %WINNT%\System32\Drivers\?Yes.However, no such file can be found in that path.Many Sysinternals utilities use the technique of extracting the driver file to disk, loading the driver, and deleting the driver file after the driver is loaded.
-
-
-
I should have clarified that the PM output above of filtered from an unfiltered capture. I did not use any precaputure filters in any PM session.I tried again and I did not find any services.exe entry in PM under Process Name or under Path after RKR was started.
-
If those are all the events attributable to rootkitrevealer.exe, it seems that rootkitrevealer.exe is not even able to create the randomly-named program file that it will launch as a service...
You're still getting the "Windows cannot access the specified device, path, or file." message? -
-
-
-
Can you try profiling execution of rootkitrevealer.exe with Dependency Walker? Open the executable in DW, choose Profile->Start Profiling, check all boxes, and click OK. Then save the .DWI file, ZIP it, and upload it somewhere. Provide the link to the ZIP file; you may wish to password-protect the ZIP file, and privately share the password with those you choose to allow to examine the contents.
-
I had to run Depends the same way as PE through psexec. I did get an error during profiling that "Rootkit Revealer must be run from the console". I don't know if this is to be expected.I have a .dwi file for RKR as requested available via FTP on our server. Please contact me through terminus@kubotekusa.com for access.
-
-
-
-
-
In the last session of Depends that the last .dwi file came from, I got no errors and the RKR interface opened. I was able to run it. It found nothing, thankfully.I logged into the server console today and I can run RKR, PE, PM, but not Depends. However PE, PM, and RKR run sometimes without getting the error, sometimes fails with the error. This is really baffling. I can't run RKR and Depends at all from remote desktop without the error.I tried installing McAfee VirusScan 8 logged into the console, but it would not start without the same error. However, it will run from within Depends while profiling. Again, baffling.
-
And there are still no messages logged to the event logs? If you are (now??) consistently unable to run depends.exe, can you run Procmon and set the filter to include activity related to depends.exe (Process Name is depends.exe then Include)? Any events of interest?
-
I realise this thread is dated but for anyone else who comes across this the answer can be found here: http://www.mssqltips.com/sqlservertip/1262/windows-cannot-access-the-specified-device-path-or-file-error/ If the link is dead then to fix the problem with this kind of error go to the executable, right click on it, left click on Properties, and click the button labelled Unblock. Click OK and try your application. It should now open.
-
CodeIntegrity (!!?) says the driver is not SIGNED, so it is not loaded. That simple. I am convinced that most people dealing with Microsoft have NO IDEA what they are talking about but still are very enthusiastic giving replies. Here and in all other fora. I found this BIT of information quite unexpectedly among thousands of Event Log pages. I have just played with sysinternals and it was not very helpful. It was bought by MS for how much? And it was not revised and SIGNED? Now, can ANYONE UNDERSTAND that I cannot make the cursor **hide while typing**? I feel there is someone in my machines but I find no way to close the holes. And no antivirus works either. For all that matters... THESE DID NOT GROW IN TREES, THESE ARE HUMAN MADE, THERE IS NO REAL REASON NOT MAKE ALL THIS PERFECT. Willingly.
-
-