![]() |
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-08-11 16:47 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Code for batch input password without displaying characters |
| Printable Version 23,428 / 64 |
| Floor1 electronixtar | Posted 2007-01-17 10:45 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Using set /p to input the password directly displays the characters, which doesn't look good. So I found this code on USENET, tested it under Vista, and Herbert Kleebauer is really awesome. [ Last edited by electronixtar on 2007-1-17 at 11:42 AM ] |
|
| Floor2 lxmxn | Posted 2007-01-17 10:55 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Indeed amazing, but during testing, the displayed password had an extra space compared to what I actually entered. I don't know why. It should be related to that in.com program. |
|
| Floor3 electronixtar | Posted 2007-01-17 11:29 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Such small mistakes are not a big deal~~ Hehe
|
|
| Floor4 chainliq | Posted 2007-01-17 11:30 |
| 高级用户 Posts 244 Credits 635 From 广西贵港 | |
|
Hehe, this might need to be used. The method of entering the password in ftp under CMD should be the same, right~
|
|
| Floor5 zh159 | Posted 2007-01-17 11:32 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
It's not a problem with in.com, but there is an extra space after the line "for /f "tokens=*" %%i in ('in.com') do set password=%%i " ^_^
|
|
| Floor6 lxmxn | Posted 2007-01-17 11:34 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Hehe, didn't look carefully. |
|
| Floor7 zh159 | Posted 2007-01-17 11:39 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
PS: Not support Chinese display, but you can add chcp 936>nul later to display Chinese
[ Last edited by zh159 on 2007-1-16 at 10:43 PM ] |
|
| Floor8 electronixtar | Posted 2007-01-17 11:43 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Modified, heh heh
This is the case when writing assembly in batch processing, heh heh |
|
| Floor9 pengfei | Posted 2007-01-17 13:13 |
| 银牌会员 Posts 485 Credits 1,218 From 湖南.娄底 | |
|
hP1X500Pf3/f1/5++u5x
High, really high. I don't know how this com can achieve input with just this line of code. If it weren't for the fact that the binary code of this simple character is machine language that receives input from the input device (keyboard) until the enter key is pressed. Unfortunately, such an in.com is a 16-bit program and does not support Chinese display. Fortunately, the willsort moderator (although willsort has left, he is still a moderator of the alliance...) has an original post that enables 16-bit programs to support Chinese display, using graftabl.exe. Finally found willsort's that post, Chinese in the command line. http://www.cn-dos.net/forum/viewthread.php?tid=20682&fpage=1 [ Last edited by pengfei on 2007-1-17 at 01:17 PM ] |
|
| Floor10 kernelv | Posted 2007-01-17 14:00 |
| 初级用户 Posts 24 Credits 47 | |
|
Really want to know how this big shot got the string "hP1X500Pf3/f1/5++u5x", and after generating a .com file, it can still execute. Recently, when browsing the forum, I seem to have seen a showwin.com. I wonder if it's from the same author. What's the principle here? Which friend can come out and explain it?
[ Last edited by kernelv on 2007-1-17 at 01:06 AM ] |
|
| Floor11 zh159 | Posted 2007-01-17 15:10 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
Originally posted by pengfei at 2007-1-17 00:13: Cool!!! |
|
| Floor12 redtek | Posted 2007-01-17 21:49 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Brother electronixtar has taken batch processing applications to a new level~ :)))))
Super top!!! |
|
| Floor13 scriptor | Posted 2007-01-17 23:03 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
That in.com file can be opened with Notepad
I've already seen it long ago But I don't know the principle, it can do not display |
|
| Floor14 scriptor | Posted 2007-01-17 23:09 |
| 银牌会员 Posts 555 Credits 1,187 | |
|
And changing in.com to in.exe is also okay
|
|
| Floor15 electronixtar | Posted 2007-01-18 00:14 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
Of course it's the same author, the German expert Herbert Kleebauer |
|
| 1 2 3 4 … 5 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |