|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
『楼 主』:
【分享】rar”编译“bat文件为exe文件
使用 LLM 解释/回答一下
其实很早就用这个方法了,(这个比quickbfc.exe软件好多了)我想某些人也一样,就是没和大家分享。
最近把自己能知道的好东西全给出放,直到”一无所有“。(其实这些都在我签名的 cmd学习里可以全部找到)
1,右键添加到压缩文件,
2,创建自解压格式压缩文件,
3,高级,
4,自解压选项,
5,【解压路径处填】%tmp%,(也可以填其他绝对路径)
6,【在绝对路径,保存与恢复路径处打上勾】,
7【解压后运行处填】你要运行的批处理文件名,
8,模式,在全部隐藏,覆盖所有文件处打上勾,
(你若不在乎图标下面的可以省略)
9,文本和图标,从文件加载自解压文件和图标处添加将要加载的ico图标绝对路径。
10,如果你要加密,在高级选项处点设置密码,这个加了密后 第一次只能是暴力破解了,谁也别想在临时路径处找到源代码,,,
------------------------------------------------------------------------------------------------------------
再来个小工具(用汇编写的)bat2exec,将bat编译成com可执行文件。对简单的代码这个工具还行。
下载:http://upload.cn-dos.net/img/342.rar
Last edited by plp626 on 2008-4-29 at 11:01 PM ]
In fact, I have used this method for a long time. (This is much better than the quickbfc.exe software) I think some people are the same, just didn't share it with everyone.
Recently, I have given all the good things I can know until "nothing is left". (In fact, these can all be found in the cmd learning in my signature)
1. Right-click to add to the compressed file,
2. Create a self-extracting compressed file format,
3. Advanced,
4. Self-extracting options,
5. %tmp%, (can also fill in other absolute paths)
6. ,
7. ,
8. Mode, check the boxes at all hidden, overwrite all files,
(If you don't care about the one below the icon, it can be omitted)
9. Text and icon, add the absolute path of the icon to be loaded from the file to load the self-extracting file and icon.
10. If you want to encrypt, click set password in the advanced options. After this is encrypted, the first time it can only be brute-forced. No one can find the source code in the temporary path...
------------------------------------------------------------------------------------------------------------
Here is another small tool (written in assembly) bat2exec, which compiles bat into a com executable file. This tool is okay for simple code.
Download:http://upload.cn-dos.net/img/342.rar
Last edited by plp626 on 2008-4-29 at 11:01 PM ]
|

山外有山,人外有人;低调做人,努力做事。
进入网盘(各种工具)~~ 空间~~cmd学习 |
|
2008-4-28 19:18 |
|
|
s11ss
银牌会员
    
积分 2098
发帖 566
注册 2007-9-11
状态 离线
|
|
2008-4-28 19:20 |
|
|
abcd
银牌会员
    
积分 1436
发帖 739
注册 2007-10-11
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
最近把自己能知道的好东西全给出放,直到”一无所有“
能把你银行密码放出来吗?
呵呵,玩笑一下。
Recently, I've given away all the good things I know until "nothing is left"
Can you release your bank password?
Hehe, just kidding.
|
|
2008-4-28 19:40 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by plp626 at 2008-4-28 07:45 PM:
快毕业了,工作和计算机毫不沾边,上网时间就更少了,学了东西得回报,不然有愧。。。
受人尊敬的想法与做法...........
Originally posted by plp626 at 2008-4-28 07:45 PM:
Almost graduated, the work has nothing to do with computers, and I have even less time to surf the Internet. I need to get something in return for what I've learned, otherwise I'll feel unworthy...
Respectable ideas and practices...
|
|
2008-4-28 20:38 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
右键 用WINRAR打开……
那还要搞成EXE干嘛?
Right-click and open with WINRAR...
Then why bother making it into an EXE?
|
|
2008-4-28 20:47 |
|
|
nipo
中级用户
  
积分 228
发帖 106
注册 2008-4-26
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by cad55 at 2008-4-28 08:38 PM:
受人尊敬的想法与做法...........
同感!
Originally posted by cad55 at 2008-4-28 08:38 PM:
Respected ideas and practices ...........
I share the same feeling!
|
|
2008-4-28 22:07 |
|
|
metoo
初级用户
 
积分 195
发帖 93
注册 2006-10-28
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
我没学p的时候就知道了。。。还有最后一步楼主没说的。。。再把那个exe后缀改成bat。。
I knew it before I learned p... And there's a last step the original poster didn't mention... Then change that exe suffix to bat.
|
|
2008-4-28 22:34 |
|
|
tireless
银牌会员
    
积分 2025
发帖 1122
注册 2007-9-5
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
Originally posted by slore at 2008-4-28 12:47 AM:
右键 用WINRAR打开……
那还要搞成EXE干嘛?
因为可以为exe披上漂亮的图标 <img src="images/smilies/face-laugh.png" align="absmiddle" border="0">
可以看看这个,直接添加注释即可,不用右键一步一步的点:
WinRAR自解压命令
Originally posted by slore at 2008-4-28 12:47 AM:
Right-click and open with WINRAR...
Then why make it an EXE?
Because you can put a beautiful icon on the EXE :)
You can take a look at this, you can directly add comments, no need to right-click step by step:
WinRAR Self-Extracting Command
|
|
2008-4-28 23:13 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
bat的图标改了嗬,主要觉得BAT没有必要做EXE。
WINRAR命令还是知道的。
The icon of bat has been changed. The main thought is that there is no need for BAT to make EXE. The WINRAR command is still known.
|
|
2008-4-28 23:22 |
|
|
qwd
初级用户
 
积分 161
发帖 56
注册 2007-10-1
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
你所说的EXE就是压缩文件吧?虽然运行后直接运行BAT
也还是会有解压到的BAT文件存在呀!
不产生解压文件多好啊!或指定到不能看到的地方也行啊!
What you call EXE is a compressed file, right? Although running it directly and then running the BAT still leaves the unzipped BAT file! It would be nice not to have unzipped files! Or specify a place that can't be seen is also okay!
|
|
2008-4-29 00:24 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by metoo at 2008-4-28 10:34 PM:
我没学p的时候就知道了。。。还有最后一步楼主没说的。。。再把那个exe后缀改成bat。。
说得对...要将EXE更改成BAT的
不然..就是有意思了.
Originally posted by metoo at 2008-4-28 10:34 PM:
I knew it before I learned p... Also, the LZ didn't mention the last step... Then change that exe suffix to bat again.
That's right... You need to change EXE to BAT
Otherwise.. it would be interesting.
|
|
2008-4-29 09:11 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
十分极其以及万分的感谢楼主的分享!!!
尽管有人100年前就知道了,但是100后的今天仍有人不知道,他们都很感激你。
也许再过100年仍有人会不知道,那时也同样会需要一个你这样的人。
并不是每个人都是从娘胎里出来就懂这些的。
楼主说快走了是什么意识?不来了?
CN-DOS是个令人尊敬的论坛,只是目前的状况让人不太满意
这里曾经活跃过很多值得大家尊敬的会员,现在仍有很多会员仍然值得尊敬
Last edited by 26933062 on 2008-4-29 at 12:39 PM ]
I am extremely, extremely, and incredibly grateful to the LZ for sharing!!!
Although some people knew about it 100 years ago, there are still people today after 100 years who don't know, and they are all grateful to you.
Maybe there will still be people who don't know after another 100 years, and there will still be a person like you then.
Not everyone understands these things from birth.
What does the LZ mean by saying he's leaving soon? Not coming anymore?
CN-DOS is a respected forum, but the current situation is not very satisfactory.
There were many members here who were worthy of everyone's respect before, and there are still many members who are worthy of respect now.
Last edited by 26933062 on 2008-4-29 at 12:39 PM ]
|

致精致简! |
|
2008-4-29 11:56 |
|
|
BWSkyer
中级用户
   我是DOS学者
积分 367
发帖 180
注册 2006-5-14 来自 重庆
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
努力学习中,我也是第一次知道BAT可以这样加密~~非常感谢你的知识分享..
Studying hard. I also found out for the first time that BAT can be encrypted like this~~ Thanks a lot for sharing your knowledge..
|

My blog:左铅右椠 上善若水
My team: 519创意团队 |
|
2008-4-29 15:51 |
|
|
ZJHJ
高级用户
   
积分 609
发帖 374
注册 2006-8-2
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
有个问题没明白,虽然这样到是成了exe,也可以指定释放路径,并且释放的是原码. exe是已经加了密,但是再rar打包查看,一样原形暴露.
用 QuickBFC.EXE 再rar打包查看,不会原形暴露.但是不可以指定释放路径.其实只要释放原码,就不会保密.
There is a problem that I don't understand. Although this has become an exe, the release path can also be specified, and what is released is the source code. The exe has been encrypted, but when viewed by RAR packing again, the original form is still exposed.
Using QuickBFC.EXE and then viewing by RAR packing, the original form will not be exposed. But the release path cannot be specified. In fact, as long as the source code is released, there will be no confidentiality.
|
|
2008-4-29 21:24 |
|
|
cad55
高级用户
   
积分 620
发帖 329
注册 2007-12-5
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by ZJHJ at 2008-4-29 09:24 PM:
有个问题没明白,虽然这样到是成了exe,也可以指定释放路径,并且释放的是原码. exe是已经加了密,但是再rar打包查看,一样原形暴露.
用 QuickBFC.EXE 再rar打 ...
是的..
用RAR.对BAT加密是不行地.
不过再将EXE.改成BAT.
会一定的加密效果.................
Originally posted by ZJHJ at 2008-4-29 09:24 PM:
There is a problem that I don't understand. Although this way it becomes an exe, and the release path can be specified, and what is released is the source code. The exe is already encrypted, but when you use RAR to pack and view it, the original form is still exposed.
Use QuickBFC.EXE to RAR pack...
Yes..
It is not possible to encrypt BAT with RAR.
But changing EXE to BAT will have a certain encryption effect.................
|
|
2008-4-29 21:39 |
|