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-06-21 07:48
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] [Discussion] Non-compiled Batch Processing Encryption Scheme and Code DigestI View 110,343 Replies 364
Floor 106 Posted 2006-11-22 03:09 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
I will upload the encryption and decryption batch scripts I use. Everyone can give it a try.
Simple interface.
Using DEBUG.
Encrypt.cmd just adds a few control characters in front of the processed file, without adding any other information.
Decrypt.cmd modifies those few control characters that were added for encryption above to complete the decryption operation.
Just run it, then drag the file that needs to be operated onto the running window.
Anyone who is interested can improve it.
Attachments
批处理加密.rar (417 bytes, Credits to download 1 pts, Downloads: 285)
QQ:366840202
http://chenall.net
Floor 107 Posted 2006-11-22 12:29 ·  中国 陕西 安康 电信
初级用户
★★
Credits 171
Posts 78
Joined 2006-11-22 11:26
19-year member
UID 71373
Gender Male
Status Offline
I came here from Wuyou Zhidao. I'm a beginner, just learning.
Floor 108 Posted 2006-11-23 04:48
中级用户
★★
DOS之日
Credits 337
Posts 161
Joined 2006-11-04 05:27
19-year member
UID 69523
Gender Male
Status Offline
Just have to study and learn.
for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul
Floor 109 Posted 2006-11-25 03:12 ·  中国 北京 联通
金牌会员
★★★★
Credits 2,902
Posts 1,147
Joined 2006-09-21 12:00
19-year member
UID 63324
Gender Male
Status Offline
Appreciate it~~
Learning such wonderful content with brother hxuan999~ : )
    Redtek,一个永远在网上流浪的人……

_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._
Floor 110 Posted 2006-11-25 03:34 ·  中国 北京 朝阳区 联通
高级用户
★★
朦胧的世界
Credits 579
Posts 218
Joined 2006-10-24 04:29
19-year member
UID 67972
Status Offline
Enjoy the spirit of water pouring together!

认识自己,降伏自己,改变自己
,才能改变别人!
Floor 111 Posted 2006-11-25 04:07 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 38
Posts 17
Joined 2006-10-12 01:25
19-year member
UID 65383
Status Offline
My simplest method (even beginners can do it)

Use winrar to make a self-extracting package of the batch file. The extraction method is "temporary folder" (can also be specified as a hidden path). The silent mode is "completely hidden". The overwrite mode is "overwrite all files".

You can also add a password, but you need to enter the correct password to run it when it's executed. Then enter the name of this batch file after extraction.

For example, the batch file test.bat. After compression, a test.exe executable file will be generated. Now it can be used. But you can still see it's a winrar compressed file when you right-click on the file. I can also change its suffix to.com or.bat or.cmd, etc. Then open it with notepad and it's all garbled. They all think it's encrypted by the method above.

[ Last edited by lxq73061 on 2006-11-25 at 04:09 AM ]
Floor 112 Posted 2006-11-29 03:09 ·  中国 上海 静安区 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
Originally posted by lxq73061 at 2006-11-24 03:07 PM:
My simplest method (even beginners can do it)
Make the batch file into a self-extracting archive with WinRAR, set the extraction method to "temporary folder" (or can specify a hidden path), silent mode ...

Give you a thumbs up, give you a lung!
Floor 113 Posted 2006-11-29 03:14 ·  中国 上海 静安区 电信
初级用户
★★
Credits 148
Posts 69
Joined 2006-11-23 23:04
19-year member
UID 71504
Gender Male
Status Offline
再顶你一下,真是爱死你了!!!

来,亲一个!:lol:
Floor 114 Posted 2006-12-01 02:00 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 906
Posts 346
Joined 2006-07-10 09:58
19-year member
UID 58334
Gender Male
Status Offline
Got a great thing from the LZ. It's enough for beginners, heh heh
Floor 115 Posted 2006-12-03 04:31 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
All the encryption methods mentioned above can have their source code viewed using an editor or other tools. As for BAT batch processing encryption, personally, I think of multi - layer encryption:
1. First, use the method of "BAT encryption tool" to encrypt the BAT, turning it into garbled code.
2. Then use the BAT TO EXE or COM tool for conversion.
3. Then use a packing tool to add a layer of shell to the converted EXE or COM to prevent decompilation. The strongest one is from Lao Wang in Beijing, and it is recommended to use it.
4. Finally, use the method mentioned above to handle it with WINRAR.

After doing so many works, I think no one can decompile the source code of the BAT file. I encrypt it like this. Currently, I mainly provide environment support for ACCESS program developers to compile ACCESS green versions. I can't write other programs, only some simple batch processing programs, and the batch processing encryption adopts a collection of several methods.
Floor 116 Posted 2006-12-03 12:48 ·  中国 广东 深圳 电信
初级用户
Credits 38
Posts 17
Joined 2006-10-12 01:25
19-year member
UID 65383
Status Offline
Finally, batch processing has a shortcoming. When it runs, it reads all the content in the script into memory. Hehe...
Floor 117 Posted 2006-12-04 21:50 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
QuickBFC.EXE encryption really doesn't make much sense. It just adds a layer to the BAT. When running, it automatically decompresses to the temporary directory, which is a bit like a self-executable WINRAR compressed package. I recommend the ExeScript software, which can realize the real BAT to EXE file conversion.
Floor 118 Posted 2006-12-05 03:52 ·  中国 江苏 苏州 电信
初级用户
Credits 29
Posts 16
Joined 2005-11-15 16:39
20-year member
UID 45306
Status Offline
The encryption methods provided by the brothers above, I tried them, and the strength is not high, and the original code can be seen with WINRAR
Floor 119 Posted 2006-12-22 14:18 ·  中国 北京 中国科学院研究生院
银牌会员
★★★
Credits 1,187
Posts 555
Joined 2006-12-21 07:35
19-year member
UID 74129
Gender Male
Status Offline
This provides a solution to a technical problem that has troubled me for a long time,

Please give support below.

[[i] Last edited by scriptor on 2006-12-22 at 01:19 AM [/i]]
Floor 120 Posted 2006-12-22 14:33 ·  中国 北京 朝阳区 联通
高级用户
★★
朦胧的世界
Credits 579
Posts 218
Joined 2006-10-24 04:29
19-year member
UID 67972
Status Offline
Originally posted by HUNRYBECKY at 2006-12-4 08:50 AM:
The encryption of QuickBFC.EXE is indeed not meaningful. It just adds a layer of disguise to the BAT. When running, it automatically decompresses to the temporary directory, which is a bit like a self-executable WINRAR compressed package. I recommend the ExeScript software to everyone...


The ms ExeScript is also adding a layer of shell.

认识自己,降伏自己,改变自己
,才能改变别人!
‹ Prev 1 6 7 8 9 10 25 Next ›
Forum Jump: