wmic qfe get hotfixid | findstr /c:KB4012215 /c:KB4015549 /c:KB4019264

Have result, NOT vulnerable
No result, vulnerable

HiNet Dr.Speed Analysis

user-pic
Vote 0 Votes

抓封包看 HiNet Dr.Speed 測試流程, 使用版本是 0.98 Beta
測試前動作
1. 抓 Test Code 及服務契約條款 GET http://speed2.hinet.net/app/get_testid2.aspx?APP_Platform=windows&App_ver=0.98
2. 抓測試前注意事項(HTML格式) GET http://speed2.hinet.net/app/info.aspx
3. 去 whois 查詢 IP, 取得服務抓供者(ISP), 最後測試結果會顯示
組態載入中
1. 每次連會回傳一串亂數, 不清楚這個目的 GET http://speed2.hinet.net/app/get_ip.aspx
2. 回傳版本及 IP GET http://speed2.hinet.net/app/get_content2.aspx?App_ver=0.98&Isp=HINET-NET&wan_ipv4=IP&wan_ipv6=null
3. 初始化1 GET http://speed2.hinet.net/initialize.aspx
4. 初始化2 GET http://speed2.hinet.net/initialize_vspdf.aspx
下行測試
1. 用 ftp/ftp 帳密連到 ftp.speed.hinet.net 開三線 RETR test_2048m.zip, 約 10 秒後送出 QUIT and ABOR (中止命令)
2. 中間會有幾次 GET http://speed2.hinet.net/keeptrack.aspx
上行測試
1. 開二線 STOR yyyymmddhhmmssxxx.txt (e.g. 2017021822573659.txt), 約 10 秒後送出 QUIT
2. 中間會有幾次 GET http://speed2.hinet.net/keeptrack.aspx
測試後動作
1. 回傳結果 POST http://speed2.hinet.net/app/report.aspx
2. 廣告代理網頁 GET http://speed2.hinet.net/app/ad_agent2.aspx

dehydrated

user-pic
Vote 0 Votes

dehydrated 之前叫做 letsencrypt.sh 因為名稱違反 Let's Encrypt 的商標而改名
設定跟之前大同小異

以下範例 Document Root 在 /var/www/html, dehydrated 放在 /usr/local
cd /usr/local
git clone https://github.com/lukas2511/dehydrated
cd dehydrated
echo "yourdomain.com www.yourdomain.com" > domains.txt
mkdir -p /var/www/html/.well-known/acme-challenge # 另一個方法是設 alias (官網教的方法)
echo BASEDIR=/usr/local/dehydrated > config
echo WELLKNOWN=/var/www/html/.well-known/acme-challenge >> config
./dehydrated --register --accept-terms
./dehydrated -c

Let's Eencrypt 憑證有效期只有三個月, 到期前要再來執行 dehydrated -c
可排程每月執行, 剩餘時間要少於 30 天才會 renew, 不然只會提示 Longer than 30 days. Skipping

若機器有防火牆, 需開放以下 IP (for ACME challenge)
outbound1.letsencrypt.org 66.133.109.36
outbound2.letsencrypt.org 64.78.149.164

Apache 設定
Unmark Include conf/extra/httpd-ssl.conf in httpd.conf
conf/extra/httpd-ssl.conf 內容
SSLCertificateFile /usr/local/dehydrated/certs/yourdomain.com/cert.pem
SSLCertificateKeyFile /usr/local/dehydrated/certs/yourdomain.com/privkey.pem
SSLCertificateChainFile /usr/local/dehydrated/certs/yourdomain.com/chain.pem
SSLCACertificateFile /usr/local/dehydrated/certs/yourdomain.com/fullchain.pem

在狀態列顯示電池使用百分比, 這個幾乎是必備的功能, 在 Android 上都要裝第三方軟體才行
若您的手機是 Android 7, 可以透過「系統使用者介面調整精靈」來啟用這個功能,
不過這個功能是被隱藏的, 據說是這個功能尚未完善所以還沒放出來

下拉狀態列, 長按齒輪

設定中就會出現「系統使用者介面調整精靈」

進去後選狀態列/電池, 一率顯示百分比

電池中間就會有百分比數字

Stand-alone ADB Fastboot tool

user-pic
Vote 0 Votes

Linux Named Pipe

user-pic
Vote 0 Votes

mkfifo fifo_file
cat fifo_file

In another shell session
date > fifo_file

You'll see date info in first shell session.
General Usage: piping data from program A to program B.

ref. Named pipe

OTP Client for Linux and Windows

user-pic
Vote 0 Votes

For Linux: OATH Toolkit
For Windows: WinAuth

Bliss HD

user-pic
Vote 0 Votes

Classic HD Windows XP Wallpaper
Download

Got fatal error 1236 from master when reading data from binary log:
'The slave is connecting using CHANGE MASTER TO MASTER_AUTO_POSITION = 1, but the master has purged binary logs containing GTIDs that the slave requires.'

mysql> show global variables like 'gtid_purged'; # show master's gtid_purged

mysql> stop slave;
mysql> set global gtid_purged = '3caafe57-7a46-11e6-a5c0-00505682159e:1-50'; # set slave's gtid_purged as master
mysql> reset master;
mysql> start slave;

Net-SNMP IFTABLE_CACHE_TIMEOUT

user-pic
Vote 0 Votes

IFTABLE_CACHE_TIMEOUT control how frequent update ifTable counter.
Net-SNMP v5.4,v5.5 IFTABLE_CACHE_TIMEOUT 15
Net-SNMP v5.6,v5.7 IFTABLE_CACHE_TIMEOUT 3
Newer version have shorter cache timeout, but if you want to monitor real-time traffic by second, 3 seconds still useless.

To change this value

Method 1:
snmpset -v2c -cpublic localhost .1.3.6.1.4.1.8072.1.5.3.1.2.1.3.6.1.2.1.2.2 i 1 # after snmpd start
Note: use override to set the value does NOT work.
ref. How to set the agent update or counter refresh interval on net-snmp

Method 2:
Get Net-SNMP source tar ball, change the value in agent/mibgroup/if-mib/ifTable/ifTable_data_access.h
./configure && make && make install

Monthly Archives