中国DOS联盟论坛

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-24 19:10
47,812 topics / 349,917 posts / today 0 new / 48,274 members
DOS批处理 & 脚本技术(批处理室) » Trying out a new encryption idea too:
Printable Version  3,162 / 36
Floor1 bat-zw Posted 2008-06-22 20:40
金牌会员 Posts 1,276 Credits 3,105
First, change the form a little:
Floor2 mbllokmb Posted 2008-06-22 20:45
初级用户 Posts 39 Credits 78
Expert!!!!
Floor3 knoppix7 Posted 2008-06-22 21:14
银牌会员 Posts 634 Credits 1,287 From cmd.exe
Using variables in place of commands
Clever... but just export the variable table...
Floor4 bat-zw Posted 2008-06-22 21:33
金牌会员 Posts 1,276 Credits 3,105
Originally posted by knoppix7 at 2008-6-22 21:14:
Using variables in place of commands
Clever... but just export the variable table...

Add password verification too (after entering it, it won't report an error, but if it's wrong it just won't run), and for now don't change the letter order:

This way even if the variables are exported, without knowing the password it still won't work, hehe.

[ Last edited by zw19750516 on 2008-6-22 at 09:36 PM ]
Floor5 pusofalse Posted 2008-06-22 22:30
银牌会员 Posts 646 Credits 1,604
a b c z e q q h...
The password isn't absolute... Spend a little time and you can come up with several passwords~
Floor6 HAT Posted 2008-06-22 22:35
版主 Posts 5,017 Credits 9,023
If a wrong password happens to get combined into commands like del or rd, that'd be depressing, hehe.
Floor7 pusofalse Posted 2008-06-22 22:41
银牌会员 Posts 646 Credits 1,604
Feels like this thread is good for helping newbies understand what variable expansion is~
Floor8 bat-zw Posted 2008-06-22 22:43
金牌会员 Posts 1,276 Credits 3,105
Originally posted by HAT at 2008-6-22 22:35:
If a wrong password happens to get combined into commands like del or rd, that'd be depressing, hehe.

Haha, yes, looking at it this way, even brute-force cracking won't do.
Floor9 bat-zw Posted 2008-06-22 22:58
金牌会员 Posts 1,276 Credits 3,105
Originally posted by pusofalse at 2008-6-22 22:30:
a b c z e q q h...
The password isn't absolute... Spend a little time and you can come up with several passwords~

What if my password were like this: a 0 z # c 4 + q - ....................x @. Then I think the password would definitely be absolute, and basically impossible to solve. Hehe, I thought of this idea today while lying on the bed. It should count as original; at least nobody on cn-dos has brought it up before.
Floor10 pusofalse Posted 2008-06-22 23:30
银牌会员 Posts 646 Credits 1,604
Looking at the senior member's code, the letter z isn't used, so z can be removed...
a b c are all present, so the first three letters have to be a b c
d isn't used either, so the fourth position can be any letter, number, or Chinese character~
e has to be in the fifth position... and so on...
From this we can infer it...

[ Last edited by pusofalse on 2008-6-22 at 11:34 PM ]
Floor11 pusofalse Posted 2008-06-23 00:13
银牌会员 Posts 646 Credits 1,604


If each position can only be changed once, then there can be 19 passwords...
If it can be changed multiple times, then there can be countless passwords~
You just have to make sure of the positions...

[ Last edited by pusofalse on 2008-6-23 at 12:30 AM ]
Floor12 bat-zw Posted 2008-06-23 00:27
金牌会员 Posts 1,276 Credits 3,105
Originally posted by pusofalse at 2008-6-23 00:13:


If each position can only be changed once, then there can be 14 passwords...
If it can be changed multiple times, there can ...

Come on, I can scramble the order and add useless characters into the password, then modify the batch file myself according to the password — that's my idea. For example: when password code is b a c........, then every a in the batch file is written as !_2!; when password code is ..........................s g a(the 30th position), then every a in the batch file is written as !_30!
Floor13 pusofalse Posted 2008-06-23 00:37
银牌会员 Posts 646 Credits 1,604
Originally posted by zw19750516 at 2008-6-23 12:27 AM:

Come on, I can scramble the order and add useless characters into the password, then modify the batch file myself according to the password — that's my idea. For example: when password code is b a c........, then every a in the batch file is written as ...


Oh~ so that's how it is, you still have to modify the batch file too?~ In that case it really would be hard to crack... what if you forget it yourself, ^_^
Floor14 bat-zw Posted 2008-06-23 00:54
金牌会员 Posts 1,276 Credits 3,105
Originally posted by pusofalse at 2008-6-23 00:37:


Oh~ so that's how it is, you still have to modify the batch file too?~ In that case it really would be hard to crack... what if you forget it yourself, ^_^

Just write yourself a ciphertext comparison table, or use an encryption batch file to encrypt things in bulk. Anyway, there are plenty of ways — the key is your way of thinking.
ps: if it's encrypted like this, then no matter how much someone inserts echo into the batch file, it's useless, because first code has to be assigned the correct value before any encrypted command can run.

[ Last edited by zw19750516 on 2008-6-23 at 12:57 AM ]
Floor15 PPdos Posted 2008-06-23 08:01
高级用户 Posts 268 Credits 783
The idea of using variables to replace commands is often seen in batch virus applications. What is used here is not a "password" but "ciphertext". The biggest drawback of ciphertext is that the longer the program, the easier the ciphertext is to crack, because some commands will appear repeatedly, and all appear at the beginning of lines.
1 2 3  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023