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 09:35
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Original] [Discussion] Non-compiled Batch Processing Encryption Scheme and Code DigestI View 110,358 Replies 364
Floor 46 Posted 2006-07-23 18:59 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Can we not use "ren *.jpg" ? Can we replace it with other extraordinary statements?

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>"
Floor 47 Posted 2006-07-23 19:04 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline

I don't know if I should post it, it's a bit hacker-related


For people with malicious intentions, they can bundle Trojan codes!
Floor 48 Posted 2006-07-23 20:52 ·  中国 北京 电信
初级用户
Credits 49
Posts 13
Joined 2006-07-13 11:21
19-year member
UID 58500
Status Offline
Floor 28: The brother's question is very good. After my test, the following code can also complete the "encryption" work:

%%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a
Floor 49 Posted 2006-07-23 21:30 ·  中国 湖南 娄底 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
What I mean by backdoor is an uninstall function that can also seed according to your configuration. It doesn't mean I have a backdoor.
Floor 50 Posted 2006-07-24 08:21 ·  中国 辽宁 大连 教育网
中级用户
★★
DOS之友
Credits 332
Posts 168
Joined 2005-10-06 00:00
20-year member
UID 43171
Gender Male
From 天涯
Status Offline
Not interested in hacker techniques, and that's what I think. Why do we have to encrypt bat with bat? Anyway, the encrypted one is not readable. Why not convert it to exe?
测试环境: windows xp pro sp2 高手是这样炼成的:C:\WINDOWS\Help\ntcmds.chm
Floor 51 Posted 2006-07-24 08:45 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
Originally posted by IceCrack at 2006-7-24 08:21 AM:
Not interested in hacker techniques, and also I think. Why do we have to encrypt BAT with BAT? Anyway, the encrypted one is not readable. Why not convert it to EXE?


The best way to encrypt a BAT file is to compile the BAT file into a COM or EXE file. Other encryption methods are easy to crack.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Floor 52 Posted 2006-07-25 00:39 ·  中国 北京 电信
初级用户
Credits 49
Posts 13
Joined 2006-07-13 11:21
19-year member
UID 58500
Status Offline
After my test, the following code can also complete the "encryption" work

%%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a %%a
Floor 53 Posted 2006-07-25 00:44 ·  中国 北京 电信
初级用户
Credits 49
Posts 13
Joined 2006-07-13 11:21
19-year member
UID 58500
Status Offline
Finally, I would like to thank Mr. Mu Lin Sen for popularizing my encryption method. Thank you very much for everyone's support!
Floor 54 Posted 2006-07-25 10:02 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
Hehe~ Good things are meant to be shared with everyone, right?
I wonder if Brother yuanyong630 can explain the principle of this encryption.
I'm quite curious.
Floor 55 Posted 2006-07-25 13:22 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Re pengfei:

The encryption principle of yuanyong630 was deeply analyzed by willsort in previous posts. Please see this post:

How to prevent others from viewing and modifying the content of .bat without converting it?
http://www.cn-dos.net/forum/viewthread.php?tid=21804&page=2&fpage=1
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 56 Posted 2006-07-25 13:54 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
Hehe~ After reading the code modified by brother yuanyong630 for encryption, the defect of executing the FOR command after running the batch processing is corrected, and it runs faster.
Floor 57 Posted 2006-07-26 08:50 ·  中国 北京 电信
初级用户
Credits 49
Posts 13
Joined 2006-07-13 11:21
19-year member
UID 58500
Status Offline
Thank you very much for everyone's support. If you want to talk about the principle, please see
(This is a very good principle written by the moderator willsort)
http://www.cn-dos.net/forum/viewthread.php?tid=21804&fpage=1&highlight=&page=2

Finally, write a statement for everyone

@del %0

Add it to the end of the BAT file. Of course, if the last statement is "EXIT", add it in front of "EXIT"! See what happens!
Floor 58 Posted 2006-07-26 10:08 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Originally posted by yuanyong630 at 2006-7-26 08:50:
Thanks everyone for your support. For the principle, please see
(This is a very good principle written by moderator willsort)
http://www ... %0 should refer to the batch processing itself, but directly using %0 only has the file name, and you need to add the .bat (del %0.bat) extension later to be effective
Floor 59 Posted 2006-07-26 10:10 ·  中国 北京 电信
初级用户
Credits 49
Posts 13
Joined 2006-07-13 11:21
19-year member
UID 58500
Status Offline
@del %0
That is to delete the BAT file to achieve the effect of automatically deleting itself after running once, which is sometimes used
Floor 60 Posted 2006-07-26 10:47 ·  中国 广东 深圳 天威有线宽带(关内)
初级用户
Credits 96
Posts 44
Joined 2006-06-26 17:52
19-year member
UID 57603
Gender Male
From 深圳
Status Offline
Thanks, in the learning process!!!
Forum Jump: