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-01 00:26
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Today I "cracked" an encrypted batch file to play with View 14,705 Replies 62
Original Poster Posted 2006-08-27 02:50 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Yesterday in the group, ☆弦★ posted an address asking us to take a look, and it turned out to be "Batch Processing Program System Maintenance".

I registered an ID and downloaded three versions of exe files: System Maintenance wv1.4.0.0 Trial Version, System Maintenance wv1.4.1.2 Trial Version, and System Maintenance wv1.4.2.0 Official Version. Upon seeing it, I realized it was compiled with QBFC, so I thought of checking the released batch processing program in %tmp%, but it was actually a bunch of encrypted garbled code, which seemed familiar. Suddenly, I remembered the heated discussion about batch processing encryption in the forum a while ago . Batch processing encrypted in this way seems irreversible and cannot be restored to its original form. But the author's instruction file is too alluring: system garbage cleaning, killing malicious programs, finding suspicious DLL call programs, searching for file or virus paths, forcibly terminating suspicious programs, deleting hidden attribute viruses... It can even get rid of viruses, which is really powerful.

After fumbling for a long time, I finally found a way to crack it and completely restored the batch processing file. When I read the code of the official version, I couldn't help but get angry:

1. The code is almost pieced together from online content (among which there is a segment that I modified), and several segments have almost the same function. I don't know why the author put them together. Could it be that setting multiple times would make the system more secure? This detail also exposes the author's plagiarism behavior;

2. Created 1 folder in C:\WINDOWS. If the password is entered incorrectly three times, two more folders and a bunch of files will be generated. The folders are hidden + system + read-only attributes, which generates a lot of garbage and is a kind of ravaging of the user's system;

3. The official authorized version is sold for: 10 yuan RMB. - This is the most infuriating part: plagiarizing online things and actually selling them for money is too excessive.

Now I am attaching his official version for everyone to read this author's great work - if we can draw on his encryption ideas, it can be regarded as an unexpected gain, which can also be regarded as a little originality of the author.

1. Batch Processing Program System Maintenance http://www.xz0792.com/bbs/dispbbs.asp?boardID=32&ID=868&page=1
2. Non-compiled Batch Processing Encryption Scheme and Code http://www.cn-dos.net/forum/viewthread.php?tid=22254&fpage=1&highlight=%E5%8A%A0%E5%AF%86

[ Last edited by namejm on 2006-8-27 at 03:16 ]
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
txratu +2 2008-03-19 17:25
Attachments
系统维护wv1.4.2.0正式版.rar (112.87 KiB, Credits to download 1 pts, Downloads: 1091)
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 2 Posted 2006-08-27 13:06 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
Actually, this kind of cracking is very simple:
Just use a hexadecimal software like WinHex to handle it and it's done.

This batch encryption is for the script I posted earlier where "FFFE0D0A636C730D0A" is added at the beginning of the file, which is the script for encrypting files by the moderator willsort.

[ Last edited by zxcv on 2006-8-27 at 13:16 ]
Floor 3 Posted 2006-08-27 13:21 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
I directly dragged it into the garbled text viewer to make it reveal itself.

[ Last edited by namejm on 2006-8-27 at 13:24 ]
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 4 Posted 2006-08-27 14:31 ·  中国 四川 成都 电信
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Beat him and block the forum's IP

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 5 Posted 2006-09-28 10:37 ·  中国 四川 泸州 联通
高级用户
★★★
Credits 609
Posts 374
Joined 2006-08-02 22:38
19-year member
UID 59720
Status Offline
The DOS platform is a place for mutual learning, where the knowledgeable teach the unknowledgeable. I think the original poster probably posted in the wrong place.

The original poster is a bit excessive. I don't know where your stuff came from? I also downloaded and studied it, thinking it was my own? Hiding things that others don't understand, deleting them is a mistake. Modifying the registry entries is correct, but double-clicking to import the registry is wrong. What did you modify? It's a bunch of fancy stuff. Making useless detours, and also setting registry entries that don't exist at all to hide things from people, could it be your patent? As a platform for mutual learning, what's there to be unbalanced about? If you're a "expert", be more magnanimous.

The correct commands using batch processing should be:

Turn off default shares
---------------------
echo Windows Registry Editor Version 5.00 > c:\qcmrgx.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters] >> c:\qcmrgx.reg
echo "AutoShareServer"=dword:00000000 >> c:\qcmrgx.reg
echo "AutoSharewks"=dword:00000000 >> c:\qcmrgx.reg
regedit /s c:\qcmrgx.reg
del c:\qcmrgx.reg

------------------------

If you want to turn on default shares again

echo Windows Registry Editor Version 5.00 > c:\qcmrgx.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters] >> c:\qcmrgx.reg
echo "AutoShareServer"=dword:00000001 >> c:\qcmrgx.reg
echo "AutoSharewks"=dword:00000001 >> c:\qcmrgx.reg
regedit /s c:\qcmrgx.reg
del c:\qcmrgx.reg

---------------------------
Floor 6 Posted 2006-09-28 10:44 ·  中国 四川 成都 教育网
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
What else can be used to generate files besides echo?

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 7 Posted 2006-09-28 11:13 ·  中国 广东 佛山 广东睿江科技有限公司
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Originally posted by ZJHJ at 2006-9-28 10:37:
The DOS platform is a place for mutual learning, where those who know teach those who don't. I think the original poster probably posted in the wrong place.
The original poster is a bit excessive. I don't know where your thing came from? I also downloaded and studied it, thinking it was my own?
Hiding things from those who don't understand and deleting them is a mistake. Modifying the registry entries is correct, but double-clicking to import the registry is wrong. What did you modify? It's a lot of fancy stuff. Making useless detours and setting up registry entries that don't exist at all to fool people. Could it be your patent? As a platform for mutual learning, what's unbalanced? If you are a "master", be more magnanimous?

  Did I say it was my thing? Please pay attention to my wording in the top floor. Modify = write? There is no intention of arguing about copyright with others.

  As a batch processing, the code is all open source, there is no need to encrypt for money. Moreover, most of the code inside is directly copied from the Internet. Actually, it is used to make money. I accused such behavior. Is it me who is excessive or him who is excessive?

  As for saying that paragraph of code is a fancy stuff, there is no need to put the hat on my head. What I did was just add the function of judging whether the partition exists, add some comments, and slightly change some code.

  Saying that I am unbalanced, there is indeed a little bit: most of them are copied things, and actually used to exchange money, this is the first; generated N many files, and put it in the system directory, which is simply a kind of ravaging the user's system, this is the second.

  I hope you will read my analysis in the top floor again, and you will know why I accused this plagiarist. Please don't avoid the key issue of using plagiarized code to make money. You can also consider the practice of generating garbage files by the way.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 8 Posted 2006-09-28 11:33 ·  中国 湖北 武汉 电信
初级用户
Credits 118
Posts 34
Joined 2006-01-10 09:01
20-year member
UID 48727
Status Offline
A large part of that code is copied.
Floor 9 Posted 2006-09-28 22:10 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
I don't use things that are encrypted and I can't see the source code, heh, because I'm afraid
Floor 10 Posted 2006-09-29 01:58 ·  中国 湖北 荆门 电信
荣誉版主
★★★
Credits 2,013
Posts 718
Joined 2006-02-18 07:07
20-year member
UID 50550
Status Offline


Just talk about scripts, don't argue, don't bring emotions

Floor 11 Posted 2006-09-29 02:56 ·  中国 广东 深圳 罗湖区 天威有线宽带(关内)
初级用户
Credits 80
Posts 25
Joined 2006-09-15 03:01
19-year member
UID 62615
Status Offline
If this code is his own optimized work, there's nothing to say. But it looks like it's copied at first glance. For example, cleaning up garbage, system being optimized, etc. are all available online. Why sell it then?
If I give him money, heh, it feels like I've been cheated.
It's not developed by himself. But it's good to crack it and learn from it.
See if the password path is C:\WINDOWS\twscsye\PASSWORD.PWD
The password I saw is: Sichuan Hejiang QQ363693851
The password code is as follows
@ECHO Enter the initial password:
@ECHO OFF
SET /P PASSWORD=
FOR /F %%I IN (C:\WINDOWS\twscsye\PASSWORD.PWD) DO SET MY-PWD=%%I
IF "%PASSWORD%" == "%MY-PWD%" GOTO PWD0
CLS
echo Incorrect password!!!
ECHO Please correct and re-enter the initial password:
@ECHO OFF
SET /P PASSWORD=
FOR /F %%I IN (C:\WINDOWS\twscsye\PASSWORD.PWD) DO SET MY-PWD=%%I
IF "%PASSWORD%" == "%MY-PWD%" GOTO PWD0
CLS
echo Incorrect initial password!!!
ECHO You should enter the password provided to you when you purchased the program:
@ECHO OFF
Floor 12 Posted 2006-09-29 02:59 ·  中国 广东 深圳 罗湖区 天威有线宽带(关内)
初级用户
Credits 80
Posts 25
Joined 2006-09-15 03:01
19-year member
UID 62615
Status Offline
Floor 13 Posted 2006-09-29 12:44 ·  中国 河南 信阳 联通
初级用户
Credits 25
Posts 10
Joined 2006-09-12 13:28
19-year member
UID 62415
Status Offline
Hehe, this thing still costs money to buy,郁闷. Others who made better ones didn't say anything!
Floor 14 Posted 2006-10-01 02:44 ·  中国 北京 中移铁通
初级用户
Credits 28
Posts 14
Joined 2006-08-16 14:31
19-year member
UID 60645
Status Offline
Thanks for sharing! Learning
Floor 15 Posted 2006-10-01 02:55 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
20-year member
UID 58987
From 湖南.娄底
Status Offline
The script is well - written. Support. If I need to register, I still choose Super Rabbit Shareware.
1 2 3 5 Next ›
Forum Jump: