TCP three-Way Handshake
Step
Direction
What’s Sent
Function
SYN
Client → Server
I want to connect, here’s my sequence number
Tells the server: I want to connect, get ready.
SYN+ACK
Server → Client
I accept, here’s my sequence number, and I got yours
Server says: OK, I’m ready too, and I rece
2025-06-0329 字1 分鐘
Termshark & Wireshark
Termshark is a Text-based User Interface
Termshark Help
wireshark filterFTP-Request-Command Filter
ftp.requset.command
ftp-data
ftp-data
http
http
tcp.stream
tcp.stream eq 7
2025-06-03194 字1 分鐘
tshark
TShark Help
tshark -h
where tshark
which tshark
interfaces List
tshark -D
list the Link-layer from interface
tshark -L
tshark -i ens33 -L
switch interface
tshark -i 2
Selecting an Interface & Writing to a File
tshark -i eth0 -w /tmp/test.pcap
Selecting an Interface & Applying Filters
t
進入
mysql -u root -p
PHP連接mysql
$conn = new mysqli("localhost", "user", "pass");
$sql = "CREATE DATABASE database1";
$conn->query($sql)
$conn = new mysqli("localhost", "user", "pass", "database1");
$query = "s
2025-06-02116 字1 分鐘
GO基礎
到這邊安裝 [官網] (https://go.dev/dl/)
查看版本
go version
測試安裝是否成功
package main
import "fmt"
func main() {
fmt.Println("Hello, Go!")
}
測試
go run main.go
編譯 go build main.go ./main.exe
wget https://go.dev/dl/go1.24.3.linux-amd64.tar.gzsudo tar -C /usr&#x