Recently, a friend of mine bought a new computer. I went to take a look and found that there was a Ghost in his computer that uses a bat to restore the system, and there were some things I couldn't understand.
The effect is that when you run One - Click Backup.bat, the computer will automatically restart, enter the DOS toolbox, and run the bf.bat file. (We all know that the content of this bf.bat file is the Ghost command.)
The problem is, how can it automatically run this batch file after restarting?
Now, the content of One - Click Backup.bat is posted here. Please help take a look.
@ color 9F
@ ECHO OFF
@ ECHO.
@ ECHO.
@ ECHO ┏━━━━━━━━━━━━━━━━━━━━━━┓
@ ECHO ┃ ┃
@ ECHO ┃ This command will make the system automatically restart and enter DOS to use GHOST to back up the C drive, and save it as d:\GHOST\WINXPSP2.gho. ┃
@ ECHO ┃ The target disk format can be either FAT32 or NTFS. ┃
@ ECHO ┃ ┃
@ ECHO ┃ If you continue, it will restart immediately. Otherwise, please close this window. ┃
@ ECHO ┃ ┃
@ ECHO ┗━━━━━━━━━━━━━━━━━━━━━━┛
@ ECHO.
@ ECHO.
PAUSE
C:\Ghost\replaced\boot2.exe
C:\Ghost\replaced\AUTOEXEC - bf.exe
md d:\Ghost
copy ghost.exe d:\Ghost /y
copy ghost.ini d:\Ghost /y
copy Ghost Image Browser v8.3.exe d:\Ghost /y
copy Do Not Delete This Folder.txt d:\Ghost /y
copy oeminfo.ini c:\windows\system32 /y
copy oemlogo.bmp c:\windows\system32 /y
c:\Ghost\QuickReboot.exe
===============================================
The file inside is for modifying the BOOT.INI file. I have seen it.
C:\Ghost\replaced\boot2.exe
This is the one that runs bf.bat.
C:\Ghost\replaced\AUTOEXEC - bf.exe
The content of bf.bat is as follows.
del c:\autoexec.bat
c:\ghost\attrib.exe -a -s -h c:\boot.ini
copy C:\Ghost\original\boot.ini c:\ /y
c:\ghost\attrib.exe +a +s +h c:\boot.ini
Ghost.exe -clone,mode=pdump,src=1:1,dst=1:2\Ghost\winxpsp2.gho -z3 -sure -rb
There are also some other exe files. Only one or two I don't know what they are for. The others are self - extracting files made with winrar. If needed, the content can also be posted here.
[ Last edited by 26933062 on 2007 - 5 - 29 at 01:29 AM ]
The effect is that when you run One - Click Backup.bat, the computer will automatically restart, enter the DOS toolbox, and run the bf.bat file. (We all know that the content of this bf.bat file is the Ghost command.)
The problem is, how can it automatically run this batch file after restarting?
Now, the content of One - Click Backup.bat is posted here. Please help take a look.
@ color 9F
@ ECHO OFF
@ ECHO.
@ ECHO.
@ ECHO ┏━━━━━━━━━━━━━━━━━━━━━━┓
@ ECHO ┃ ┃
@ ECHO ┃ This command will make the system automatically restart and enter DOS to use GHOST to back up the C drive, and save it as d:\GHOST\WINXPSP2.gho. ┃
@ ECHO ┃ The target disk format can be either FAT32 or NTFS. ┃
@ ECHO ┃ ┃
@ ECHO ┃ If you continue, it will restart immediately. Otherwise, please close this window. ┃
@ ECHO ┃ ┃
@ ECHO ┗━━━━━━━━━━━━━━━━━━━━━━┛
@ ECHO.
@ ECHO.
PAUSE
C:\Ghost\replaced\boot2.exe
C:\Ghost\replaced\AUTOEXEC - bf.exe
md d:\Ghost
copy ghost.exe d:\Ghost /y
copy ghost.ini d:\Ghost /y
copy Ghost Image Browser v8.3.exe d:\Ghost /y
copy Do Not Delete This Folder.txt d:\Ghost /y
copy oeminfo.ini c:\windows\system32 /y
copy oemlogo.bmp c:\windows\system32 /y
c:\Ghost\QuickReboot.exe
===============================================
The file inside is for modifying the BOOT.INI file. I have seen it.
C:\Ghost\replaced\boot2.exe
This is the one that runs bf.bat.
C:\Ghost\replaced\AUTOEXEC - bf.exe
The content of bf.bat is as follows.
del c:\autoexec.bat
c:\ghost\attrib.exe -a -s -h c:\boot.ini
copy C:\Ghost\original\boot.ini c:\ /y
c:\ghost\attrib.exe +a +s +h c:\boot.ini
Ghost.exe -clone,mode=pdump,src=1:1,dst=1:2\Ghost\winxpsp2.gho -z3 -sure -rb
There are also some other exe files. Only one or two I don't know what they are for. The others are self - extracting files made with winrar. If needed, the content can also be posted here.
[ Last edited by 26933062 on 2007 - 5 - 29 at 01:29 AM ]


