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:26
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » p-mailsend_4.0.cmd (send email from command line, mass mailing\multiple attachments\anonymous) DigestII View 80,856 Replies 122
Floor 16 Posted 2007-04-26 01:24 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
This morning I analyzed the code of Brother vkill;
Here I will explain it; so that beginners can learn;


The overall process is:

1. Check file integrity or download

2. Check parameters

3. Test login

4. Write full configuration file

5. Inject via nc and send email
Floor 17 Posted 2007-04-26 01:27 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
I looked it over; I found some minor issues; and here are some suggestions below;


To avoid using it only once /x, it is suggested to initialize user and others at the beginning

: There is a missing goto :eof at the end of the sending program

This error will lead to

: After the sending program is executed, it will immediately execute :Judge whether the login is successful;

Add a sentence after call :Judge whether the login is successful

if errorlevel 1 goto :del_

Otherwise, it will continue to send the letter regardless of whether the login is successful;


When calling call :Judge whether the sending is successful, some other unnecessary information will appear; and if the sending is not successful, the prompt for unsuccessful sending will appear twice;

And finally, it will also echo All letters sent successfully;

It is suggested to add

cls

if errorlevel 1 echo Sending failed & goto del_

before
call :del
echo All letters sent successfully


In the :Interactive mode
if not defined user (set/p=Username:<nul&set/p "user= ")
It can be simply written as: if not defined user (set/p "user=Username: ")
And so on




for /f "tokens=2 delims=" %%? in ('ping -n 1 smtp.163.com ^|findstr /i "^Pinging"') do (set "ip=%%?")

It is suggested to change Pinging to ping otherwise Vista cannot successfully find the ip


Vista's echo is:

正在 Ping smtp.163.split.netease.com 具有 32 字节的数据:

来自 220.181.12.13 的回复: 字节=32 时间=35ms TTL=51

220.181.12.13 的 Ping 统计信息:
数据包: 已发送 = 1,已接收 = 1,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
最短 = 35ms,最长 = 35ms,平均 = 35ms


It should move the if "%1"=="vkill" goto :eof under help to before help; otherwise it will lose its proper function;
Floor 18 Posted 2007-04-26 01:33 ·  中国 浙江 杭州 联通
银牌会员
★★★
Credits 1,928
Posts 931
Joined 2007-01-06 11:46
19-year member
UID 75624
Gender Male
Status Offline
Good stuff. But still need to rely on vbs? !
Floor 19 Posted 2007-04-26 01:35 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
Code for Brother vkill

Slightly modified according to the above suggestions and wrote some comments slightly

The code is as follows



  1. @echo off&setlocal ENABLEDELAYEDEXPANSION
  2. set "t_=test.conf"
  3. set "server=163.com"
  4. set "port=25"
  5. set "Maximum attachment size=15000000"
  6. set "tools_url=http://www.vkill.net/netbar/网吧所需exe/"
  7. set "tools_name=nc.exe;rar.exe;base64.exe"

  8. rem ================Check file integrity=====================
  9. :down_tools
  10. set "down_ok=y"
  11. if not "%tools_name%*"=="*" (
  12. for %%? in (%tools_name%) do (
  13. if *%%~$PATH:?==* if not exist %%? (
  14. set "down_ok=n"
  15. echo The dependent file of the program %? is missing, and automatic download has started
  16. if not exist iget.vbs call :iget.vbs_
  17. iget.vbs "%tools_url%%%?" "%%?"
  18. ::move "%%?" %windir%>nul 2>nul
  19. echo File %? downloaded successfully
  20. )
  21. )
  22. )
  23. del /f/q iget.vbs>nul 2>nul
  24. if [%down_ok%]== goto down_tools
  25. rem ==================End==============================


  26. rem ===============Analyze parameters=============================
  27. for %%? in (/? -? /h -h --h) do (if "%1"=="%%?" goto help)
  28. if "%1"=="" goto help
  29. :loop_ap
  30. set/a n+=1
  31. if not "%1"=="" (
  32. if "%1"=="/x" goto Interactive mode
  33. if "%1"=="/u" set "user=%~2"
  34. if "%1"=="/p" set "pass=%~2"
  35. if "%1"=="/t" set "to=%~2"
  36. if "%1"=="/s" set "subject=%~2"
  37. if "%1"=="/c" set "content=%~2"
  38. if "%1"=="/a" set "accessories=%~2"
  39. shift&shift
  40. goto loop_ap
  41. )
  42. for %%? in (user pass to subject) do (if not defined %%? goto Parameter error)
  43. goto start

  44. rem ===================End===============================

  45. :Interactive mode
  46. call :help vkill
  47. if not defined user (set/p "user=Username: ")
  48. if not defined pass (set/p "pass=Password: ")
  49. if not defined to (set/p "Recipient: ")
  50. if not defined subject (set/p "Subject <hello>: ")
  51. if not defined content (set/p "Content: ")
  52. if not defined accessories (set/p "Accessories: ")

  53. rem :::::Start writing configuration file:::::
    :start
  54. ::Write single send configuration file
  55. for /l %%? in (1,1,7) do (>%%? cd.)

  56. >>1 echo helo vkill
  57. >>1 echo AUTH LOGIN

  58. rem ===================1 file content==========================
  59. rem helo vkill
  60. rem AUTH LOGIN
  61. rem ====================End================================

  62. for %%? in (%user%;%pass%) do (
  63. set/p=%%?^<nul|base64>"!t_!"
  64. set/p v=<"!t_!"
  65. >>2 echo !v!
  66. del /f/q !t_!
  67. )

  68. rem

  69. rem =================2 file content=============================
  70. rem Base64 encoding of username and password
  71. rem =====================End================================


  72. rem
  73. >8 echo quit


  74. rem =================8 file content============================
  75. rem quit
  76. rem ====================End================================


  77. copy 1+2+8 "!t_!" >nul 2>nul

  78. rem ::Judge whether you can log in::
  79. rem Rewrite test.conf for the second time to verify whether you can log in to the server nc -nvv IP Port <test.conf
  80. rem =================test.conf file content=====================
  81. rem helo vkill
  82. rem AUTH LOGIN
  83. rem Base64 encoding of username
  84. rem Base64 encoding of password
  85. rem quit
  86. rem ====================End================================
  87. call :Sending program
  88. cls
  89. call :Judge whether the login is successful
  90. if errorlevel 1 goto :del_

  91. rem ::End of judgment::
  92. >>3 echo mail from: ^<%user%@%server%^>

  93. rem ===================3 file content=============================
  94. rem mail from: <%user%@163.com>
  95. rem =======================End================================


  96. >>5 echo data
  97. >>5 echo From: %user%@%server%
  98. >>5 echo To: %to%
  99. >>5 echo Subject: %subject%
  100. >>5 echo X-mailer: p-163ms 2.0
  101. >>5 echo Mime-Version: 1.0
  102. >>5 echo Content-Type: multipart/mixed;
  103. >>5 echo boundary="=====vkill====="
  104. >>5 echo.
  105. if defined content (
  106. >>5 echo --=====vkill=====
  107. >>5 echo Content-Type: text/plain;
  108. >>5 echo charset="gb2312"
  109. >>5 echo Content-Transfer-Encoding: 7bit
  110. >>5 echo.
  111. dir !content! >nul 2>nul &&(type "!content!">>5) ||(>>5 echo !content!)
  112. )


  113. rem ====================5 file content=============================
  114. rem data
  115. rem From: %user%@163.com
  116. rem To: %to%
  117. rem Subject: %subject%
  118. rem X-mailer: p-163ms 2.0
  119. rem Mime-Version: 1.0
  120. rem Content-Type: multipart/mixed;
  121. rem boundary="=====vkill====="
  122. rem If there is content
  123. rem --=====vkill=====
  124. rem Content-Type: text/plain;
  125. rem charset="gb2312"
  126. rem Content-Transfer-Encoding: 7bit
  127. rem
  128. rem Content
  129. rem ======================End================================

  130. echo Compressing and encoding files...
  131. if defined accessories for %%? in (%accessories%) do (call :Compress and encode attachment "%%?")

  132. >>7 echo --=====vkill=====--
  133. >>7 echo .
  134. >>7 echo quit

  135. rem ===================7 file content============================
  136. rem --=====vkill=====--
  137. rem
  138. rem quit
  139. rem ======================End================================

  140. ::Send
  141. for %%? in (%to%) do (
  142. echo Sending email to %%?
  143. ::Merge single send configuration file
  144. >4 echo rcpt to: ^<%%?^>
  145. del /f/q "!t_!"
  146. copy 1+2+3+4+5+6+7 "!t_!" >nul 2>nul
  147. call :Sending program
  148. call :Judge whether the sending is successful
  149. )

  150. rem ====================4 file content=============================
  151. rem rcpt to:<%to%>
  152. rem =======================End================================

  153. rem Rewrite test.conf file for the third time. Merge 1-7 files; the content is as follows; also the most critical thing.
  154. rem ===================test.conf file content==========================
  155. rem helo vkill
  156. rem AUTH LOGIN
  157. rem Base64 encoding of username
  158. rem Base64 encoding of password
  159. rem mail from: <%user%@163.com>
  160. rem rcpt to: <%to%@163.com>
  161. rem data
  162. rem From: %user%@163.com
  163. rem To: %to%@163.com
  164. rem Subject: %subject%
  165. rem X-mailer: p-163ms 2.0
  166. rem Mime-Version: 1.0
  167. rem Content-Type: multipart/mixed;
  168. rem boundary="=====vkill====="
  169. rem
  170. rem --=====vkill=====
  171. rem Content-Type: text/plain;
  172. rem charset="gb2312"
  173. rem Content-Transfer-Encoding: 7bit
  174. rem
  175. rem %content%
  176. rem --=====vkill=====
  177. rem Content-Type: application/octet-stream;
  178. rem name="Attachment name_.rar"
  179. rem Content-Transfer-Encoding: base64
  180. rem Content-Disposition: attachment;
  181. rem filename="Attachment name_.rar"
  182. rem
  183. rem Base64 encoding of compressed attachment file
  184. rem
  185. rem --=====vkill=====--
  186. rem .
  187. rem quit
  188. rem ====================End================================
  189. rem ::::End of writing configuration file::::
  190. cls
  191. if errorlevel 1 echo Email sending failed & goto del_
  192. call :del_
  193. echo All emails sent successfully
  194. ping -n 3 127.1>nul 2>nul
  195. goto :eof

  196. :del_
  197. for /l %%? in (1,1,8) do (del /f/q %%?>nul 2>nul)
  198. del /f/q "%t_%">nul 2>nul
  199. del /f/q p-163ms.log>nul 2>nul
  200. goto :eof

  201. :help
  202. if "%1"=="vkill" goto :eof
  203. echo ____help________________________________________________________________________
  204. echo.
  205. echo p-163ms v2.0 by:vkill
  206. echo Copyright (C) 2006-2008 http://www.vkill.net
  207. echo.
  208. echo Usage: p-163ms.cmd /u Username /p Password /t Recipient /s Subject
  209. echo.
  210. echo /x Interactive mode, when using this parameter, all other parameters are invalid
  211. echo /t Recipient:(Separate multiple recipients with,; enclose multiple attachments with"")
  212. echo /c Content:(Text/path of the text file with content written)
  213. echo /a Attachment:(Absolute path/relative path, separate multiple attachments with,; enclose multiple attachments with"")
  214. echo.
  215. echo Example:
  216. echo p-163ms.cmd /u 123 /p abc /t "122755990@qq.com" /s hello
  217. echo p-163ms.cmd /u 123 /p abc /t "122755990@qq.com" /s hello /c 123 /a "d:\00.txt"
  218. echo p-163ms.cmd /u 123 /p abc /t "122755990@qq.com,yx127@yx127.com" /s hello /c 123 /a "d:\00.txt,c:\00.bat"
  219. echo.
  220. echo ________________________________________________________________________________
  221. goto :eof

  222. :Compress and encode attachment
  223. dir %~1 >nul 2>nul &&(call :Compress file "%~1" "rar.exe -r")||(call :Compress file "%~1" rar.exe)
  224. call :Judge file size "%~n1_.rar"
  225. >>6 echo --=====vkill=====
  226. >>6 echo Content-Type: application/octet-stream;
  227. >>6 echo name="%~n1_.rar"
  228. >>6 echo Content-Transfer-Encoding: base64
  229. >>6 echo Content-Disposition: attachment;
  230. >>6 echo filename="%~n1_.rar"
  231. >>6 echo .
  232. base64.exe -i "%~n1_.rar">>6
  233. >>6 echo .
  234. del /f/q "%~n1_.rar" >nul 2>nul
  235. goto :eof

  236. rem ==================6 file content===================================
  237. rem --=====vkill=====
  238. rem Content-Type: application/octet-stream;
  239. rem name="%~n1_.rar"
  240. rem Content-Transfer-Encoding: base64
  241. rem Content-Disposition: attachment;
  242. rem filename="%~n1_.rar"
  243. rem
  244. rem Base64 encoding of attachment
  245. rem
  246. rem ====================End======================================

  247. :Compress file
  248. %~2 a "%~n1_.rar" "
Recent Ratings for This Post ( 2 in total) Click for details
RaterScoreTime
lxmxn +8 2007-04-26 02:30
vkill +8 2007-04-26 07:35
Floor 20 Posted 2007-04-26 04:12 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
According to Brother vkill's code; I rewrote it directly to generate test and post files; avoiding the summation and copying of 9 files; it is a bit easier to understand:

The code is as follows:



  1. @echo off&setlocal ENABLEDELAYEDEXPANSION
  2. set "t_=test.conf"
  3. set "server=163.com"
  4. set "port=25"
  5. set "Maximum attachment size=15000000"
  6. set "tools_url=http://www.vkill.net/netbar/Required exe for Internet cafes/"
  7. set "tools_name=nc.exe;rar.exe;base64.exe"
  8. set "user="
  9. set "pass="
  10. set "to="
  11. set "subject="
  12. set "content="
  13. set "accessories="
  14. :down_tools
  15. set "down_ok=y"
  16. if not "%tools_name%*"=="*" (
  17. for %%? in (%tools_name%) do (
  18. if *%%~$PATH:?==* if not exist %%? (
  19. set "down_ok=n"
  20. echo The dependent file of the program %%? is missing, and automatic download has started
  21. if not exist iget.vbs call :iget.vbs_
  22. iget.vbs "%tools_url%%%?" "%%?"
  23. echo File %%? has been downloaded
  24. )
  25. )
  26. )
  27. del /f/q iget.vbs>nul 2>nul
  28. if [%down_ok%]== goto down_tools
  29. for %%? in (/? -? /h -h --h) do (if "%1"=="%%?" goto help)
  30. if "%1"=="" goto help
  31. :loop_ap
  32. set/a n+=1
  33. if not "%1"=="" (
  34. if "%1"=="/x" goto 交互模式
  35. if "%1"=="/u" set "user=%~2"
  36. if "%1"=="/p" set "pass=%~2"
  37. if "%1"=="/t" set "to=%~2"
  38. if "%1"=="/s" set "subject=%~2"
  39. if "%1"=="/c" set "content=%~2"
  40. if "%1"=="/a" set "accessories=%~2"
  41. shift&shift
  42. goto loop_ap
  43. )
  44. for %%? in (user pass to subject) do (
  45. if not defined %%? echo Incorrect parameter. One of the username/password/recipient/subject is missing & goto :eof
  46. )
  47. goto start

  48. :交互模式
  49. call :help vkill
  50. if not defined user (set/p "user=Username: ")
  51. if not defined pass (set/p "pass=Password: ")
  52. if not defined to (set/p "to=Recipient: ")
  53. if not defined subject (set/p "subject=Subject <hello>: ")
  54. if not defined content (set/p "content=Content: ")
  55. if not defined accessories (set/p "accessories=Attachment: ")

  56. :start
  57. echo helo vkill >test
  58. echo AUTH LOGIN >>test
  59. set /p"=%user%"<nul|base64>"!t_!"
  60. set /p v=<"!t_!"
  61. >>test echo !v!
  62. set /p"=%pass%"<nul|base64>"!t_!"
  63. set /p v=<"!t_!"
  64. >>test echo !v!
  65. del /f /q !t_!
  66. echo quit>>test
  67. call :发信程序 test
  68. cls
  69. for /f "tokens=1-2 delims=:" %%a in ('findstr /N . p-163ms.log') do (set "%%a=%%b")
  70. echo !5!|findstr "^235" >nul 2>nul ||(echo Login unsuccessful)
  71. if errorlevel 1 goto :del_
  72. if exist post del /f /q post
  73. for /f "delims=" %%a in (test) do if not "%%a"=="quit" echo %%a >>post
  74. del /f /q test
  75. >>post echo mail from: ^<%user%@%server%^>
  76. >>post echo rcpt to: ^<%to%^>
  77. >>post echo data
  78. >>post echo From: %user%@%server%
  79. >>post echo To: %to%
  80. >>post echo Subject: %subject%
  81. >>post echo X-mailer: p-163ms 2.0
  82. >>post echo Mime-Version: 1.0
  83. >>post echo Content-Type: multipart/mixed;
  84. >>post echo boundary="=====vkill====="
  85. >>post echo.
  86. if defined content (
  87. >>post echo --=====vkill=====
  88. >>post echo Content-Type: text/plain;
  89. >>post echo charset="gb2312"
  90. >>post echo Content-Transfer-Encoding: 7bit
  91. >>post echo.
  92. dir !content! >nul 2>nul &&(type "!content!">>post) ||(>>post echo !content!)
  93. )
  94. echo Compressing and encoding the file...
  95. if defined accessories for %%? in (%accessories%) do (call :压缩编码附件 "%%?")
  96. echo Sending email to %to%...
  97. call :发信程序 post
  98. cls
  99. for /f "tokens=1-2 delims=:" %%a in ('findstr /N . p-163ms.log') do (set "%%a=%%b")
  100. if not defined 10 echo.
  101. echo !9!|findstr "^250" >nul 2>nul ||echo.
  102. cls
  103. if errorlevel 1 echo Email sending unsuccessful & goto del_
  104. call :del_
  105. echo All emails sent successfully
  106. ping -n 3 127.1>nul 2>nul
  107. goto :eof
  108. :del_
  109. del /f /q test >nul 2>nul
  110. del /f /q post >nul 2>nul
  111. del /f /q p-163ms.log>nul 2>nul
  112. goto :eof
  113. :发信程序
  114. for /f "tokens=2 delims=" %%? in ('ping -n 1 smtp.163.com ^|findstr /i "^Ping"') do (set "ip=%%?")
  115. nc -nvv !ip! %port%<%1>p-163ms.log
  116. goto :eof
  117. :压缩编码附件
  118. dir %~1 >nul 2>nul &&(call :压缩文件 "%~1" "rar.exe -r")||(call :压缩文件 "%~1" rar.exe)
  119. call :判断文件大小 "%~n1_.rar"
  120. >>post echo --=====vkill=====
  121. >>post echo Content-Type: application/octet-stream;
  122. >>post echo name="%~n1_.rar"
  123. >>post echo Content-Transfer-Encoding: base64
  124. >>post echo Content-Disposition: attachment;
  125. >>post echo filename="%~n1_.rar"
  126. >>post echo .
  127. base64.exe -i "%~n1_.rar">>post
  128. >>post echo .
  129. del /f/q "%~n1_.rar" >nul 2>nul
  130. >>post echo --=====vkill=====--
  131. >>post echo .
  132. >>post echo quit
  133. goto :eof
  134. :压缩文件
  135. %~2 a "%~n1_.rar" "%~1" >nul 2>nul||(echo File compression error)
  136. goto :eof
  137. :判断文件大小
  138. set/a z+=%~z1
  139. ::Judge attachment size
  140. if not !z! lss %Maximum attachment size% (echo Attachment size exceeded)
  141. goto :eof
  142. :help
  143. if "%1"=="vkill" goto :eof
  144. echo ____help________________________________________________________________________
  145. echo.
  146. echo p-163ms v2.0 by:vkill
  147. echo Copyright (C) 2006-2008 http://www.vkill.net
  148. echo.
  149. echo Usage: p-163ms.cmd /u Username /p Password /t Recipient
  150. echo.
  151. echo /x Interactive mode. When this parameter is used, all other parameters are invalid
  152. echo /t Recipient: (Separate multiple recipients with,; enclose multiple attachments with""
  153. echo /c Content: (Text/path of a text file with written content)
  154. echo /a Attachment: (Absolute path/relative path, separate multiple attachments with,; enclose multiple attachments with""
  155. echo.
  156. echo Example:
  157. echo p-163ms.cmd /u 123 /p abc /t "122755990@qq.com" /s hello
  158. echo p-163ms.cmd /u 123 /p abc /t "122755990@qq.com" /s hello /c 123 /a "d:\00.txt"
  159. echo p-163ms.cmd /u 123 /p abc /t "122755990@qq.com,yx127@yx127.com" /s hello /c 123 /a "d:\00.txt,c:\00.bat"
  160. echo.
  161. echo ________________________________________________________________________________
  162. goto :eof
  163. :iget.vbs_
  164. >iget.vbs echo x=LCase(WScript.Arguments(1))
  165. >>iget.vbs echo y=LCase(WScript.Arguments(0))
  166. >>iget.vbs echo Set xPost=CreateObject("Microsoft.XMLHTTP")
  167. >>iget.vbs echo xPost.Open "GET",y,0
  168. >>iget.vbs echo xPost.Send()
  169. >>iget.vbs echo Set sGet=CreateObject("ADODB.Stream")
  170. >>iget.vbs echo sGet.Mode=3
  171. >>iget.vbs echo sGet.Type=1
  172. >>iget.vbs echo sGet.Open()
  173. >>iget.vbs echo sGet.Write(xPost.responseBody)
  174. >>iget.vbs echo sGet.SaveToFile x,2
  175. goto :eof
Posted by BJSH on: 2007-04-25 14:59
Floor 21 Posted 2007-04-26 07:41 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
bjsh brother

I use copy + + entirely for multi-party sending, because when sending to multiple parties, only the rcpt to: is modified, and nothing else changes at all. Try start nc -nvv... when you send an email with copy ++, hehe

The explanation on floor 19 is wonderful,佩服

In interactive mode
if not defined user (set/p=用户名:<nul&set/p "user= ")
Can be completely abbreviated as: if not defined user (set/p "user=用户名: ")
And so on
I just tried set/p "user=用户名: " and set/p=用户名:<nul&set/p "user= " are the same, thank you brother for the guidance
Floor 22 Posted 2007-04-26 07:44 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
还有看来bjsh 兄这么有意研究这个,再说说吧!

>>post echo mail from: ^<%user%@%server%^>
>>post echo rcpt to: ^<%to%^>

mail from: can remove this, or can write other email boxes, should also be able to write text and so on, similar to anonymous, haha
rcpt to: can remove this, so others can't see who you are sending to at the same time, I believe it's impossible to do this at mail.163.com
Floor 23 Posted 2007-04-26 07:44 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline

Brother bjsh
I use copy ++ completely for multi-recipient sending. Because when sending to multiple recipients, only the rcpt to: is modified, and nothing else changes. Try start nc -nvv... when you send a message using copy ++, heh heh, that's faster.


Oh, I see! I really didn't expect multi-recipient sending; indeed
Floor 24 Posted 2007-04-26 07:48 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
I still want to make it universal within the school;

Unfortunately, after thinking for a long time, I didn't understand what the school's email server uses;

It seems to be 80;

As for smtp, it's completely imitating yours;

As for the meaning, I really don't understand;

I really need to learn network protocols when I have time;

If Brother vkill doesn't mind my being depressed;

Help me get the email sending done within the school; I'm really grateful;
Floor 25 Posted 2007-04-26 07:51 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
The following ones are completely about mime, http://blog.yx127.com/?action=show&id=190, it's very detailed here.

Check the one from the school by telnetting in, example:

telnet 192.168.0.1 25
help

See what comes out

[ Last edited by vkill on 2007-4-26 at 07:52 AM ]
Floor 26 Posted 2007-04-26 08:00 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
Port 25 is not open;

Asked some people in the school

Said that both smtp and pop3 are not open;
Floor 27 Posted 2007-04-26 08:01 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Brother bjsh

Are you interested in writing together? I want to write p-mailsend to support more email boxes, at least I want to support several major ones now, 163 yahoo qq hotmail gmail 56 sina sohu 21cn ==

Usage: p-163ms.cmd /u username@server /p password /t recipient /s subject
Floor 28 Posted 2007-04-26 08:03 ·  中国 甘肃 张掖 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Originally posted by bjsh at 2007-4-26 08:00:
Port 25 is not open;

Asked some people in the school

Said that SMTP and POP3 are not open;

If this is not open, then there is no way to use telnet. Using Foxmail, OE, etc. is also not possible. Only sending emails through the web form is possible. You can write a VBS to log in to the email and send an email. Hehe, it's customized.
Floor 29 Posted 2007-04-26 08:14 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
He only has these ports:
80(HTTP)
21(FTP Control)
3306(MYSQL)
22(SSH)
389(LDAP)

Really need to use vbs;
Write in May Day
Floor 30 Posted 2007-04-26 08:15 ·  中国 浙江 杭州 电信
银牌会员
★★★
Credits 2,000
Posts 621
Joined 2007-01-01 00:00
19-year member
UID 75212
Gender Male
Status Offline
Originally posted by vkill at 2007-4-25 07:01 PM:
Brother bjsh

Are you interested in writing together? I want to write p-mailsend to support more email boxes, at least I want to support several major sites now, 163 yahoo qq hotmail gmail 56 sina sohu 21cn ==

Usage: p-163m ...



Okay!
This way I can learn good things from you; hehe
Forum Jump: