# Wireshark [wireshark man pages](https://www.wireshark.org/docs/man-pages/) ## SETTINGS * profile : a set of configuration or setting ( filtreng, color...) * create new one * position : ont the right corner *  * adjust column: * position : tool bar *  * adjust layout: * [Edit] -> [references] -> [layout] *  *  * 視覺化 * add column: * [Edit] -> [references] -> [columns] * 新增 Delta time ( packet 之間的時間 ,troubleshooting 有用) *  * 可設定時間代表的意義 : *  * column certain things: * tcp syn : * [View] -> [color rules begining] * name : `TCP SYN` Filter : `tcp.flags.syn==1` * background * :-1: 移到 Bad TCP column 下面的欄位 (因為如果 retransmit 的話會先綠色再來黑色) * refresh * 快速過濾 (2種): 1.  2. add button  ## CAPTURE * about wireshark *  * capture option: * mange interfaces : (有太多介面,用不到可以先刪掉) * output: * pcap : packet capture * after `500` megabytes add a new packet capture: * name test * time stamps * :-1: ring buffer : `10 files` * 當 capture 10 個 500 megabytes files,開始覆寫 (不會讓檔案一直增增加)? timestamps ## command line to capture * dump cap : Dumpcap is a network traffic dump tool. It lets you capture packet data from a live network and write the packets to a file. * 設定環境變數 : 系統要到哪些路徑底下找執行檔 * dumpcap -h : 詳細資訊 * dumpcap -D : show interface * dumpcap -i [num] : select which interface to capture(根據 -D 編號) * dumpcap -i [num] -w [路徑+檔名] : write * dumpcap -b : size, amount (ring buffer) * `dumpcap -i 10 -w d:\Users\user\Downloads\sample.pcapng -b filesize:500000 -b files:10` 以上 7/14 教的部分 ---------- ## syntax * port [num] : ex, DNS port=53 -> `port 53` * DNS : *  * host [num] : ex, ipv4 or ipv6 -> `host 192.0.2.1` or `host 2001:db8::1` * tcp: *  *  * 這幾次交握的訊息中還藏著「序列號碼」(seq, sequence number)及「確認號」(ack, acknowledgement number)。由於一筆資料可能會很大,並且 IP 這個協定有限制每個封包的最大大小,因此 TCP 用序列號碼來記錄被分割後的每一份小資料。 * 有了序列號碼之後,在交握同時會附帶這個訊息,對方收到後的回覆則會包含「確認號」,也就是對方期待收到的下個序列號碼為何,藉此來確保封包是連續的。 *  *  *  *  *  * [參考1](http://dns2.asia.edu.tw/~wzyang/slides/info_net/info_B/CH10TCP.pdf) * [參考2](https://ithelp.ithome.com.tw/m/articles/10274640) --- capture filter * ip.addr == 10.52.20.69 * quick filtering *  *  * 訊息處 : *  *  * [!] or [not] *  * 群組 *  * string * frame contains "google" *  * 大小寫不一樣 * frame matches "Google" * 不管大小寫 --- ## Name Resolution *  [v] Resolve transport names *  `show transport names` *  [v] Resolve network(IP) address *  *  *  * 如果將 pcapng 傳送給某人,也會沿用自定義的名字 * 如何將 edit resolved name store in profile * :::warning  <not found> :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up