![]() |
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-09-23 05:24 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » [Original] [Discussion] Non-compiled Batch Processing Encryption Scheme and Code |
| Printable Version 118,439 / 364 |
| Floor106 chenall | Posted 2006-11-22 03:09 |
| 银牌会员 Posts 469 Credits 1,276 From 福建泉州 | |
|
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) |
|
| Floor107 afeichai | Posted 2006-11-22 12:29 |
| 初级用户 Posts 78 Credits 171 | |
|
I came here from Wuyou Zhidao. I'm a beginner, just learning.
|
|
| Floor108 hxuan999 | Posted 2006-11-23 04:48 |
| 中级用户 Posts 161 Credits 337 | |
|
Just have to study and learn.
|
|
| Floor109 redtek | Posted 2006-11-25 03:12 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Appreciate it~~
Learning such wonderful content with brother hxuan999~ : ) |
|
| Floor110 tao0610 | Posted 2006-11-25 03:34 |
| 高级用户 Posts 218 Credits 579 | |
|
Enjoy the spirit of water pouring together!
|
|
| Floor111 lxq73061 | Posted 2006-11-25 04:07 |
| 初级用户 Posts 17 Credits 38 | |
|
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 ] |
|
| Floor112 echo | Posted 2006-11-29 03:09 |
| 初级用户 Posts 69 Credits 148 | |
Originally posted by lxq73061 at 2006-11-24 03:07 PM: Give you a thumbs up, give you a lung! |
|
| Floor113 echo | Posted 2006-11-29 03:14 |
| 初级用户 Posts 69 Credits 148 | |
|
再顶你一下,真是爱死你了!!!
来,亲一个!:lol: |
|
| Floor114 eech | Posted 2006-12-01 02:00 |
| 高级用户 Posts 346 Credits 906 | |
|
Got a great thing from the LZ. It's enough for beginners, heh heh
|
|
| Floor115 HUNRYBECKY | Posted 2006-12-03 04:31 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
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. |
|
| Floor116 lxq73061 | Posted 2006-12-03 12:48 |
| 初级用户 Posts 17 Credits 38 | |
|
Finally, batch processing has a shortcoming. When it runs, it reads all the content in the script into memory. Hehe...
|
|
| Floor117 HUNRYBECKY | Posted 2006-12-04 21:50 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
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.
|
|
| Floor118 knight1006 | Posted 2006-12-05 03:52 |
| 初级用户 Posts 16 Credits 29 | |
|
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
|
|
| Floor119 scriptor | Posted 2006-12-22 14:18 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
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]] |
|
| Floor120 tao0610 | Posted 2006-12-22 14:33 |
| 高级用户 Posts 218 Credits 579 | |
Originally posted by HUNRYBECKY at 2006-12-4 08:50 AM: The ms ExeScript is also adding a layer of shell. |
|
| Prev 1 … 5 6 7 8 9 10 11 … 25 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |