![]() |
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-13 01:09 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » Batch file for sending emails |
| Printable Version 14,516 / 37 |
| Floor1 vkill | Posted 2006-11-18 01:53 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
| Floor2 vkill | Posted 2006-11-18 01:54 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
The tool nc.exe is required for download.
The code has been updated. I hope everyone will work together to write a base64 encoding for Pascal, which will make it more versatile. [ Last edited by vkill on 2006-11-18 at 03:33 AM ] Attachments nc.rar (26.57 KiB) |
|
| Floor3 redtek | Posted 2006-11-18 02:11 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Appreciate it.
|
|
| Floor4 ccwan | Posted 2006-11-18 02:17 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
Good stuff. Making it a universal version would be awesome!
|
|
| Floor5 electronixtar | Posted 2006-11-18 02:21 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
I'm doing a pure batch processing Base64 encoding, and then making a batch processing database to store user accounts for automatic login.
Automatically finding POP3 SMTP servers: From DreamMail2006
It's possible to use batch processing to intelligently judge the characters after the user's email and automatically connect to the server, wow haha~~ It's also necessary to write a pure batch processing Base64 decoding, because to implement batch processing to receive emails of MIME type, Base64 decoding must be used! You can discuss Base64 encoding issues in this post . It can be completely implemented with batch processing! You can discuss batch processing data storage - address book in this post [ Last edited by electronixtar on 2006-11-18 at 02:26 AM ] |
|
| Floor6 vkill | Posted 2006-11-18 02:24 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
Originally posted by electronixtar at 2006-11-18 02:21: |
|
| Floor7 ccwan | Posted 2006-11-18 02:27 |
| 金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊 | |
|
I think at least 108 white hairs are needed. For my youth, can Brother electronixtar make a finished product and share it with everyone? Thanks!
|
|
| Floor8 electronixtar | Posted 2006-11-18 02:28 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
Use MD5/SHA for passwords~~ |
|
| Floor9 vkill | Posted 2006-11-18 02:36 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
Originally posted by electronixtar at 2006-11-18 02:28: Sweat~You broke MD5 last time, didn't you? |
|
| Floor10 vkill | Posted 2006-11-18 03:05 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
|
Take 163 mailbox as an example:
http://blog.yx127.com/index.php?action=show&id=190 Referenced an article on est'blog http://202.115.22.199/Blog/electronixtar/archive/2006/11/15/11617.aspx -------------------------------------------------------------------------------- →→→→→→→Telnet to receive emails Note: All responses are +OK (ok) or -ERR (no) 1. Connect → telnet pop.163.com 110 2. Username → user **** 3. Password → pass **** 4. After successful verification, the terminal will display the following information: +OK 60 message(s) The number 60 indicates there are 60 emails, and 72208371 indicates the total number of bytes of these 60 emails (that is, 72208371B) The commands that can be used at this time are as follows: 1. stat command Format: stat No parameters required stat command, view statistics. After execution, the POP3 server will respond with a correct answer, which starts with "+OK", followed by two numbers. The first is the number of emails, and the second is the size of the emails 2. list command Format: list Parameter n is optional, n is the email number list command, view the email list. You can use the list command without parameters to obtain the number of each email, and each email is displayed in one line. The number in front is the email number, and the number behind is the size 3. uidl command Format: uidl Parameter n is optional, n is the email number uidl command, same as list, but the information displayed about the email is more detailed and specific than list 4. retr command Format: retr n Parameter n is not optional, n is the email number retr command, view the content of the email 5. dele command Format: dele n Parameter n is not optional, n is the email number dele command, delete the specified email (Note: The dele n command only marks the email for deletion. The email will not be truly deleted until the quit command is executed) 6. top command Format: top n m Parameter n, m are not optional, n is the email number, m is the number of lines top command, read the number of lines of the body of the specified email. If m = 0, only the email header part is read out 7. noop command Format: noop No parameters required noop command, after this command is sent, the POP3 server does nothing and only returns a correct response "+OK" 8. quit command Format: quit No parameters required quit command, after this command is sent, the telnet disconnects from the POP3 server, and the system enters the update state -------------------------------------------------------------------------------- →→→→→→→Telnet to send emails 1. Connect → telnet smtp.163.com 25 Echo "220" 2. Report name (write randomly) → helo vkill Echo "250 ok" 3. Login mode (at this time, select the general login mode) → AUTH LOGIN Echo "334 dXNlcm5hbWU6" (Note: The user and password here are both characters encoded in Base64. If you don't have a Base64 encoding encryptor at hand, I provide an online one: http://www.yx127.com/base64.html) 4. Username → **** Echo "334 UGFzc3dvcmQ6" 5. Password → **** Echo "235 Authentication successful" indicates successful verification 6. Sender → mail from: <he200377@163.com> Echo "250 Mail OK" 7. Recipient → rcpt to: <he200377@56.com> Echo "250 Mail OK" 8. Start writing the body → data Just enter the body content, and the body should comply with the MIME specification Example: From: he200377@163.com ← Sender of the email To: he200377@56.com ← Recipient of the email Cc: he200377@56.com ← Recipient of the email that receives the email sent by cc Subject: test ← Subject of the email MIME-Version: 1.0 ← Version of the MIME protocol Content-Type: text/plain ← Email format text hello vkill ← Content When the line enters. Press Enter, echo "250 OK" sent successfully 9. Disconnect → quit |
|
| Floor11 zouzhxi | Posted 2006-11-18 08:19 |
| 中级用户 Posts 177 Credits 430 From 广东深圳 | |
|
If the user is using a proxy to access the Internet!!
Do we need to determine whether the user is using a proxy to access the Internet? If yes, then ask the user to enter the proxy server name and port; If not, then connect directly. |
|
| Floor12 electronixtar | Posted 2006-11-18 08:37 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
|
Sweat~~ Already starting to consider proxying.
|
|
| Floor13 vkill | Posted 2006-11-19 02:47 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
Originally posted by zouzhxi at 2006-11-18 08:19: Too far-fetched, don't you think? |
|
| Floor14 electronixtar | Posted 2007-01-29 04:58 |
| 铂金会员 Posts 2,672 Credits 7,493 | |
Good news, with the efforts of Brother 0401, a pure batch processing solution for Base64 has come out http://www.cn-dos.net/forum/viewthread.php?tid=27203
In fact, this is relatively simple. Let's not mention SOCKS proxy, just use SocksCap32 software directly. HTTP proxy is easy to handle. HTTP proxy is divided into two types, HTTP_GET and HTTP_Connect. HTTP_Get is not suitable for receiving emails, and HTTP_Connect can be modified by changing the request header in NC.exe. |
|
| Floor15 xycoordinate | Posted 2007-03-17 22:22 |
| 中级用户 Posts 228 Credits 493 From 安徽 | |
|
F:\>telnet pop.163.com 110
+OK Welcome to coremail Mail Pop3 Server (163com) user xycoordinate +OK core mail pass 123456 -ERR You do not have permission to use the pop3 function |
|
| 1 2 3 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |