![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 10:08 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Ask: Content of Bat file converted by Bat2exec(bat2com) |
| Printable Version 5,828 / 24 |
| Floor1 xiaojun | Posted 2004-03-19 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
How to view or revert the source file converted by Bat2exec(bat2com)?
|
|
| Floor2 Wengier | Posted 2004-03-19 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
The best way is to save the source file during conversion for future needs. As for methods like viewing with a hex editor, it's obviously much more cumbersome and less efficient.
|
|
| Floor3 xiaojun | Posted 2004-03-19 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
It's an exe called by Autoexec on a boot disk I downloaded. It's a bat converted by bat2exec. I want to see the source file to learn. Using Ultraedit to look at it, most of it is still garbled. It's compressed with Pklite, not encrypted. I don't know what method can be used to see its code clearly. Thanks.....!
|
|
| Floor4 Kinglion | Posted 2004-03-20 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
After unpacking the executable file, you can use a hexadecimal editing software to see what commands are used. For some programs, you can see all the files, but for some programs, you can't. Regarding the problem you mentioned, I'll try again.
|
|
| Floor5 Kinglion | Posted 2004-03-20 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
Can the landlord upload that file so that I can try to study it?
|
|
| Floor6 xiaojun | Posted 2004-03-21 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
I only succeeded in uploading once when I came to the forum; I'm too stupid; I couldn't find it, but went to Google and got it back again; look at the email kinglionsoft@idvweb.com, just remembered, it was compressed by Pklite1.15, and I couldn't unzip it with unpklite.
|
|
| Floor7 Kinglion | Posted 2004-03-21 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
To the LZ:
The email has been received, and I will take time to study it. Please wait for good news! By the way, to ensure that I can receive the email, please also send the email to the two email addresses I公布. Thank you for your cooperation! (注:原句中“公布”未翻译,因为不确定具体语境中“公布”对应的英文准确表达,若有更多上下文可能能更准确翻译,但按要求先保留原样并翻译其他部分) |
|
| Floor8 xiaojun | Posted 2004-03-21 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
OK, but unfortunately I can't come to the forum in a short time until the 23rd. I don't know if I can see your answer before the 23rd. Thanks...!
|
|
| Floor9 alan345 | Posted 2004-03-22 00:00 |
| 初级用户 Posts 5 Credits 126 | |
|
I also want to know the source file bat of the com converted by bat2exec to learn. Is there any software for reverse processing to restore com to bat?
|
|
| Floor10 Kinglion | Posted 2004-03-22 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
Decompiled the COM file the LZ sent. Please test under the actual running environment to see if there are any functional changes. The source program is as follows:
@echo off go top Cracked: Kinglion :TOP CLS TW :Start CLS echo ================================================================================ echo ghost Computer Backup System Function Selection Menu echo. echo 1 Backup: Backup the system data of partition c to the backup folder of drive d, with the file name c-backup.gho echo 2 Restore: Restore the system data of partition c using c-backup.gho in the backup folder of drive d (used when the system has problems) echo 3 Instructions: Instructions and precautions echo 4 Introduction: Simple introduction to Esperanto echo 5 Exit: Exit this selection menu echo. echo China Esperanto Website Green Network (http://VerdaReto.com) echo ================================================================================ CHOICE /c:12345 Please enter the number (1, 2, 3, 4, 5) to select IF ERRORLEVEL 5 GOTO Exit IF ERRORLEVEL 4 GOTO Introduction IF ERRORLEVEL 3 GOTO Instructions IF ERRORLEVEL 2 GOTO Restore IF ERRORLEVEL 1 GOTO Backup :Backup if not exist d:\backup MD d:\backup CLS echo. echo Now starting to back up the data of drive C, please be patient. echo After the backup work is completed, take out the disk in the floppy drive and restart the computer... GHOST.exe D -clone,mode=pdump,src=1:1,dst=d:\backup\c-backup.gho -z9 -sure -fx PAUSE GOTO END :Restore IF EXIST d:\backup\c-backup.gho GHOST.exe B -clone,mode=pload,src=d:\backup\c- backup.gho:1,dst=1:1 -sure -fx IF NOT EXIST d:\backup\c-backup.gho ECHO You haven't backed up drive C yet, or you have changed the file location after backup. PAUSE GOTO END :Instructions CLS ECHO Instructions ECHO. ECHO 1. After installing the basic system and necessary hardware drivers, back up partition C with this system. ECHO 2. Before backing up partition C, it is best to defragment the disk first and ensure that the remaining space of drive D is larger than the space occupied by the data of drive C. ECHO 3. Boot your computer with this disk, perform the backup in pure Dos state, and do not perform the backup in the Dos window in Windows system. You can also copy all the files of this disk to a certain directory of drive D, then shut down the system, restart the computer and switch to MS-DOS mode, and execute the vr command in the directory in Dos state. ECHO PAUSE Press any key to return to the selection menu GOTO Start :Introduction CLS ECHO Esperanto Introduction Kio Estas Esperanto ECHO Esperanto is an international auxiliary language scheme announced by Dr. L. L. Zamenhof of Poland in 1887. ECHO With the development of society, the exchange and cooperation of politics, economy, culture and science and technology among countries are increasing day by day, which urgently needs an international common language to solve the communication obstacles caused by the complexity of the world national languages. But any existing national language cannot take on this task at present. This is because on the one hand, any national language selected will cause emotional harm and de facto inequality to other nationalities; on the other hand, any national language is formed under long-term complex historical conditions, and inevitably contains many irregular and unreasonable components, bringing great difficulties to learners of other nationalities. Therefore, this international common language must be neutral, not belonging to any nationality, and simple and easy to learn, and rich in expressiveness. And Esperanto is such a language. ECHO The writing form of Esperanto adopts the Latin alphabet, and the pronunciation of the same letter in any word is the same. As long as you learn 28 letters and master the spelling rules, you can read and write any word. The vocabulary of Esperanto comes from the internationalized components in natural languages (mainly the languages belonging to the Indo-European language family). It also constitutes new words by adding prefixes, suffixes and combinations between roots. This not only enhances its word-forming ability, but also greatly reduces the basic vocabulary amount and lightens people's burden of remembering words. The grammar rules of Esperanto are formulated on the basis of the Indo-European language family, simple and clear and still rigorous. Its basic grammar rules only have 16 items. Due to the above characteristics of Esperanto, it is easier to learn than any foreign language. In the words of Esperanto, the phonetic value of each letter is always unchanged, and there is no liaison phenomenon in the sentence, thus the spoken language and listening are easy to master. Familiar with the grammar rules, master about 2000 roots and suffixes, you can communicate and talk freely, and carry on the communication without difficulty. ECHO Those interested in Esperanto can contact the All-China Esperanto Association: ECHO 100037 Beijing, No. 24, Baiwanzhuang Road, All-China Esperanto Association Telephone: (010) 68326682 ECHO Or visit the China Esperanto Website Green Network on the Internet: http://VerdaReto.com ECHO. PAUSE Press any key to return to the selection menu ECHO. :Exit :END ECHO. ECHO Take out the disk in the floppy drive and restart the computer. ECHO. ECHO If you want to re-enter the just selection menu, first enter vr, then press the Enter key. ECHO. |
|
| Floor11 Kinglion | Posted 2004-03-22 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
Please ask the owner to check. I haven't actually run this program.
|
|
| Floor12 xiaojun | Posted 2004-03-23 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
Brother Jin Shi, can you talk about the method!!! The software used, teach me to fish. When this file comes out of the DOS menu, I roughly know it's written like this. Bat is that com file, but I don't have the correct method to restore it to the file you have above. Thank you for your concern. I don't need to run it. I just want to be able to deal with it and look at the original text for learning when I encounter some functions implemented by such com, exe; after running (complex batch processing) and don't understand, heh heh. The countdown to leaving is on, I'm in a hurry, heh heh. I'm sorry, thank you again...!!!!!!!!!!!!!!!!!!!!!!
|
|
| Floor13 Kinglion | Posted 2004-03-23 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
In fact, I don't have any program to automatically restore the above batch processing program. It's just that I studied the method of compiling BAT files into COM files before. Besides, I have the source code of the BAT2EXEC program. The reason why I can restore the source code is that I reversed the operation according to the compilation principle of the BAT2EXEC program. Moreover, these are all done manually, and the specific methods will be different due to different programs. You can study the source code of the BAT2EXEC program, and I think it will be helpful to you. I will upload the source code some other day.
|
|
| Floor14 Kinglion | Posted 2004-03-23 00:00 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
By the way, if the thread starter has any good batch processing programs in the future, don't forget to send me one! Hehe!
|
|
| Floor15 xiaojun | Posted 2004-03-23 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
Certain. Thank you for your help. Goodbye...! ^_^
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |