telnet 测试 smtp 服务器

telnet mailserver.xxxx.com 25
ehlo xxxx
mail from:cccc@xxxx.com
rcpt to:aaaa@xxxx.com
data
subject: test via telnet \n\r.\n\r
quit

phpmailer disable autotls

$mail->SMTPAutoTLS = false;

win7 win10 等启用http的webdav,避免踩坑认证错误

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters]
"BasicAuthLevel"=dword:00000002
service restart webclient

caddy2 + webdav plugin,caddyfile

{
order webdav last
}
http://xxxx:18023 {
webdav {
    root c:\swds
    }
basicauth {
    swds JDJhJDEwJHp4bzc4dDgxSmlXNG03bERsbVRZOC5VUy5lQjljV2xxQzl1SUUxQWVGdWdJcWXXXXXXXXXX
    }
}

Caddy生成加密密码

caddy hash-password  --plaintext yourpassword

https://www.yumenaka.net/2020/05/10/caddy2_with_webdav/

有了自动登录,心情好了很多。

Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\RSA\RSA SecurID Token\RSA SecurID Token.lnk"
WinWait 000, , 8000
Sleep 500
SendInput password{enter}
Sleep 500
Send ^c
Sleep 500
SendInput !{F4}
MsgBox, 1, , Continue to Pulse VPN? %clipboard%, 3
IfMsgBox Cancel
    return
IfWinExist, Connect
{    WinActivate
    Goto, PasswordInput
}
Run, "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Pulse Secure\Pulse Secure.lnk"
WinWait, Pulse, , 12
Sleep 800
Click 244,136 
Sleep 800
WinWait, Connect, , 12
Sleep 800
PasswordInput:
IfWinActive, Connect
    Send ^v
Sleep 800
SendInput {enter}
Sleep 2000
Click 390,366
Sleep 800
If WinActive("Pulse Secure")
    WinClose

CAC 换IP,HE.net的IPV6也得换。

netsh interface ipv6 delete interface ip6tunnel
netsh interface ipv6 reset all

重启

netsh interface teredo set state disabled
netsh interface ipv6 add v6v4tunnel interface=IP6Tunnel x.x.x.x 216.x.x.2
netsh interface ipv6 add address IP6Tunnel 2001:x:x:x::2
netsh interface ipv6 add route ::/0 IP6Tunnel 2001:x:x:x::1