China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-08 11:23
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » 【Share】rar "compile" bat file to exe file View 3,998 Replies 26
Floor 16 Posted 2008-04-29 22:55 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Originally posted by ZJHJ at 2008-4-29 09:24 PM:
There is a problem that I don't understand. Although it has become an exe in this way, I can also specify the release path, and what is released is the original code. The exe has been encrypted, but when you RAR package and view it, the original form is still exposed.
Using QuickBFC.EXE to RAR...



RAR package and view? Since you have encrypted it, how can you view it without a password?

Most of the so-called software that compiles into exe now has to release the source code first and then run it. I have seen ones made with assembly, which do not support Chinese, and the code will also make mistakes if there are special characters.

I feel that there can't be a real so-called "compile" bat to exe software. After all, bat is interpreted and executed...

Now I will upload another one made with assembly that compiles the bat file into an executable com file. You can change the com suffix to exe.

Download: On the first floor
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 17 Posted 2008-04-30 01:08 ·  中国 广东 揭阳 联通
初级用户
Credits 65
Posts 29
Joined 2007-10-14 14:35
18-year member
UID 99717
Gender Male
Status Offline
"After encryption, the first time can only be brute-force cracking. No one can find the source code in the temporary path."

Can this be explained? I encrypted it, but after running, I can still find the source code in the temp directory.

"No one can find the source code in the temporary path"???

What does this refer to?

Hehe, I just found out this trick. If the LZ didn't say it, I think I still wouldn't know. Thanks for sharing.

Also, how to use the tool uploaded by the LZ? I downloaded it, but can't convert it.

[ Last edited by jonsonqf on 2008-4-30 at 01:11 AM ]
Floor 18 Posted 2008-05-01 07:22 ·  中国 浙江 杭州 阿里云
新手上路
Credits 8
Posts 3
Joined 2008-05-01 06:44
18-year member
UID 117445
Gender Male
Status Offline
Originally posted by jonsonqf at 2008-4-30 01:08 AM:
"This is the first time after encryption, only brute force can be used. No one can find the source code in the temporary path"

Can this be explained? I encrypted it, but after running, I can still find it in the temp directory...



Regardless of whether the RAR self-extractor is encrypted or not, after running, it will generate the decompressed file in the temp directory and execute it. This is its working mechanism. The owner's meaning is that before decompression, without knowing the password, it is impossible to obtain the source code. Only by obtaining the password can one have the right to view the source code, etc.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
jonsonqf +2 2008-05-01 11:31
Floor 19 Posted 2008-05-01 11:33 ·  中国 广东 揭阳 联通
初级用户
Credits 65
Posts 29
Joined 2007-10-14 14:35
18-year member
UID 99717
Gender Male
Status Offline
Originally posted by evezero it prompts that it's a wrong account or the password is incorrect, it will prompt that it can't log in. The system said that it's a wrong account or the password is incorrect, it will prompt that it can't log in.


Wait for your reply!

By the way, I don't know if you have used the "bat2exec, which compiles bat into a com executable file" that I downloaded and executed but couldn't convert it.
Floor 20 Posted 2008-05-01 11:41 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 49
Joined 2008-02-26 18:54
18-year member
UID 111491
Gender Male
Status Offline
Bump it, this encryption method is somewhat okay to a certain extent
Floor 21 Posted 2008-05-01 21:37 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
20-year member
UID 59720
Status Offline
I mean, you've already used RAR to generate an EXE for others to run. There's no issue with passwords. If you then package the EXE into a RAR again, see if it's the source code? It's just that the extraction path is up to you. It doesn't really play much of an encryption role, it's similar to writing to a Notepad with Unicode encoding.
Floor 22 Posted 2008-05-03 11:16 ·  中国 湖北 武汉 电信
中级用户
★★
Credits 313
Posts 162
Joined 2007-04-02 06:45
19-year member
UID 83693
Gender Male
Status Offline
-

WinRAR self-extracting command, give an example!

-
Floor 23 Posted 2008-05-04 19:39 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Originally posted by ZJHJ at 2008-5-1 09:37 PM:
I mean, you've already generated an EXE using RAR, which is for others to run. There's no issue with passwords here. If you then package the EXE into a RAR, check if it's the source code? It's just that the extraction path is determined by you. It doesn't provide much encryption at all,
similar to writing to a Notepad with Unicode encoding.


In my opinion, except for the real method of compiling a BAT into an EXE file (for example: the method of compiling a BAT into a COM executable file like the one on the first floor, but this small tool is not universal), other methods don't have absolute encryption. The purpose of me posting this thread is to tell
those newbies who are still using quickbfc to convert BATs. Since it's not really compiling into an EXE, the ready-made RAR is much more convenient than quickbfc. Doesn't the self-extracting one also support commands?
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 24 Posted 2008-05-04 21:40 ·  中国 江苏 扬州 电信
高级用户
★★★
Credits 620
Posts 329
Joined 2007-12-05 15:34
18-year member
UID 104754
Gender Male
Status Offline
Originally posted by plp626 at 2008-5-4 07:39 PM:


In my opinion, except for the method of truly compiling bat into an exe file (for example: the one in the first floor that compiles bat into a com executable file, but this small tool is not universal), there is no absolute encryption in other methods ...



The building owner is right........

It is a method. And it is an absolute method.....
Floor 25 Posted 2008-05-05 23:13 ·  中国 广东 揭阳 联通
初级用户
Credits 65
Posts 29
Joined 2007-10-14 14:35
18-year member
UID 99717
Gender Male
Status Offline
Actually, the encryption of bat is really quite fragile...
Floor 26 Posted 2008-05-06 01:18 ·  中国 河北 沧州 电信
新手上路
Credits 12
Posts 6
Joined 2008-05-06 00:24
18-year member
UID 117849
Gender Male
Status Offline
The original intention of .bat was simply to improve the efficiency of transaction processing. Why do you have to encrypt with .bat? Do you have to use a broadsword and spear to fight against Japanese invaders carrying missiles?
Floor 27 Posted 2008-05-21 15:23 ·  中国 广西 贵港 电信
新手上路
Credits 4
Posts 2
Joined 2008-05-21 12:48
18-year member
UID 119282
Gender Male
Status Offline
Hehe, I didn't know before````Now I know!
Forum Jump: