September 23, 2019
Golang 处理 JSON <!–more–> 可以使用 JSON to Go https://mholt.github.io/json-to-go/
September 23, 2019
Golang glog (Google log) 日志框架的使用 <!–more–> 正文 示例代码 https://github.com/tamalsaha/glog-demo 日志格式说明 Google Log(glog) Output Format https://medium.com/technical-tips/google-log-glog-output-format-7eb31b3f0ce5
September 10, 2019
Golang TCP/IP Socket 接口编程的一些注意事项 <!–more–> 正文 防止产生一些持续等待的挂起行为。 后续补充
September 10, 2019
Tomcat 8 Manager 用户认证凭据枚举 <!–more–> HTTP 交互分析 采用 HTTP Basic Auth 认证请求 GET /manager/html HTTP/1.1 Host: 192.168.198.133:8080 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0 Authorization: Basic dG9tY2F0OnRvbWNhdA== 认证成功的 HTTP 响应头 HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Cache-Control: private Expires: Thu, 01 Jan 1970 00:00:00 UTC Set-Cookie: JSESSIONID=1CA160B50A85CD4F22555D92B051B7C9; Path=/manager; HttpOnly Content-Type: text/html;charset=utf-8 Date: Tue, […]
September 4, 2019
正则表达式解析 FTP banner <!–more–> 案例 1 FTP package main import ( "fmt" "regexp" ) func main() { banner1 := "220 MT_ILO_Novatel FTP server (MikroTik 5.8) ready" banner2 := "220 Piano -1 FTP server (MikroTik 6.41.3) ready" banner3 := "220 MikroTik FTP server (MikroTik 6.35.4) ready" re := regexp.MustCompile(`(?m)220\s.+\s[fFtTpP]{3}\s[sSeEvVrR]{6}\s\([MmIiKkRroOtT]{8}\s(.+)\)\sready`) match := re.FindStringSubmatch(banner1) fmt.Println(match[1]) match = re.FindStringSubmatch(banner2) […]
September 2, 2019
CVE-2019-15107 Webmin RCE
August 28, 2019
Golang 遇到 unexpected EOF 的一个临时解决方案