![]() |
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-11-23 02:10 |
47,820 topics / 349,938 posts / today 0 new / 48,298 members |
| DOS批处理 & 脚本技术(批处理室) » [Original] Code for Batch Input Password and Displaying * - Batch Application Version |
| Printable Version 2,112 / 7 |
| Floor1 s11ss | Posted 2007-12-16 17:22 |
| 银牌会员 Posts 566 Credits 2,098 | |
|
```@echo off&setlocal&pushd %tmp% %Hide password by displaying * {s11ss 2007-12-16}%
<"%~f0" more +10|debug>nul&move t "t.com" echo The length of the password should not bigger than 32!&echo Press any key to continue...&pause>nul&cls t echo exit|cmd /kprompt d20:0 20$_q$_|debug>t for /f "skip=2 tokens=*" %%a in (t) do set t=%%a&call set t=%%t:~61,16%%&call set s=%%s%%%%t%% for /f "skip=2 tokens=2" %%a in (t) do set/a l=0x%%a&goto :t :t cls&echo The password is:&call echo.%%s:~1,%l%%% del t t.com&popd&echo.&echo Press any key to exit...&pause>nul&goto :eof e0100 BB 00 B8 8E C3 BF 00 00 BE 00 00 B4 00 CD 16 80 e0110 FC 0E 75 0E 83 FE 00 74 F2 4E 4F 4F 26 C6 05 20 e0120 EB E9 80 FC 1C 74 1C 3C 20 72 E0 26 C6 05 2A 8C e0130 C2 BB 00 00 8E C3 26 88 84 01 02 8E C2 83 C7 02 e0140 46 EB C8 BB 00 00 8E C3 8B C6 26 A2 00 02 B8 00 e0150 4C CD 21 rcx 53 n t w q ``` |
|
| Floor2 penghuahui | Posted 2007-12-16 23:27 |
| 初级用户 Posts 86 Credits 163 | |
|
Assembly?
Can you explain it? |
|
| Floor3 s11ss | Posted 2007-12-17 09:30 |
| 银牌会员 Posts 566 Credits 2,098 | |
Originally posted by penghuahui at 2007-12-16 11:27 PM: COM file: For visible characters (including spaces) entered by pressing keys, display an asterisk (*) and simultaneously write the character to the memory address space starting at 0:201h; when the backspace key is pressed, only replace the previous asterisk with a space, and this space may be overwritten by a newly entered visible character next time (if there is no asterisk before pressing the backspace key, do nothing); when the enter key is pressed, end the input process and write the length of the string to 0:200h. After the batch processing executes the COM file, use debug to write the data from 0:200h to 0:220h to a file, obtain the original input data according to the length of the string and display it. [ Last edited by s11ss on 2007-12-17 at 09:31 AM ] |
|
| Floor4 xingsys | Posted 2007-12-17 13:12 |
| 初级用户 Posts 31 Credits 80 | |
|
How to use it, please boss explain it
|
|
| Floor5 s11ss | Posted 2007-12-17 17:28 |
| 银牌会员 Posts 566 Credits 2,098 | |
| Floor6 vkill | Posted 2007-12-18 21:51 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
| Floor7 pujihong123 | Posted 2009-02-12 21:22 |
| 初级用户 Posts 27 Credits 47 From 甘肃. 武威 | |
|
Not quite understand, bookmark for later use! Study it slowly when I get started! Thanks to the LZ!
|
|
| Floor8 zhengqian529 | Posted 2009-02-13 15:12 |
| 初级用户 Posts 93 Credits 100 From 湖南 | |
|
e0100 BB 00 B8 8E C3 BF 00 00 BE 00 00 B4 00 CD 16 80
e0110 FC 0E 75 0E 83 FE 00 74 F2 4E 4F 4F 26 C6 05 20 e0120 EB E9 80 FC 1C 74 1C 3C 20 72 E0 26 C6 05 2A 8C e0130 C2 BB 00 00 8E C3 26 88 84 01 02 8E C2 83 C7 02 e0140 46 EB C8 BB 00 00 8E C3 8B C6 26 A2 00 02 B8 00 e0150 4C CD 21 Can you ask how it was obtained? |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |