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-22 13:03
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Code for batch input password without displaying characters View 22,851 Replies 64
Floor 16 Posted 2007-01-18 00:16 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
Pengfei's code is amazing~~~ Top~

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 17 Posted 2007-01-18 00:21 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
20-year member
UID 44210
Status Offline
The method of file generation seems to be that first write the program, and then convert the hexadecimal data of the program into characters...
Floor 18 Posted 2007-01-18 00:40 ·  中国 山西 运城 联通
银牌会员
★★★
天的白色影子
Credits 2,343
Posts 636
Joined 2004-03-06 00:00
22-year member
UID 19350
Gender Male
Status Offline
There is nothing mysterious about it.

An executable program is a binary file.

A text file is also a binary file.

Essentially, there is not much difference between them.

The particularity of the in.com program lies in that

All the code is entirely distributed within the range of displayable characters in the ASCII code table.

Of course, such a program is not obtained by chance.

But it is artificially constructed.

Many skills are needed in it.

For example, the most common interrupt call code int 21 (CD 21).

Because it is not within the range of displayable ASCII characters.

So many skills such as pushing onto the stack, popping from the stack, and increasing/decreasing code are used to construct it.

So its code segment changes dynamically.

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

Such code is called ASCODE.

Such a technology is called ASCII Assemble.

A technology that is about to disappear.

It can be imagined that constructing such code is difficult.

Only a very small amount of ASCODE circulating on the Internet is artificially constructed.

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

Because there are mature technologies that can convert any binary file into ASCODE.

Such a process is called encode.

And the execution process of ASCODE requires decode.

Collectively called codec.

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

There are more than 4 known algorithms for codec.

The more famous one should be Herbert Kleebauer's algorithm.

But it requires that the original program must have a mark like org 170H.

Because the previous file header is used to store the decode code.

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

All this information can be found in usenet.

Of course, it can also be found in google group.

Visiting Herbert Kleebauer's homepage is also a good idea.
Recent Ratings for This Post ( 5 in total) Click for details
RaterScoreTime
0401 +2 2007-01-18 12:47
redtek +11 2007-01-21 05:21
lg560852 +1 2007-02-02 12:32
hngaoshou +1 2007-06-20 20:06
regvip2008 +2 2008-01-15 17:56
Floor 19 Posted 2007-01-18 00:46 ·  中国 四川 成都 联通
铂金会员
★★★★
Credits 7,493
Posts 2,672
Joined 2005-09-02 00:00
20-year member
UID 42173
Gender Male
Status Offline
qzwqzw said, "Yes, haha~ The art of ASCODE is indeed... There are almost no places to use it except batch processing."

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 20 Posted 2007-01-18 05:32 ·  中国 北京 鹏博士BGP
新手上路
Credits 8
Posts 4
Joined 2006-10-19 02:50
19-year member
UID 66667
Status Offline
I'll go take a look, and if it's good, I'll give you a big thumbs up
Floor 21 Posted 2007-01-18 05:40 ·  中国 福建 厦门 思明区 电信
初级用户
Credits 49
Posts 20
Joined 2006-04-22 11:03
20-year member
UID 54248
Status Offline
Floor 22 Posted 2007-01-18 08:31 ·  中国 甘肃 平凉 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Floor 23 Posted 2007-01-18 08:45 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
一叶枝头,万树皆春
Credits 2,564
Posts 1,127
Joined 2006-12-25 22:57
19-year member
UID 74552
Gender Male
Status Offline
Originally posted by electronixtar at 2007-1-17 11:46 AM:
What qzwqzw said is right, haha~ ASCODE art is indeed... there are almost no places to use it except batch processing


Seeing you speak makes my stomach hurt :D
Floor 24 Posted 2007-01-21 03:54 ·  中国 湖南 娄底 新化县 电信
银牌会员
★★★
Credits 1,218
Posts 485
Joined 2006-07-21 21:24
19-year member
UID 58987
From 湖南.娄底
Status Offline
Brother qzwqzw is really well-informed. It turns out it's ASCODE. To write such code, one needs to be proficient in binary machine language and then cleverly compile binary code that can be normally displayed in ASCII code form.

Reading such posts really broadens one's horizons, heh~
业精于勤而荒于嬉,形成于思而毁于随。
Floor 25 Posted 2007-01-21 03:59 ·  中国 北京 朝阳区 联通
高级用户
★★
朦胧的世界
Credits 579
Posts 218
Joined 2006-10-24 04:29
19-year member
UID 67972
Status Offline
ASCODE is heard for the first time...

认识自己,降伏自己,改变自己
,才能改变别人!
Floor 26 Posted 2007-01-21 04:04 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
It's really powerful. Now I see there are many good things using ECHO XXXX >XXX.COM.
Floor 27 Posted 2007-01-21 10:31 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
There are so many experts under DOS in Germany, like umbpci, hdcopy, doslfn. I look up to them......
简单就是美
Floor 28 Posted 2007-01-21 22:24 ·  美国 弗吉尼亚州 华盛顿县 Microsoft
高级用户
★★
Credits 783
Posts 268
Joined 2006-12-26 17:18
19-year member
UID 74627
Gender Male
Status Offline
```
@echo off
title 出现表示 输入超时请按回车继续:
:begin
PING 127.0|set /p pwd=请输入密码:&cls>con
set /p pwd=
cls&echo 密码为:%pwd%
if "%pwd%"=="" cls&goto begin
pause>nul
```

After research, the above code can realize the hidden input of the password without generating temporary files. However, it will expose the un-entered password after exceeding the delay time. I hope experts can improve it!
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
redtek +11 2007-01-23 00:47
everest79 +4 2007-01-24 07:20
菩提本无树,明镜亦非台,本来无一物,何处惹尘埃.
Floor 29 Posted 2007-02-01 06:50 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
19-year member
UID 60532
Status Offline
Floor 30 Posted 2007-02-01 07:23 ·  中国 安徽 芜湖 电信
高级用户
★★
Credits 537
Posts 219
Joined 2006-10-31 21:08
19-year member
UID 69036
Gender Male
From 芜湖
Status Offline
It would be nice if 1 character entered shows 1 asterisk.
江湖远
碧空长
路茫茫

一个人漫无目的的奔跑,风,刺骨的冷....
Forum Jump: