Go Webassembly

程式碼 Server and Client 直接寫code吧 當使用js/wasm架構時,syscall/js可以訪問WebAssembly環境.它的API基於JavaScript. 因為在瀏覽器上不能直接使用TCP或UDP,所以這裡使用websocket. client/client.go 1 2 3 4 5 6 7 8 9 10 11 package main import ( "syscall/js" ) func main() { js.Global().Get("WebSocket").New("ws://localhost:8080/echo") } server 端就直接使用TCP了(大家都是tcp,不要分那麼細) server/server.go 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 package main import ( "net" ) func main() { println("Starting TCP server.

Wifi Sniffer

關於咖啡廳的 wifi router 咖啡廳wifi router的常見的攻擊 - WiFi Sniffing WiFi Sniffing:是指使用特殊的軟體工具來監聽傳輸在 Wi-Fi 網絡上的封包,包括帳號密碼這些敏感資訊. 要進行WiFi Sniffing,通常使用以下方法: 監聽 Wi-Fi 流量 假冒 Wi-Fi AP 我們將使用scapy https://scapy.net/ Scapy is a powerful interactive packet manipulation program. 1 pip3 install scapy 監聽 Wi-Fi 流量 使用scapy監聽wlan0 interface上的流量, 如果是 tcp 就輸出摘要.

Sync Obsidian with Github

先備知識 github obsidian Linux and Mac OS X 安裝 git Mac OS X (透過 Homebrew) 1 brew install git Linux (Debian/Ubuntu) 1 sudo apt-get install git Clone the repository 進入存放repository的folder 1 cd ~/repositories clone 1 git clone https://github.com/{your_username}/{your_repository} 在Obsidian開啟vault,並選則該repository Android 安裝Termux Google Play

Start blog with HUGO

1. Download and Install HUGO Hugo currently provides pre-built binaries for the following: macOS (Darwin) for x64, i386, and ARM architectures Windows Linux OpenBSD FreeBSD You can get the release distribution from HUGO’s github or using command line : Snap (Linux)