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-25 08:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Batch processing automatically logs in to the email View 8,817 Replies 48
Floor 31 Posted 2007-11-07 14:18 ·  中国 上海 闵行区 电信
新手上路
Credits 10
Posts 5
Joined 2007-11-06 16:06
18-year member
UID 101888
Gender Male
Status Offline
I'm gushing blood. Such a great place, I'm just arriving here now
Floor 32 Posted 2007-12-16 17:19 ·  中国 山西 太原 联通
新手上路
Credits 8
Posts 4
Joined 2007-12-15 14:21
18-year member
UID 105734
Gender Male
Status Offline
Changing the start command to explorer is relatively easy to use!
Floor 33 Posted 2007-12-16 17:39 ·  中国 广东 广州 教育网
初级用户
★★
Credits 163
Posts 86
Joined 2007-09-05 03:02
18-year member
UID 96588
Gender Male
Status Offline
Floor 34 Posted 2007-12-16 19:42 ·  中国 江苏 淮安 电信
新手上路
Credits 14
Posts 8
Joined 2006-09-27 02:17
19-year member
UID 63755
Gender Male
Status Offline
Hehe, that's really nice.
Floor 35 Posted 2007-12-20 16:51 ·  中国 北京 朝阳区 联通
初级用户
Credits 26
Posts 11
Joined 2007-12-18 19:56
18-year member
UID 106068
Gender Male
Status Offline
163. 12 6. Yahooo all solved; then who will solve Sohu!!!
Floor 36 Posted 2007-12-20 20:05 ·  中国 上海 嘉定区 电信
新手上路
Credits 13
Posts 6
Joined 2007-12-19 21:15
18-year member
UID 106164
Gender Male
Status Offline
Floor 37 Posted 2007-12-24 13:09 ·  中国 河南 郑州 联通
初级用户
Credits 51
Posts 25
Joined 2007-12-22 13:27
18-year member
UID 106458
Gender Male
From 河南
Status Offline
I know the username and password of the unit website! Because I have to log in every day, and it's troublesome to enter the account and password every day. Can you create a batch process to realize automatic filling of the username and password to log in when starting up!!!
Floor 38 Posted 2007-12-24 16:34 ·  中国 北京 联通
初级用户
Credits 26
Posts 11
Joined 2007-12-18 19:56
18-year member
UID 106068
Gender Male
Status Offline
Suppose there is a file ybx.txt with the following content:
ffff_zhang@126.com***990403****
wll781103@163.com***wll781103****
wll781103@126.com***wll781103****
.................

Batch file 1 (163.bat):
@echo on
setlocal enabledelayedexpansion
set Username=%1 set Password=%2
start http://reg.163.com/in.jsp?url=http://fm163.163.com/coremail/fcg/ntesdoor2?verifycookie=1^&language=-1^&style=-1^&username=!Username!^&password=!Password!

Batch file 2 (126.bat):
@echo off
set mail=126
::Set user
set user=%1
:Set password
set pass=%2
::126 email login URL
set "126=https://entry.mail.126.com/cgi/login?&bCookie=&user=%user%&pass=%pass%"
::Login
cmd /c start "" "%%%mail%%%"

Then create a third batch file (Smart Email Login.bat)
@echo off
setlocal enabledelayedexpansion
for /f "tokens=1,2,3 delims==@,*" %%i in ('findstr @ ybx.txt') do (
if %%j==163.com (call 163.bat %%i %%k)
if %%j==126.com (call 126.bat %%i %%k)
if %%j==yeah.com (call yeah.bat %%i %%k)
if %%j==yahoo.com.cn (call yahoo.bat %%i %%k)
pause
)
pause

----After testing, it has successfully logged in to the mailbox with known username and password.
Execute Smart Email Login.bat, read the username and password as parameters, and determine the email type, call the corresponding batch file 126.bat or 163.bat, and pass the parameters to them.
Yahoo.bat and yeah.bat can also be added.
I completely borrowed 126.bat or 163.bat from others, just used parameters.
The content of ybx.txt is fictional, you should change it to what you know. There is also a good way to establish it. If you have a large number of usernames and passwords.

[ Last edited by ybxcyx on 2007-12-26 at 08:07 AM ]
Floor 39 Posted 2008-01-09 00:43 ·  中国 北京 联通
新手上路
Credits 4
Posts 2
Joined 2008-01-06 20:48
18-year member
UID 107842
Gender Male
Status Offline
The idea is not bad, but it's too insecure to transmit the username/password in plain text in the web page......
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
It's still feasible to use this function to open unimportant web pages.
Floor 40 Posted 2008-01-09 00:45 ·  中国 北京 联通
新手上路
Credits 4
Posts 2
Joined 2008-01-06 20:48
18-year member
UID 107842
Gender Male
Status Offline
Maybe writing a script for cookies is relatively safe
Floor 41 Posted 2008-01-09 09:56 ·  中国 上海 浦东新区 电信
高级用户
★★★
中國DOS聯盟常任參議员
Credits 686
Posts 318
Joined 2005-11-04 13:00
20-year member
UID 77577
Gender Male
Status Offline
chenall

I want to ask how to find the actual address of that login,?
. 繽紛色彩閃出的美麗是因為它沒有分開每種色彩...>/

我的百度空间: BEYOND超越 为什么用DOS
Floor 42 Posted 2008-01-09 12:37 ·  中国 福建 泉州 石狮市
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
Originally posted by Jneny at 2008-1-9 09:56 AM:
chenall

I want to ask how to find the actual address of the login,?

Method 1. Open the login page. Then view the source code and find the form.
You can find the login form and then modify according to the items inside.

Method 2. Use a packet capturing tool, start packet capturing, then enter the username to log in, and then see the captured packet, which contains those login information.

[ Last edited by chenall on 2008-1-9 at 12:53 PM ]
QQ:366840202
http://chenall.net
Floor 43 Posted 2008-01-09 12:50 ·  中国 湖北 武汉 电信
初级用户
★★
Credits 180
Posts 82
Joined 2007-01-11 23:02
19-year member
UID 76206
Gender Male
Status Offline
Wow. Admire. . Hehe
But. . . How. . How does batch processing also have a start?? Hehe. Newbie. I need to learn. . . Hehe
好爱你哦。。。老婆
Floor 44 Posted 2008-01-26 13:12 ·  中国 广东 东莞 电信
初级用户
Credits 79
Posts 37
Joined 2007-04-26 12:31
19-year member
UID 86552
Gender Male
Status Offline
Thanks to all the experts,, I have learned one more thing again.
Floor 45 Posted 2008-01-26 18:40 ·  新西兰
初级用户
Credits 23
Posts 11
Joined 2008-01-12 12:51
18-year member
UID 108376
Gender Male
Status Offline
This method requires the web page to accept querystring....
Forum Jump: